Step 1: measure before you change anything
Speed work without a baseline is guessing. Pick three pages that matter (the home page, a typical inner page, and the checkout or contact page) and record for each, on mobile:
- Field data, what real visitors got over the last 28 days: Largest Contentful Paint, Interaction to Next Paint and Cumulative Layout Shift, plus the time to first byte. PageSpeed Insights shows it at the top when the site has enough traffic.
- Lab data, one simulated load: the score, LCP, total blocking time and page weight. Run it three times and note the middle result, because it varies.
Google’s targets for real visitors are an LCP of 2.5 seconds or less, an INP of 200 milliseconds or less and a CLS of 0.1 or less, for at least three in four page visits (web.dev on Web Vitals). Write the numbers down. You will compare every change against them.
Step 2: fix the server reply first
If the server takes a second and a half to send the first byte, nothing on the page can paint before that. Check it:
curl -s -o /dev/null -w "first byte: %{time_starttransfer}s\n" https://example.com/
Run it a few times. Google counts a first byte of 0.8 seconds or less as good, and a page served from a cache should come in well under that. If it is slow:
- Make sure a page cache answers. Look for a cache header in the reply (
curl -sI https://example.com/and look forx-cache,cf-cache-status,ageor your host’s header). Use the host’s cache if it has one; otherwise a caching plugin. - Find what stops pages being cached. A plugin that sets a cookie on every page, or a
Cache-Control: no-cacheheader, makes a page cache skip the page. Ad clicks with tracking parameters in the address often miss the cache too. - Add an object cache (Redis or Memcached, where the host offers one) for pages that cannot be cached: carts, logged-in users, wp-admin.
- Run a current PHP version. Newer PHP versions run WordPress faster, and old ones stop getting security fixes.
- Shrink autoloaded options. WordPress loads every autoloaded option on every request. Check the total:
wp option list --autoload=on --format=total_bytes
Since WordPress 6.6, Site Health warns when that total is large. Leftovers from old plugins are the usual cause.
If the reply is slow even when the cache answers, the hosting is the bottleneck, and no plugin fixes that.
Step 3: images
Images are often most of a page’s weight.
- Serve the right size. WordPress makes several sizes of each upload and lists them in
srcset, so the browser picks one. Themes and page builders that output the full-size file skip that. - Use WebP or AVIF. WordPress accepts WebP uploads (since 5.8) and AVIF (since 6.5); a plugin or the host can serve WebP copies of existing JPEGs and PNGs.
- Lazy-load below the fold, never the hero. WordPress adds
loading="lazy"to images and leaves out the first ones it expects on screen; since 6.3 it also gives the likely main imagefetchpriority="high". Lazy-load plugins and page builders sometimes undo that and lazy-load the hero, which slows LCP. - Watch sliders and background images. A hero drawn by a slider script or set as a CSS background is found late by the browser.
Step 4: fonts
- Use fewer families and weights. Each weight is a file.
- Host Google Fonts on the site instead of loading them from Google.
- Set
font-display: swapso text shows in a fallback font while the web font loads, and preload the one font the first screen uses.
Step 5: scripts
JavaScript is often why a page feels slow to respond, and often why a speed change breaks something.
- Remove what nobody uses: old tracking pixels, chat widgets no one answers, plugin scripts loaded on pages that do not use them.
- Defer scripts that do not need to run before the page shows. WordPress 6.3 added
deferandasyncloading strategies for scripts that plugins and themes register. - Delay third-party scripts (analytics, pixels, chat) until the visitor first scrolls, taps or types. Delaying every script, the site’s own included, gives the biggest gain and breaks the most: menus, sliders and sticky headers that wait for a script stop working until the first interaction.
Step 6: CSS
- Critical CSS: inline the styles the first screen needs and load the rest without blocking the page. Pages show sooner; get it wrong and the layout jumps as the rest arrives.
- Remove unused CSS: page builders ship large stylesheets. Removing what a page does not use saves a lot and is risky: styles used only on hover, on mobile or after a click can be removed by mistake.
Step 7: the rest
- Clean up the database (old revisions, expired transients, spam comments).
- Run WP-Cron from a real server cron so visitors’ requests do not start scheduled tasks.
- Use a CDN for visitors far from the server.
- Replace plugins that do the same job twice (two SEO plugins, two form plugins).
How to test a change so it does not break the site
Make one change at a time, on a staging copy or a preview if you can, and check:
- The header menu, including dropdowns on hover, and the mobile menu.
- Sliders, tabs, accordions and popups.
- Forms: submit one and confirm it arrives.
- Cart and checkout on a shop, as a logged-out visitor.
- The browser console (DevTools) for new JavaScript errors.
- Screenshots before and after, desktop and phone.
- Three lab runs, compared with your baseline.
Keep a note of what you changed and when. Then watch the field data for the next four weeks: real visitors are the verdict.
What can go wrong
- Menus and sliders dead until the first tap: a script-delay setting. Exclude the scripts they need or turn the setting off.
- Missing styles on some pages or on mobile: unused-CSS removal or combined stylesheets.
- Logged-in content or someone else’s cart shown to visitors: a page cache keeping pages it should not. Exclude cart, checkout, account and logged-in visits.
- A slower LCP after “optimizing” images: the hero got lazy-loaded.
- Changes that do not show: two caches (a plugin and the host’s), or a CDN still serving old pages. Purge all of them.
How to explain speed to the client
Lead with what visitors experience, not the score. For example: “On phones, the home page now shows its main content in 2.1 seconds for three in four visitors, down from 4.8 seconds in September.” Say what you changed in one line each, and what you tried and turned down. Explain that the PageSpeed score moves from run to run, so you report real-visitor numbers. Our WordPress speed optimization guide has more on what to promise and what to measure.
How Keptstone handles it
Keptstone measures Core Web Vitals from real visitors with a small script on a sample of page views (no cookies, no personal data) and runs Google’s PageSpeed lab test weekly; both show on each site’s Speed tab and in the monthly report. That measurement is in the Care plan, $2 a site a month.
The speed optimizer, on Care + Protect + Speed at $4 a site a month, has 29 settings for images, fonts, scripts, caching and the database. Each one is tried on a private preview of the site that visitors never see, and kept only if the pages look the same, menus and sliders still work, no new JavaScript errors appear and Google’s lab test says the page is faster. A setting that fails is turned down with the reason; a kept one is then watched on real visitors. It is the same before-and-after idea Keptstone uses for visual checks on updates.
Questions
What slows down a WordPress site the most?
On most sites it is one of three things: pages built from scratch on every visit because no page cache answers, large images (often the hero image or a slider), and too much JavaScript from plugins, page builders and third-party tags. Measure to see which it is before changing anything.
Do I need a caching plugin?
You need a page cache, not necessarily a plugin. Many hosts run one at the server level (Varnish, Nginx or LiteSpeed caching). Add a plugin only if the host has none, and do not run two page caches on top of each other.
Will fewer plugins make WordPress faster?
Not by count alone. One heavy plugin that loads scripts on every page costs more than ten small ones that do nothing on the front end. Look at what each plugin loads on the pages visitors see and remove the ones that do work nobody needs.
Why is my PageSpeed score different every time?
The lab test loads the page once on a simulated slow phone, and network and server timing vary from run to run. Run it three times and use the middle result, and judge real progress on field data from real visitors.