How to fix a slow WordPress site: the order that actually works
Some links below earn me a commission. That never changes what I recommend. My disclosure.
Most slow WordPress sites need the same handful of fixes. The trick is the order: start with the ones that remove the most waiting for the least effort, and only move hosts if the numbers still say so.
Step 0: measure before you touch anything
Open PageSpeed Insights, enter your home page and your most visited page, and select Mobile. Write down three numbers from each:
| Metric | What it measures | Good |
|---|---|---|
| LCP (Largest Contentful Paint) | When the main content appears | 2.5 s or less |
| INP (Interaction to Next Paint) | How fast the page reacts to taps and clicks | 200 ms or less |
| CLS (Cumulative Layout Shift) | How much things jump around while loading | 0.1 or less |
If the top of the report shows “real user” data, trust it over the lab score below it. The lab score is one simulated visit; the real-user data is what Google uses.
Keep this note. After each step, run the test again and write the new numbers next to the old ones. If a step changes nothing, undo it.
Step 1: turn on a page cache
Without a page cache, WordPress builds every page from scratch for every visitor: PHP runs, the database is queried, the theme assembles the HTML. A page cache saves the finished page and serves it directly. On a typical small site, this is the single biggest improvement you can make.
Where the cache comes from depends on your server:
- Your host may already provide one. Many hosts run a server-level cache. On LiteSpeed servers, the free LiteSpeed Cache plugin connects to it. Check your host’s documentation before installing anything.
- Otherwise, use a caching plugin. WP Rocket is the one most people reach for because it works with sensible defaults out of the box; it’s a paid plugin with no free version. NitroPack takes a different approach: it’s a hosted service that optimizes and serves your pages from its own infrastructure. We compare the two on the same site in WP Rocket vs NitroPack.
Never run two page caches at once. Two caching plugins, or a plugin on top of a host cache that does the same job, cause stale pages and odd bugs.
To check the cache works, open your site in a private window (caches skip logged-in users) and look at the response headers, or run the curl test from Is your host slowing your site down?.
Step 2: fix your images
Images are usually the heaviest part of a page, and the LCP element is often an image.
- Upload images at the size they’re shown. A 4000-pixel photo displayed at 800 pixels wastes most of its weight. Resize before uploading, or let a plugin do it.
- Serve modern formats. WebP and AVIF are much smaller than JPEG at the same quality. An image plugin such as Imagify (from the makers of WP Rocket) converts existing images in bulk.
- Don’t lazy-load the main image. WordPress lazy-loads images by default, which is good for images further down the page, but the hero image at the top must load immediately. Recent WordPress versions try to detect it; check in PageSpeed Insights that your LCP image isn’t flagged as “lazily loaded”.
- Give every image a width and height. Without them the browser doesn’t know how much space to reserve, and the text jumps when the image arrives. That’s your CLS.
Step 3: cut the JavaScript you don’t need
JavaScript blocks the page from responding, which is what INP measures.
- List your plugins and remove the ones you don’t use. Deactivating isn’t enough to tidy up, but it’s enough to test: deactivate one, measure, decide.
- Find the heavy ones. The free Query Monitor plugin shows which plugins slow down each page and which database queries take the longest.
- Delay third-party scripts. Chat widgets, heatmaps, ad scripts and social embeds don’t need to load before the visitor can read. Most caching plugins can delay them until the first interaction.
- Be honest about the page builder. Some builders and multipurpose themes load a lot of code on every page. If everything else is done and INP is still poor, that’s often why.
Step 4: tidy up fonts and CSS
- Use two font families at most, and only the weights you need. Each weight is a separate file.
- Host fonts on your own domain instead of loading them from a third-party service. It saves a connection and is simpler for privacy.
- Use
font-display: swapso text appears in a fallback font instead of staying invisible. - Remove unused CSS if your caching plugin offers it, and test the pages afterwards: this feature occasionally breaks a layout.
Step 5: add a CDN for static files
A content delivery network keeps copies of your images, CSS and scripts in data centers around the world, so visitors download them from somewhere close. If your visitors are spread across countries, it’s a cheap, large gain. Many hosts include one, and Cloudflare’s free plan covers the basics.
Step 6: clean the database
Years of post revisions, expired temporary data (transients) and leftovers from deleted plugins slow down database queries. Most caching plugins include a cleanup tool. Take a backup first, then clean revisions, spam comments and expired transients.
Step 7: only now, look at hosting
If you’ve done steps 1 to 6 and your server response time is still above 0.8 seconds, the host is the bottleneck. Run the four tests in Is your host slowing your site down? to confirm, then see the hosts we measured on the same WordPress site in Best WordPress hosting for small business sites.
Summary
| Order | Fix | Effort | Typical effect |
|---|---|---|---|
| 1 | Page cache | Low | Faster server response on every page |
| 2 | Images | Low to medium | Lower LCP, less layout shift |
| 3 | Fewer scripts | Medium | Better INP |
| 4 | Fonts and CSS | Low | Text appears sooner |
| 5 | CDN | Low | Faster for distant visitors |
| 6 | Database | Low | Faster uncached pages and admin |
| 7 | Hosting | High | Fixes what’s left on the server side |