Skip to content

Core Web Vitals in WordPress: how to fix "Assessment failed"

· The AYT team · 6 min read

Man typing on a laptop at a wooden table, with a phone and notebook beside it

"Core Web Vitals Assessment: Failed" in PageSpeed Insights means at least one of three metrics measured on real visitors is over its threshold: LCP over 2.5 seconds, INP over 200 ms or CLS over 0.1, for 75% of visits over the last 28 days. To improve Core Web Vitals in WordPress, first find which metric fails, fix its cause (usually a slow server or the main image for LCP, JavaScript for INP, images without dimensions for CLS) and wait for the new data to cover the 28 days.

What Core Web Vitals measure

Google measures three things, from real visitors' browsers (Chrome UX Report data):

Metric What it measures Good Needs improvement Poor
LCP (Largest Contentful Paint) how long until the largest visible element appears, usually the main image or the heading ≤ 2.5 s 2.5–4 s > 4 s
INP (Interaction to Next Paint) how quickly the page responds to clicks and taps ≤ 200 ms 200–500 ms > 500 ms
CLS (Cumulative Layout Shift) how much elements move around while the page loads ≤ 0.1 0.1–0.25 > 0.25

INP replaced FID in 2024. The test passes only if all three are "good" at the 75th percentile, that is for at least three out of four visits. If there isn't enough INP data, the test is decided on LCP and CLS alone.

The Lighthouse score is not the same thing

PageSpeed Insights shows two different results. At the top, "Discover what your real users are experiencing" is the real data over 28 days: that's where "Passed" or "Failed" comes from. Below it, the 0 to 100 score is a lab test, run now, on a simulated phone. You can score 95 and fail the assessment, or the other way round. For Google, the real data is what counts.

If the site has few visitors, PageSpeed Insights has no data for your page and shows the data for the whole domain ("Origin"). If there isn't enough for the domain either, you see no assessment, only the lab test.

How to find which metric fails

  1. Open PageSpeed Insights, enter the page's address and look at the "Mobile" tab. Mobile usually fails first.
  2. Note the metric marked red or orange.
  3. In Google Search Console, the "Core Web Vitals" report groups pages with the same problem, for example LCP longer than 2.5 seconds on mobile. It's usually a whole template (all posts, all products), not one page.
  4. In the lab test, under "Diagnose performance issues", you can see which element is the LCP and which scripts block the page.

LCP too high: the page appears slowly

LCP has two parts: how long the browser waits for the server's response, and how long the main element takes to load.

The server responds slowly

If the server's first response (TTFB) takes more than 0.8 seconds, that's where the problem starts. In WordPress, the usual causes are no page cache, a slow plugin or hosting at its resource limit. The checks are in the article on the slow WordPress site.

The main image is large or loads late

  • Resize the main image to the width it's displayed at. A 4,000 px photo in a 1,200 px banner is just extra weight.
  • Use WebP or AVIF instead of JPEG or PNG.
  • Don't lazy-load the image in the first screen. Some themes and optimisation plugins do, and it delays exactly the LCP.
  • Avoid sliders in the first screen. They load several images and JavaScript before the first one shows.

CSS and fonts that block rendering

Optimisation plugins can combine and defer CSS and JavaScript. Turn the options on one at a time and check the site after each: deferring the wrong script breaks the menu or the forms. For fonts, load only the weights you use and host them locally, on the site.

INP too high: the page responds slowly to clicks

INP rises when the browser is busy with JavaScript and can't respond to a click right away. The usual causes in WordPress:

  • page builders with lots of effects and animations;
  • too many external scripts: chat, ad pixels, heatmaps, review widgets;
  • plugins that load their scripts on every page, though they're used on just one.

What to do: remove external scripts you no longer need, delay the others until after the first interaction (many optimisation plugins have a "delay JavaScript" option) and switch off plugins' scripts on the pages where they aren't used.

CLS too high: elements move around

CLS measures how much the page "jumps" while it loads. Causes and fixes:

  • Images without width and height. The browser doesn't know how much room to keep for them. WordPress adds the dimensions itself for images inserted in the editor; the problem comes from images placed by the theme or the page builder.
  • Ads, embeds and iframes with no reserved space. Give the container a minimum height in CSS.
  • A cookie banner that pushes the content down. Put it over the page, fixed at the bottom, not above the content.
  • Web fonts that swap in after loading and change the text's length. Use font-display: swap and a fallback font with similar metrics.

After the fixes

The lab test shows straight away whether you improved something. The real data changes gradually, as new visits enter the 28-day window. In Search Console, start validation from the Core Web Vitals report ("Start Tracking"); Google monitors the pages for 28 days and tells you whether they passed.

Core Web Vitals on AYT hosting

On AYT, the server side is already in place: NVMe drives, HTTP/2 and HTTP/3, Brotli and gzip compression, browser caching, and browsers that accept WebP automatically get an image's WebP copy, when one exists. You switch on the nginx page cache, Redis and OPcache in the WordPress Toolkit, on the site's Performance tab; they cut the server's response time, the first part of LCP. The panel's Site Performance page shows you slow plugins, queries and pages.

The rest (images, scripts, the theme) is down to the site. To see what else can speed up the server side, read about the Redis object cache. The plans are on the WordPress hosting page.

More articles

All articles