---
title: "How to Speed Up WordPress: Fixes Ranked by What We Measured"
description: "How to speed up WordPress in the right order: we slowed a test site on purpose, then measured which fixes took its mobile score from 59 to 99."
url: "https://skybootstrap.com/speed-up-wordpress/"
canonical_url: "https://skybootstrap.com/speed-up-wordpress/"
date: "2026-12-04T06:29:00+06:00"
modified: "2026-11-21T15:44:05+06:00"
author: Skybootstrap Team
type: article
site: SkyBootstrap
language: en-US
---

# How to Speed Up WordPress: Fixes Ranked by What We Measured

To speed up WordPress, test the page first, then fix what the test shows. On our test site, three problems decided the score: slow server time, a main image that loaded late, and CSS and JavaScript that blocked the first paint. Fixing them took a mobile Lighthouse score from 59 to 99.

We didn’t touch a live site. We built one WordPress 7.1.3 test site, slowed it down on purpose in five ways, and measured each fix: a page cache, a faster main image and fewer render-blocking resources. The order of the fixes below comes from those numbers.

## Test Core Web Vitals before you change anything

Test your speed and Core Web Vitals first, so you know which problem you have and can prove a fix worked. Run the page through PageSpeed Insights, Google’s free speed test, and save the result. Our guide to testing WordPress speed covers the settings and pitfalls.

PageSpeed Insights shows two kinds of numbers. Field data comes from real Chrome visitors “over the previous 28-day collection period”, so a fix takes weeks to show there. Lighthouse is Google’s lab testing tool, and lab data is one run of it on a simulated mid-range phone. You can repeat it straight after each change.

The two can disagree. On 5 November 2026, our own home page scored 100 in the mobile lab test, while skybootstrap.com’s field data failed Core Web Vitals on mobile. Read the field data first.

Core Web Vitals are Google’s three measures of how a page feels to visitors: loading, response to clicks and layout stability. Each has a “good” limit, measured at the 75th percentile of page views, so three in four visits should meet it:

| Metric | What it measures | Good |
| --- | --- | --- |
| Largest Contentful Paint (LCP) | When the main image or text block appears | 2.5 s or less |
| Interaction to Next Paint (INP) | How fast the page reacts to clicks and taps | 200 ms or less |
| Cumulative Layout Shift (CLS) | How much the layout jumps while loading | 0.1 or less |
| Time to first byte (TTFB) | The wait before the server sends anything; not a Core Web Vital | 0.8 s or less |

The limits come from [web.dev’s thresholds page](https://web.dev/articles/defining-core-web-vitals-thresholds); the TTFB figure is from web.dev’s TTFB guide. INP replaced First Input Delay (FID) as a Core Web Vital on 12 March 2024, so a guide that still scores FID is out of date.

Once you have a report, match what it flags to the part of this guide that fixes it:

| What the report shows | Likely cause | Where to start |
| --- | --- | --- |
| “Reduce initial server response time” or “Document request latency” | Uncached pages, slow plugin work, host limits | Server response time, below |
| Poor LCP, with an image as the LCP element | The main image loads late | The main image, below |
| “Eliminate render-blocking resources” or “Render blocking requests” | Files loaded in the page head | Render-blocking CSS and JavaScript, below |
| “Enable text compression” | The server sends CSS and JavaScript uncompressed | Compression, below |
| Poor CLS | Content without reserved space | Layout, below |
| Poor INP in field data | Long scripts after a click | Slow clicks, below |

## What slowed our test site down

Our test site loaded fast until we added five slowdowns of our own. With no plugins and the default theme, the test page scored 99 to 100 on mobile, with LCP around 1.6 to 1.8 seconds. Then we added each problem alone and measured it (one Lighthouse run per row; the clean row is the median of three):

| What we added (one at a time) | Lighthouse mobile score | LCP | Server time (TTFB) |
| --- | --- | --- | --- |
| Nothing (clean site) | 100 | 1.6 s | 57 ms |
| 60 extra database queries on every page | 100 | 1.6 s | 85 ms |
| A call to an outside service that takes 0.8 s to answer | 99 | 1.8 s | 867 ms |
| 520 KB of CSS and 578 KB of JavaScript loaded in the page head | 59 | 7.7 s | 53 ms |
| The main image at full size, lazy-loaded, with no smaller copies | 75 | 8.9 s | 60 ms |
| 2 MB of autoloaded options | 99 | 2.0 s | 54 ms |

The slow outside call is the trap. It added 0.8 seconds before the page even started, yet the score only dropped one point; Lighthouse just noted “Root document took 867 ms”. So read the server time on its own, not only the score.

Then we switched everything on at once and fixed it in order:

![Lighthouse mobile report from our test site before the fixes, with a performance score of 59 and Largest Contentful Paint of 14.6 seconds](https://skybootstrap.com/wp-content/uploads/2026/11/speed-up-wordpress-lighthouse-before.webp "Test site, 3 Nov 2026: WordPress 7.1.3, nginx 1.24.0, PHP 8.3.6, Lighthouse 12.8.2 mobile. All five slowdowns on, no page cache, CSS and JavaScript not compressed.")

| Step | Score | LCP | Server time for visitors |
| --- | --- | --- | --- |
| All five slowdowns on | 59 | 14.6 s | 886 ms |
| 1. Server page cache turned on (nginx, not a plugin) | 59 | 14.6 s | 0.5 ms |
| 2. Main image fixed | 59 | 7.6 s | 0.5 ms |
| 3. Render-blocking CSS and JavaScript removed | 99 | 1.8 s | 0.6 ms |

The page cache fixed the server wait completely, and the score didn’t move. The image fix halved LCP. Removing the blocking files is what brought the score back. The screenshot below also has text compression on, which gave 100:

![Lighthouse mobile report from the same test page after the fixes, with a performance score of 100 and Largest Contentful Paint of 1.7 seconds](https://skybootstrap.com/wp-content/uploads/2026/11/speed-up-wordpress-lighthouse-after.webp "Test site, 3 Nov 2026: same page with the slowdowns removed, page cache on and CSS and JavaScript compressed.")

These are lab numbers from one machine with no real network, so compare them with each other, not with your site. They even moved between runs: one “before” run gave an LCP of 8.9 seconds, and two repeats gave 14.6. Run each test more than once.

## Fix slow server response time with a page cache

Server response time is how long the server takes to start sending the page. On our test site, a page cache cut it from 886 ms to under 1 ms for visitors. A page cache keeps a finished copy of each page and sends that copy, so WordPress and the database don’t run for every visit.

Ours was nginx’s own cache (fastcgi_cache), set up on the server. On shared or managed hosting, look for a cache setting in your host’s control panel or ask your host. Otherwise use a caching plugin; the handbook says you can find them “by searching for cache in the plugins directory”. We didn’t test caching plugins.

The [handbook’s optimization page](https://developer.wordpress.org/advanced-administration/performance/optimization/) agrees on where to start: “If you need a quick fix now, go straight to the Caching section”. You can check the wait yourself with curl, a command-line tool on macOS, Linux and Windows 10 or later (type `curl.exe` there). Run it logged out: it measures from your own connection, as a visitor would see it:

```
curl -s -o /dev/null -w "TTFB: %{time_starttransfer}s\n" https://example.com/your-page/
```

A page cache doesn’t help everyone, though. Ours skipped logged-in users and addresses with a query string, so those visits still waited. A logged-in visit took 902 ms while visitors got the cached copy in 0.6 ms. An uncached address took 896 ms, and it only came down when we removed the slow work behind it:

- **The outside call:** removing it took the uncached page from 896 ms to 90 ms. Our slow plugin guide shows how to find a plugin making calls like this.
- **The extra queries:** removing them took it to 63 ms.
- **The 2 MB of autoloaded options:** switching them off took it to 55 ms.

Which cache layer does what, and which ones your site needs, is in our guide to WordPress caching.

A CDN, or content delivery network, keeps copies of your files on servers around the world, so visitors far from your server download them from somewhere closer. The handbook says a CDN “is most effective if used with a WordPress caching plugin”. Our test site had no real visitors or distance to cover, so we didn’t measure a CDN.

Busy sites with many uncached pages can add an object cache, which keeps database results in memory; our Redis object cache guide measures when that helps. Added a cache and now your edits don’t appear? Purge it the way our changes not showing guide describes.

## Make the main image load first

On our test page, the Largest Contentful Paint element was the featured image. WordPress 7.1.3 printed it with smaller copies to choose from (srcset) and `fetchpriority="high"`, so the browser fetched a 768 px version first. That gave an LCP of about 1.6 seconds.

When we made the theme print the full 2400 px file, lazy-loaded and without those copies, LCP rose to 8.9 seconds and the score fell to 75. Lazy loading tells the browser to wait until an image is near the screen, which is the wrong signal for the first one. A theme, slider or page builder that prints the hero image its own way can skip what core does, as our test plugin did, so check yours in the browser’s page source. Look at the first `<img>` tag: `loading="lazy"` with no `srcset` or `fetchpriority` is the pattern that slowed ours.

Our LCP guide shows how to find the LCP element and give it priority.

## Remove render-blocking resources (CSS and JavaScript)

Render-blocking resources are CSS and JavaScript files the browser must download before it shows anything. On our test site, 1.1 MB of them in the page head pushed the first paint to 7.2 seconds. Removing them, after the cache and image fixes, took the score from 59 to 99.

A plugin or theme can load its files on every page, even where nothing uses them, as our test plugin did. Our guide to removing unused CSS and JavaScript shows how to unload them per page and how to test that nothing broke.

Check compression too.

Text compression shrinks CSS, JavaScript and HTML before they’re sent. The [nginx gzip documentation](https://nginx.org/r/gzip) says HTML is “always compressed”, but other types only when `gzip_types` lists them. The nginx.conf on our Ubuntu test server (nginx 1.24.0) had `gzip on;` but that line commented out. Our 520 KB CSS file went out uncompressed until we added this line to the site’s `server` block:

```
gzip_types text/css application/javascript text/javascript application/json image/svg+xml;
```

The CSS file then went out at 135 KB.

With the cache on, the CSS-and-JavaScript case scored 80 (median of three), against 59 in an uncached single run without compression.

The line only works when `gzip on;` is set. Back up the config file first, then run `sudo nginx -t` and `sudo nginx -s reload`. To undo, remove the line and reload.

On shared or managed hosting, or a server that isn’t nginx, ask your host to compress CSS and JavaScript. We didn’t test Apache or other servers.

## Keep the layout still

Cumulative Layout Shift (CLS) is the Core Web Vital that measures how far content jumps after it appears, and a good score is 0.1 or less. On our test page, a banner that a script added above the post text after loading caused a shift of 0.084.

The fix was to keep its space. When the banner’s slot was in the page HTML from the start with its height set, the shift dropped to 0. The same idea applies to ads, embeds, cookie bars and images: give each one a set height, or width and height, before it loads. We tested only the banner.

## When clicks feel slow

Interaction to Next Paint (INP) measures how long the page takes to react after a click or tap, and 200 ms or less is good. Slow reactions come from scripts that keep the browser busy. Field data shows INP; a single Lighthouse run doesn’t click anything. Our INP guide shows how to find the scripts responsible.

## Clean up the database and background work

Autoloaded options are settings WordPress loads from the database on every request. The handbook says to “try to keep your site’s autoloaded options under 800kb”.

With SSH access, WP-CLI, WordPress’s command-line tool, shows the total in bytes and the largest options. Run it in your WordPress folder, or add `--path=` with that folder. We used WP-CLI 2.12.0:

```
wp option list --autoload=on --format=total_bytes
wp option list --autoload=on --fields=option_name,size_bytes --format=csv | sort -t, -k2 -n -r | head
```

On our test site, those showed 2,145,766 bytes and our 2 MB test option at the top. We backed up the database with `wp db export`, then `wp option set-autoload lab_bloat_option off` brought the total to 48,614 bytes. `wp option set-autoload lab_bloat_option on` undid it. The speed gain was small on our machine, about 8 ms, because the database runs on the same server. We didn’t test a host with a separate database server.

That WP-CLI total leaves out options marked `auto`, which WordPress also loads. On our test site it counted 102 options while WordPress loaded 126, so check **Tools > Site Health** too; it warns at 800,000 bytes and counts them all.

The handbook’s first tip is simpler still: “Deactivating and deleting unnecessary plugins is a significant way to improve performance.” A plugin you remove can no longer add queries, outside calls or files. Don’t switch off an option you don’t recognize without a backup; some plugins need theirs on every page. Without SSH, the handbook’s advice is: “For step-by-step instructions on viewing and changing autoloaded options, check with your hosting provider.” Our database guide covers revisions, transients and which options are safe to change. If wp-admin itself is slow or your host reports high CPU from `admin-ajax.php`, see our Heartbeat API guide.

Background work in wp-admin counts too. On our test site, the block editor sent a Heartbeat request to the server every 10 seconds and the dashboard every 60. Our Heartbeat API guide shows how to slow it down without losing post locks.

## When the host or PHP version is the limit

If an uncached page is still slow after you’ve ruled out plugins, the server may be the limit. The handbook lists hosting, hardware, server load and software versions as speed factors, and says “Newer PHP versions will usually include better performance optimization as well.”

Check which PHP version your site runs under **Tools > Site Health > Info > Server**, and ask your host about newer ones. A persistent object cache needs your host to run a cache server such as Redis, as the handbook notes. If you’ve outgrown your plan, our guide to faster SSD WordPress hosting compares hosts. We didn’t test hosts or PHP versions for this guide.

## Frequently Asked Questions

### Why does my site feel slower when I’m logged in?

Our cache was set to bypass anyone logged in, so a logged-in visit built the page from scratch while visitors got the stored copy. On our test site, visitors got the page in 0.6 ms and a logged-in visit took 902 ms, until we removed the slow plugin work.

### Does a page cache fix a slow WordPress site?

A page cache fixes server time, not everything. We tested a server-level cache, not a caching plugin. It cut the wait from 886 ms to 0.5 ms, but the mobile score stayed at 59 because the main image and blocking CSS and JavaScript were still there.

### Does WordPress speed affect SEO?

Google’s [Core Web Vitals page](https://developers.google.com/search/docs/appearance/core-web-vitals) says: “We highly recommend site owners achieve good Core Web Vitals for success with Search”. It says they align with what its ranking systems reward. We didn’t measure rankings for this guide.

### What is a good PageSpeed score for WordPress?

The score is a lab number that changes between runs, so aim for the Core Web Vitals limits in field data instead. Our score barely moved when the server took 0.8 seconds longer, which the field TTFB would show.

## How we tested

We built one WordPress 7.1.3 test site on 3 November 2026, with the Twenty Twenty-Five theme on nginx 1.24.0, PHP-FPM 8.3.6 with OPcache and MariaDB 10.11. The test page had a 2400 × 1350 featured image and plain text.

Then we slowed it down five ways. A small test plugin we wrote added extra database queries, a call to a local service that waits 0.8 seconds, 1.1 MB of CSS and JavaScript in the page head, and a full-size lazy-loaded main image. WP-CLI 2.12.0 added the fifth, a 2 MB autoloaded option. The page cache was nginx’s own fastcgi_cache, not a plugin.

Scores and LCP come from Lighthouse 12.8.2 in Chromium 141 with its default mobile settings, the median of three runs unless stated. Server time is the median of 15 curl requests. Everything ran on one machine, so use the numbers to compare before and after, not to compare with your site. The real-visitor example is skybootstrap.com’s own PageSpeed Insights report from 5 November 2026.