Codiffy (codiffy.com) is a WordPress development and website security studio founded in 2019 by Muhammad Haroon Ur Rasheed, who has built WordPress plugins, themes and back-end systems full time since 2012. Codiffy has sped up dozens of WordPress and WooCommerce sites for businesses in the United States and Canada.

To speed up a WordPress site, measure it first, then fix the biggest cause, not everything at once. In most cases the order is: a current PHP version and decent hosting, page caching, properly sized images, fewer and lighter plugins, and finally a tidy-up of fonts and scripts. Google judges speed with three Core Web Vitals (LCP, INP and CLS), so test before and after to prove each change helped.

Want a second opinion on your speed? We offer a free speed check within 2 business days. A store speed fix starts from $200 and takes 1 to 3 days, with the price in writing before we start. Call +1 (347) 474-0387 or see our performance optimization service.

How to speed up a WordPress site

  1. Measure your speed the right way.
  2. Fix hosting and the PHP version.
  3. Turn on page caching.
  4. Fix your images.
  5. Audit plugins and the theme.
  6. Clean up the database.
  7. Add a CDN.
  8. Tame fonts and scripts.
  9. Test again and keep watching.

Step 1: Measure your speed the right way

Open PageSpeed Insights, paste your home page address and test the mobile result first. You will see two kinds of numbers, and they are not the same thing.

  • Field data comes from real visitors, gathered by Chrome over the last 28 days. This is what Google uses for Core Web Vitals. A small or new site may not have enough visitors to show it.
  • Lab data is a simulated Lighthouse test on a mid-range phone and a mobile network. The 0 to 100 score comes from here, and 90 and above counts as good. It is one test, so results move a little each time.

Google’s three Core Web Vitals, each measured at the 75th percentile of real page loads, have these targets:

Metric What it measures Good
LCP (Largest Contentful Paint) How fast the main content appears 2.5 seconds or less
INP (Interaction to Next Paint) How fast the page reacts to taps and clicks 200 milliseconds or less
CLS (Cumulative Layout Shift) How much the page jumps while loading 0.1 or less

A page passes only when all three are good. Write down your current numbers, because you will need them in Step 9. Also note the server response time (TTFB). Google rates 0.8 seconds or less as good and more than 1.8 seconds as poor.

Step 2: Fix hosting and the PHP version

If your server answers slowly, nothing you do to images will fully fix it. A slow TTFB points at hosting, a heavy plugin or missing caching.

  • Check your PHP version in Tools > Site Health > Info > Server. WordPress.org currently recommends PHP 8.3 or greater. Our guide to updating PHP safely shows how.
  • Look at your plan. Crowded shared plans are a common cause of slow response times. Ask your host about server-level caching.
  • Use current server software. WordPress.org recommends MariaDB 10.11 or newer, or MySQL 8.0 or newer, and requires HTTPS support.

Step 3: Turn on page caching

Without caching, WordPress builds each page from scratch for every visitor. Caching saves the finished page and serves that copy instead. It is often the biggest single gain.

Use your host’s built-in cache if it has one, or install one well-known caching plugin, never two. After setting it up, test while logged out, because admins often see uncached pages. Exclude the cart, checkout and account pages on a WooCommerce store.

Step 4: Fix your images

Images are usually the heaviest part of a page. Codiffy’s speed work often starts here: on one store, the color photos for a single product added up to about 58 MB. We cut that to 2.5 MB of WebP copies, as described in our AllStar Logo case study.

  • Resize before uploading. A photo 4,000 pixels wide in an 800 pixel column wastes bandwidth.
  • Use modern formats. WordPress handles WebP, and since version 6.5 it supports AVIF too, if your server’s image library supports it (check Tools > Site Health > Info > Media Handling).
  • Lazy-load images below the fold, so they load as people scroll. WordPress does this by default.
  • Never lazy-load the main image at the top. Google warns that this delays LCP. Give the likely LCP image fetchpriority="high" instead, on one or two images only.
  • Set width and height on images so the page does not jump (CLS).

Step 5: Audit plugins and the theme

What matters is not how many plugins you have but what each one loads. Switch a suspect plugin off on a staging copy and measure again.

  • Delete plugins you do not use, not just deactivate them.
  • Replace heavy plugins that do one small job, such as a slider or a social feed.
  • Watch for plugins that load their CSS and scripts on every page when they are needed on one.
  • Remove old speed and image plugins that overlap with each other.

Step 6: Clean up the database

Over the years WordPress collects post revisions, spam comments, expired transients and leftovers from deleted plugins. Take a full backup first, then clear old revisions, spam and expired transients, and ask a developer to check autoloaded options in wp_options, which load on every page.

Step 7: Add a CDN

A content delivery network keeps copies of your images, CSS and JavaScript on servers around the world and serves them from near the visitor. Cloudflare, for example, has a free plan. A CDN helps most when visitors are far from your server. It does not fix a slow server or a heavy page.

Step 8: Tame fonts and scripts

  • Limit fonts. Use one or two families and only the weights you need. Google’s guidance is to subset fonts and use font-display deliberately, because a font that loads late can make text jump or stay invisible.
  • Defer JavaScript that is not needed to show the page, and load chat widgets and tracking scripts later.
  • Remove third-party scripts nobody uses anymore.
  • Minify CSS and JavaScript. Combining files matters less today, because modern servers send many files at once.

Test after each change. Forms, sliders and menus are the first things to break when scripts are delayed.

Step 9: Test again and keep watching

Run PageSpeed Insights again on the same pages and compare with Step 1. Field data lags by up to 28 days, so judge Core Web Vitals over a month.

What results look like: Codiffy’s real numbers

These are Google PageSpeed mobile scores for the home page, measured before and after Codiffy’s work. All were tested on the dates shown, and the tests were lab tests, not Core Web Vitals field data.

Site When Mobile before Mobile after Fully loaded time (GTmetrix)
Reflections Water Gardens March 2021 13 100 10.6 s to 0.9 s
Premium Electric July 2021 38 100 4.0 s to 1.9 s
Randy Clark & Associates September 2021 13 97 not recorded
Lifty Life January 2021 9 92 8.2 s to 2.0 s
PRI Graphics February 2021 30 90 13.5 s to 1.8 s

On Reflections Water Gardens the desktop score also went from 48 to 100, and the page weight in the Pingdom test fell from 5.2 MB to 2.2 MB. The work often included removing old lazy-load and image plugins that were no longer needed. See all of them in our speed optimization case studies.

Results depend on the site. A score of 100 is not the goal in itself; passing the Core Web Vitals with real visitors is.

When to call a developer

Call for help if:

  • Your server response time is slow and caching does not help.
  • Speed changes keep breaking forms, sliders or checkout.
  • You run a store and cannot afford downtime while testing.

Store speed fix from $200, 1 to 3 days, with a free speed check within 2 business days. Call +1 (347) 474-0387 or email haroon@codiffy.com. Performance optimization

Frequently asked questions

Why is my WordPress site so slow?

The usual causes are slow hosting, no page caching, oversized images, too many heavy plugins and third-party scripts. Check the server response time first, because it tells you whether the problem is the server or the page.

What is a good PageSpeed score for WordPress?

Lighthouse calls 90 to 100 good. But Google uses real-visitor Core Web Vitals, not the lab score, so aim to pass LCP (2.5 seconds or less), INP (200 milliseconds or less) and CLS (0.1 or less).

About the author

Muhammad Haroon Ur Rasheed founded Codiffy in 2019. He has been a full-time WordPress and back-end developer since 2012 and has fixed broken, slow and hacked WordPress and WooCommerce sites for businesses across the United States and Canada. Codiffy works from Rawalpindi, Pakistan, in US and Canadian business hours.