Most people arrive at this the same way. Search Console flags a set of URLs as “needs improvement”, or a client forwards a PageSpeed screenshot with a red number on it, and the instinct is to install a caching plugin and hope. Sometimes that helps. Often it does nothing, because the plugin was never touching the actual cause.

Core Web Vitals are three measurements of how a page feels to a real person: how quickly the main content appears, whether the layout jumps about while it loads, and how quickly the page responds to a tap. WordPress has predictable ways of failing each one.

By the end of this you will know how to measure properly, including the field data step most guides skip, which of the three you are failing, and the order to work through the fixes so your effort lands where it pays.

Before you start

You need admin access to WordPress and, ideally, your hosting control panel, so you can change the PHP version and see what caching the host already runs. Anything touching wp-config.php or .htaccess needs SFTP or a file manager.

Take a full backup before changing PHP versions, deleting plugins or running a database cleanup. Database optimisation tools delete rows permanently and there is no undo. Verify the site in Google Search Console too, otherwise you are guessing at whether real visitors are affected.

Step 1: Measure before you change anything

Run the page through PageSpeed Insights, and test the page you care about rather than only the homepage, since a product page, a post and the homepage usually fail for different reasons.

Now the part most guides skip. That report contains two completely different sets of numbers, and confusing them wastes weeks.

Lab data is the lower section, the one producing the 0 to 100 performance score. It is a single simulated load on a throttled mid range mobile device in a Google data centre. Repeatable, useful for diagnosis, and not what Google uses for ranking.

Field data is the section at the top, headed “Discover what your real users are experiencing”. It comes from the Chrome User Experience Report, which aggregates anonymised measurements from real Chrome users over a rolling 28 day window. Those are your actual Core Web Vitals, and that is what feeds Search Console.

Three consequences follow:

  • If it says there is not enough data, the page does not get enough Chrome traffic to be measured on its own. Work from the origin level summary and the lab data instead.
  • Field data lags. A fix deployed today takes up to four weeks to show fully, so do not re-test tomorrow and conclude it failed.
  • It is reported at the 75th percentile, so a quarter of visitors are having a worse time than the number shown.

Write your starting LCP, CLS and INP down before you touch anything.

Step 2: Work out which metric you are failing

Three metrics, three different problems, and three different sets of causes. The thresholds below are Google’s published boundaries, so you can see how much room you actually have before a metric counts as failing.

Largest Contentful Paint

LCP is the time until the largest visible element in the viewport finishes rendering, usually a hero image, a video poster or a big heading. Target 2.5 seconds or less.

It goes wrong on WordPress for three reasons: an enormous hero image straight off a camera, a wall of render blocking CSS because a page builder loads its entire stylesheet plus the theme’s plus half a dozen plugins’ before the browser may paint, or a slow server response because PHP is booting all of WordPress and running dozens of queries per visitor.

Cumulative Layout Shift

CLS measures how much visible content moves unexpectedly during load. Target 0.1 or less. It is the metric users notice, because it is the one that makes you tap the wrong button.

The causes are a short list: images and iframes without width and height, so the browser cannot reserve space; cookie notices, ad slots and promotional bars injected after render; web fonts swapping in and reflowing text; and lazy loaded elements above the fold arriving late.

Interaction to Next Paint

INP replaced First Input Delay in 2024. Rather than measuring only the first interaction, it looks across the whole visit at how long the page takes to respond visually to taps, clicks and key presses, and reports close to the worst. Target 200 milliseconds or less.

INP is a JavaScript problem, and it is where heavy WordPress sites lose. Sliders, popups, mega menus, chat widgets and testing scripts each add long tasks that block the main thread, and a tap does nothing until the thread clears. This metric also resists caching entirely: a cached page still runs every script in the visitor’s browser.

Step 3: Fix hosting and PHP first

The least exciting fix, and the one with the biggest effect on LCP, because everything else happens after the server responds.

Check your PHP version under Tools, Site Health, Info, Server. Anything older than PHP 8.2 is out of security support and slower at executing identical WordPress code. Update through the hosting panel, but test on staging first, because old plugins do throw fatal errors on newer PHP. Confirm OPcache is enabled while you are there, so PHP is not re-parsing every file on every request.

On oversold shared hosting, no plugin will rescue your response time. The tell is Time to First Byte swinging wildly between tests at different times of day, which means you are sharing a server with someone busy. The fix is moving host.

Step 4: Add caching in the right layers

Three different things get called caching.

Page caching stores finished HTML so the next visitor gets a static file rather than a full PHP and database render. This is the big one for response time and LCP. Many managed hosts already do it at server level, where a caching plugin on top can conflict, so check before installing.

Object caching keeps database query results in memory via Redis or Memcached, persisting between requests. It matters most for logged in traffic, WooCommerce carts and checkout, and anywhere page caching cannot apply because the response is personalised.

Browser caching tells returning visitors to reuse files they already have. On Apache:

# Hold static assets for a year. Safe as long as your theme and plugins
# version filenames (style.css?ver=1.2.3), since a changed version string
# is a new URL and busts the cache on its own.
<IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType image/webp "access plus 1 year"
    ExpiresByType image/jpeg "access plus 1 year"
    ExpiresByType text/css   "access plus 1 year"
    ExpiresByType text/javascript "access plus 1 year"
    # HTML must stay short, or visitors keep seeing stale pages.
    ExpiresByType text/html  "access plus 0 seconds"
</IfModule>

Get this wrong and visitors see an old version of the site after you publish. Lowering the max-age and clearing caches undoes it.

Step 5: Sort out your images

Serve modern formats. WebP is supported by every current browser and much smaller than JPEG at comparable quality, with AVIF smaller again. Most optimisation plugins convert on upload and serve a fallback.

Serve the right size. WordPress generates multiple sizes and outputs a srcset so the browser can choose, but that only helps if useful sizes are registered. A 3000 pixel image in a 600 pixel column still wastes bytes if nothing near 600 exists.

Always set dimensions. WordPress adds width and height so the browser can reserve space, which is what prevents layout shift. Page builders and hand written markup routinely drop them, and that is nearly always the cause of image related CLS.

Never lazy load the LCP image. This is the most common own goal in WordPress performance work. Lazy loading defers an image until it nears the viewport, which is right further down the page and wrong for the hero, because it adds a round trip before the browser even starts fetching your LCP element. Core tries to avoid it by skipping the first few images, but page builders, custom heroes and CSS backgrounds defeat that logic constantly. Check your rendered hero markup for loading="lazy".

Better still, fetch it early:

/**
 * Preload the hero so the browser starts downloading it from the <head>
 * rather than waiting to discover it in the markup. Only ever do this for
 * the real LCP element: preloading several images is worse than none,
 * because they compete for bandwidth with each other.
 *
 * Belongs in a small site-specific plugin, not functions.php, so a theme
 * update cannot wipe it.
 */
add_action( 'wp_head', function () {
    if ( ! is_front_page() ) {
        return;
    }

    $hero_id = get_theme_mod( 'hero_image_id' ); // however your hero is stored
    $src     = $hero_id ? wp_get_attachment_image_url( $hero_id, 'full' ) : '';

    if ( ! $src ) {
        return;
    }

    printf(
        '<link rel="preload" as="image" href="%s" fetchpriority="high">' . "\n",
        esc_url( $src )
    );
}, 1 ); // priority 1 so it lands early in the head

Step 6: Cut what your plugins load

Plugin count is not the metric that matters. Thirty well written plugins can be lighter than five bad ones. What matters is how much CSS and JavaScript reaches the page and how much PHP runs per request.

Delete anything you are not using rather than deactivating it, because a deactivated plugin is still unpatched code sitting on your server. Then look for plugins loading assets sitewide when only one page uses them, which is normal for contact forms and sliders:

/**
 * Stop a plugin's assets loading where they are not needed. Run late
 * (priority 100) so the plugin has already enqueued them.
 *
 * Find the real handle first: check the plugin source, or read the id
 * attribute on the <link> or <script> tag in your page source, which is
 * the handle plus "-css" or "-js".
 */
add_action( 'wp_enqueue_scripts', function () {
    if ( ! is_page( 'contact' ) ) {
        wp_dequeue_style( 'some-form-plugin-css' );
        wp_dequeue_script( 'some-form-plugin-js' );
    }
}, 100 );

Dequeue the wrong handle and you get an unstyled or broken element on that page. Removing the line puts it straight back, so this is safe to test on staging.

Be honest about the ceiling. If a site was built with a page builder nested five sections deep, with a slider on every page and three overlapping analytics tools, no plugin will make it fast. Optimisation plugins are a tuning layer over a build and cannot rewrite a bad one. Separating what can be tuned from what has to be rebuilt is most of what my WordPress speed optimisation work involves.

Step 7: Fix font loading

Web fonts hurt LCP when your largest element is text, and CLS when the fallback swaps and reflows the paragraph.

Self host rather than pulling from a third party domain. That removes a DNS lookup and a connection to another server, and keeps you clear of the data protection questions around Google Fonts serving from Google’s own servers. Cut the number of weights too, since every weight and style is a separate file and most sites load far more than they use. Then let text render immediately:

@font-face {
  font-family: "Site Sans";
  src: url("/fonts/site-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  /* Show fallback text straight away and swap when the font lands.
     Without this the browser hides the text while it downloads. */
  font-display: swap;
}

Pick a fallback with similar metrics so the swap shifts the text as little as possible.

Step 8: Clean up the database

Databases accumulate revisions, spam comments, expired transients and metadata orphaned by deleted plugins. This rarely produces a headline improvement, but it cuts query time and makes backups faster.

Cap revisions in wp-config.php, above the “That’s all, stop editing” line:

// Keep the last 5 revisions per post instead of an unlimited history.
define( 'WP_POST_REVISIONS', 5 );

Then check autoloaded options. Everything marked autoload is pulled into memory on every request, and abandoned plugins leave large serialised blobs behind:

-- Total autoloaded size, then the worst offenders. Change wp_ to your
-- real prefix. WordPress 6.6 added new autoload values alongside 'yes',
-- so match every value that still autoloads. Never delete rows without a
-- backup, and without knowing which plugin owns them.
SELECT SUM(LENGTH(option_value)) AS autoload_bytes
FROM wp_options WHERE autoload IN ('yes', 'on', 'auto', 'auto-on');

SELECT option_name, LENGTH(option_value) AS size_bytes
FROM wp_options WHERE autoload IN ('yes', 'on', 'auto', 'auto-on')
ORDER BY size_bytes DESC LIMIT 20;

Step 9: Put a CDN in front

A content delivery network serves static files from somewhere near the visitor. If your customers and your server share a country the geographic benefit is modest, but the rest is not: a CDN absorbs traffic spikes, terminates TLS efficiently, and usually brings HTTP/2 or HTTP/3, Brotli compression and image optimisation with it. Add it after the other work, because a CDN in front of a slow origin just serves the slowness to more places.

How to check it worked

Re-run PageSpeed Insights straight after your changes and compare the lab section against your starting numbers. Lab data responds immediately, so this confirms the change did what you intended technically.

Then wait. Field data rolls over 28 days, so give it three to four weeks, and check the Core Web Vitals report in Search Console, which groups URLs by template so you can see whether every product page moved rather than the one you tested.

For INP, lab tools are weak, because a synthetic load never interacts with anything. Use Chrome DevTools, record in the Performance panel while clicking the menu and other controls, and look for long tasks on the main thread.

When it does not work

The lab score moved but the field data did not

Usually the 28 day window catching up. If six weeks pass with no change, the lab gain was cosmetic, for example trimming unused CSS on a page whose real problem was a two second server response.

LCP got worse after enabling an optimisation plugin

Normally deferred JavaScript pushing back render, or the plugin lazy loading your hero. Turn off “delay JavaScript execution” and lazy loading one at a time, re-testing after each.

CLS is fine on desktop and terrible on mobile

Look for a cookie banner or promo bar sitting inline rather than fixed on small screens, images with a fixed height on desktop and auto height on mobile, and content injected by a mobile only menu.

INP will not improve whatever you do

If you have removed everything removable and it still fails, the JavaScript running is the site itself, typically the page builder runtime and its addons. There is a floor, and the honest answer is that the build has to change.

Common questions

Does a caching plugin fix Core Web Vitals?

It fixes part of LCP by cutting server response time, which is worth having. It does little for CLS and almost nothing for INP, because both happen in the browser after the HTML arrives.

Do Core Web Vitals affect rankings?

They are a ranking signal, but a small one next to relevance and content quality. Passing them will not lift a weak page, though failing badly can hold back a page competing against equals. The stronger argument is commercial: people leave slow pages.

Should I remove my page builder to pass INP?

Not as a first move. Trim what each page loads, remove addons you are not using, and check whether the builder can load assets per page. If you still fail and the site matters commercially, price up a rebuild.

What performance score should I aim for?

The 0 to 100 score is a diagnostic, not a target. Chasing 100 leads people to break things for a number nobody outside the industry sees. Pass the three field metrics and stop.

Why is the site fast for me and slow in the report?

You are logged in, served an uncached page, with your own browser cache, on a fast desktop connection. Test in a private window on mobile data and trust the field data over your impression.

Where this leaves you

Performance work on WordPress is mostly a question of order. Measure first so you know which metric is failing. Fix the server and caching so the HTML arrives quickly. Fix images and fonts so the first paint is not waiting on a huge download. Then cut JavaScript so interactions respond. Doing it in another order is how people end up with six optimisation plugins and the same red numbers.

The honest limit is that tuning cannot rescue a build that was heavy by design. If INP still fails after all of this, the constraint is what the site loads on every page.

If you would rather someone else worked the list on your site, that is what my speed optimisation service is for, and holding the gains afterwards is part of a maintenance plan. Either way, take the before numbers first. You will want them later.