EN · $ USD
WordPress and E-commerce

How to Improve Your WordPress PageSpeed Score and Core Web Vitals

7 min read Updated: Sunucu Atlas technical team

In short

To improve your WordPress PageSpeed score, first cut server response time (TTFB) with a page cache, then prioritize and compress the LCP image, self-host fonts with font-display: swap, set width and height on images to prevent CLS, and defer unnecessary JavaScript to improve INP. Re-test the same page after every change.

In this guide
  1. PageSpeed score and Core Web Vitals are not the same thing
  2. Step 1: Take a baseline measurement
  3. Step 2: Reduce server response time (TTFB)
  4. Step 3: Prioritize the LCP element
  5. Step 4: Optimize your fonts
  6. Step 5: Bring CLS close to zero
  7. Step 6: Reduce JavaScript to improve INP
  8. When does hosting become the bottleneck?
  9. Next step: measure, change one thing at a time, measure again

The way to raise your WordPress PageSpeed score for good is to target the Core Web Vitals metrics behind it, not the score itself. Work in this order: first cut server response time (TTFB) with a page cache, then prioritize your largest content element (LCP), fix fonts and images to prevent layout shift (CLS), and finally reduce JavaScript to improve interaction latency (INP). Every step in this guide is measurable, so each change shows up as a number you can compare.

PageSpeed score and Core Web Vitals are not the same thing

PageSpeed Insights shows you two different kinds of data. Field data is real-user measurements collected from Chrome users over the last 28 days, and it is what Google actually uses in its assessment. Lab data is a one-off Lighthouse test on a simulated mobile device; the 0-100 score comes from here. You can score 95 in the lab and still "fail" in the field, so your goal should be getting the field data to turn green.

MetricWhat does it measure?"Good" threshold (75th percentile)Typical cause in WordPress
LCP (Largest Contentful Paint)How long the main content takes to appear on screen2.5 seconds or lessSlow TTFB, large hero image, render-blocking CSS
INP (Interaction to Next Paint)How fast the page responds to clicks and taps200 ms or lessHeavy page builder, many plugin scripts, third-party code
CLS (Cumulative Layout Shift)How much content shifts while loading0.1 or lessImages without dimensions, font swaps, banners that appear late
TTFB (supporting metric)Time until the first byte arrives from the server0.8 seconds or lessUncached PHP, slow database queries, underpowered hosting

Step 1: Take a baseline measurement

  1. Test your homepage in PageSpeed Insights on the mobile tab and write down the LCP, INP, CLS and TTFB values in a table.
  2. Don't measure only the homepage; also test your highest-traffic templates: a blog post, a category page and, if you have one, a product page.
  3. Run the lab test three times on the same URL and record the median; a single run can be misleading.
  4. Check the Core Web Vitals report in Google Search Console to see which URL groups have problems.

You can also measure server response time from the command line. Run the command twice, since the first request may not be cached:

# Linux / macOS
curl -o /dev/null -s -w "TTFB: %{time_starttransfer}s  Toplam: %{time_total}s\n" https://ornekalanadi.com/

# Windows (PowerShell)
curl.exe -o NUL -s -w "TTFB: %{time_starttransfer}s  Toplam: %{time_total}s\n" https://ornekalanadi.com/

# Is the page served from cache? (LiteSpeed)
curl -sI https://ornekalanadi.com/ | grep -i x-litespeed-cache

If the response shows x-litespeed-cache: hit, the page is being served from cache; miss, or no header at all, means PHP runs again on every visit.

Step 2: Reduce server response time (TTFB)

LCP can never be shorter than TTFB. If the server takes 1.5 seconds to respond, no front-end optimization will comfortably get LCP under 2.5 seconds. In WordPress, every uncached request means running PHP and dozens of database queries.

  • Set up full-page caching. On a site running LiteSpeed Web Server, the LiteSpeed Cache plugin serves pages at the server level without touching PHP at all. For detailed settings, see our guide to speeding up WordPress with LiteSpeed Cache.
  • Use a current PHP version. Switch to the newest 8.x version your site supports in the cPanel PHP selector, and confirm that OPcache is enabled.
  • Find heavy plugins. Use the Query Monitor plugin to see how many queries run on each page and which plugin is slowing things down; remove plugins you don't need.
  • Don't forget uncached pages. Search, cart, checkout and logged-in user pages are not cached; their speed depends directly on server power.

If caching is set up correctly but TTFB stays high on uncached pages, the problem is most likely the infrastructure. WordPress hosting plans running on LiteSpeed Web Server and NVMe storage get this layer right from the start. If you're curious how LiteSpeed differs from Apache and Nginx, read our article on what LiteSpeed is. Having the server in Istanbul also shortens the network distance for visitors in Türkiye.

Step 3: Prioritize the LCP element

The "Largest Contentful Paint element" diagnostic in the PageSpeed report tells you which element is your LCP. On WordPress sites this is usually the hero image, the featured image or a large heading.

  1. Don't lazy-load the LCP image. loading="lazy" delays above-the-fold images. Recent WordPress versions automatically prioritize the first large image, but sliders and page builders can break this.
  2. Set the priority explicitly. Add fetchpriority="high" to the image; if the image is a CSS background, use preload.
  3. Right size and format. Don't upload a 4000-pixel file for an image displayed at 1200 pixels wide; use WebP or AVIF and serve a smaller version on mobile with srcset.
  4. Skip the slider. A rotating hero slider is the component that most often hurts LCP; a single static image is almost always faster.
  5. Reduce render-blocking CSS. Inlining critical CSS and loading the rest asynchronously lets the LCP element paint sooner.
<!-- Above-the-fold LCP image -->
<img src="/wp-content/uploads/kapak-1200.webp"
     srcset="/wp-content/uploads/kapak-600.webp 600w, /wp-content/uploads/kapak-1200.webp 1200w"
     sizes="(max-width: 600px) 100vw, 1200px"
     width="1200" height="600"
     fetchpriority="high" decoding="async" alt="Kapak görseli">

<!-- If the image is a CSS background, inside head -->
<link rel="preload" as="image" href="/wp-content/uploads/kapak-1200.webp" fetchpriority="high">

Step 4: Optimize your fonts

Fonts affect both LCP (text waits to appear) and CLS (lines shift when the fallback font swaps to the real one).

  • Instead of loading Google Fonts from an external server, download the files and host them on your own site; this also keeps visitor IP addresses from being sent abroad.
  • Load only the woff2 format and only the 2-3 weights you actually use.
  • Use font-display: swap so text appears immediately in a fallback font, and preload your main body font.
@font-face {
  font-family: "Inter";
  src: url("/wp-content/themes/temam/fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

Step 5: Bring CLS close to zero

  • Give every img, iframe and video tag a width and height so the browser reserves the space in advance.
  • Give containers for YouTube embeds and ad slots a fixed aspect ratio.
  • Show cookie notices and promo banners as overlays pinned to the bottom of the screen, not in a way that pushes content down.
  • Use transform in animations instead of top or height.
.video-kapsayici {
  aspect-ratio: 16 / 9;
  width: 100%;
}
.reklam-alani {
  min-height: 250px;
}

Step 6: Reduce JavaScript to improve INP

INP measures how quickly the page responds when a user presses a button. If the browser's main thread is busy with long JavaScript tasks, the click has to wait.

  • Disable plugin scripts per page. A contact form script should load only on the contact page; asset manager plugins make this easy.
  • Delay third-party code. Live chat, heatmaps and ad pixels can be deferred until the first interaction; LiteSpeed Cache's JavaScript delay options work well for this. Always test features like forms and the cart after the change.
  • Find long tasks. In the Chrome DevTools Performance panel, tasks longer than 50 ms are flagged in red, and you can see which script they belong to.

Choosing a theme and page builder

Heavy page builders generate many nested div elements, and a large DOM slows down both INP and style calculation. If you're building a new site, choose a lightweight theme that works with the block editor. If switching themes on an existing site isn't an option, even disabling unused widgets and modules makes a difference.

When does hosting become the bottleneck?

If you've finished front-end optimization and still see these symptoms, you've hit the limit of your server resources:

  • TTFB is consistently high on uncached pages (search, cart, admin dashboard).
  • The resource usage screen in cPanel regularly shows you hitting the CPU limit.
  • You get 508 or 503 errors when traffic increases.

To find the right plan for your traffic, use our guide to choosing WordPress hosting by visitor count. If you run a high-traffic site or several heavy sites on one account, premium hosting plans with a 10-core processor, 12-16 GB RAM, a 1000% CPU limit and access/error logs give you the headroom you need for uncached requests.

Next step: measure, change one thing at a time, measure again

Record your baseline values, apply changes one at a time and re-test the same URL after each step. Field data takes time to update because of the 28-day window, while lab results change immediately. If you want to lock in the infrastructure side, explore Sunucu Atlas WordPress hosting plans with one-click installs through WP Toolkit; for mid-sized sites, the SA-WP-3 plan with 3 GB RAM and 3 cores is a good starting point. For the official definitions of Core Web Vitals, see the web.dev Core Web Vitals page.

Frequently asked questions

My PageSpeed score is above 90, but Search Console says Core Web Vitals failed. Why?

The score comes from a lab test, while Search Console uses field data from real users over the last 28 days. Real devices and connections are slower than the test environment, so go by the field data.

Is a single plugin enough for WordPress PageSpeed?

A caching plugin delivers the biggest gain, but it isn't enough on its own. If you have large images, a heavy theme or many third-party scripts, you need to fix those separately.

Why is LCP so much worse on mobile than on desktop?

The mobile test simulates a slower processor and network. On mobile, a large hero image, render-blocking CSS and slow TTFB have a much more noticeable impact.

I made changes. When will Search Console update?

Field data is calculated over a rolling 28-day window, so it can take about four weeks for the improvement to show fully. Track your progress with lab tests in the meantime.

Will switching hosting improve my PageSpeed score?

If the problem is high TTFB, yes; server-side caching and enough CPU directly improve LCP. CLS and INP are mostly about your theme and scripts, so a hosting change alone won't fix them.

For this guide

Recommended plans

WordPress hosting with LiteSpeed Web Server, NVMe storage and WP Toolkit gives you the low server response time that every PageSpeed effort builds on; for high traffic, premium hosting adds extra CPU and RAM headroom.

SA-WP-1

cPanel
Recommended

20 GB NVMe disk

$0.39/mo

+VAT

  • Processor1 cores
  • Memory1 GB
  • LocationIstanbul
  • WordPress One-Click Install (WP Toolkit)
  • 1 Hosted Domains
  • 50 GB Traffic
  • 5 Email Account Limit

SA-WP-2

cPanel

40 GB NVMe disk

$0.69/mo

+VAT

  • Processor2 cores
  • Memory2 GB
  • LocationIstanbul
  • WordPress One-Click Install (WP Toolkit)
  • 1 Hosted Domains
  • 100 GB Traffic
  • 10 Email Account Limit

SA-WP-3

cPanel

60 GB NVMe disk

$0.98/mo

+VAT

  • Processor3 cores
  • Memory3 GB
  • LocationIstanbul
  • WordPress One-Click Install (WP Toolkit)
  • 1 Hosted Domains
  • 200 GB Traffic
  • 25 Email Account Limit

WordPress Hosting — tüm paketler Premium Hosting — tüm paketler

Need help with setup?

Send questions about your service in a support ticket, and our technical team will walk you through it step by step.