To test WordPress speed changes, measure the same page several times before and after one change, under the same conditions. Keep cold-browser and repeat-view results separate, compare typical runs rather than personal bests, and check that the page still works. If the difference is small enough to disappear in a repeat test, call it inconclusive. The fastest run is not a voting member of the committee.
1. Decide what should get faster
Write one sentence you can test: “Optimizing the lead image should make the article’s main content appear sooner on a mobile first visit.” That gives you a page, a visit type, and an outcome. If you’re testing page caching instead, you might expect the initial HTML response to arrive sooner for logged-out visitors when the cache is warm.
Pick one primary metric and one or two checks for regressions. Largest Contentful Paint (LCP) is a useful starting point for when the main visible content appears. In the browser’s Network panel, the HTML document’s waiting time for the first byte helps diagnose slow responses, but it includes network time and isn’t a stopwatch for PHP. If you’re delaying scripts, also try the first menu tap or search interaction; a better load score doesn’t tell you whether those controls respond well.

Test the exact URL where you expect the benefit and one other page type that could break. A homepage and a product page can load different scripts and use different cache rules. Use staging for changes that might disrupt visitors, but compare staging before with staging after. A staging site behind a password or without the production CDN can help you catch breakage without telling you how fast production will be.
2. Match the test conditions before you compare
- Pick one measurement setup. For a repeatable mobile lab check, open Chrome DevTools, select Lighthouse, and use the same navigation, device, and throttling settings for every run. Keep the browser profile, machine, and connection consistent. Pause large downloads and close CPU-heavy tabs. If you use a remote runner instead, keep its location and profile fixed where the tool allows.
- Match the visitor state. Test public pages while logged out. If cookie consent changes which scripts load, choose the same consent state on both sides. For a checkout or account test, use a separate scenario with the same account or cart state; don’t mix those timings into the public-page results.
- Define what “cold” means. A fresh browser session can still get an HTML page from a warm host or CDN cache. For a first-visit comparison on a warm site, prime the page URL, then start each measured run with fresh browser state. For repeat visits, load the page once in each configuration and measure the next navigation in the same session, with browser caching enabled.
- Verify the server-side cache separately. In DevTools, open Network, select the main document, and inspect Headers. Look for the cache-status information documented by your host, CDN, or plugin. A CDN hit doesn’t prove the origin cache hit, and some setups don’t expose either state. Note what you can verify rather than guessing from the timing.
Changing a WordPress performance setting may purge cached pages. If your goal is normal warm-cache behavior, let any rebuild finish and warm the test URL again before recording the “after” runs. If your goal is the first request after a purge, test that separately in a controlled environment. There’s no need to flush the entire live cache just to get a clean-looking number.
3. Run a baseline, change one thing, then verify
- Record five baseline runs. Keep the URL, visitor state, cache scenario, device profile, primary metric, and individual timings. Save a report or trace if the tool offers one. Five runs are a practical starting point, not a statistical guarantee.
- Change one setting or asset. For example, optimize the lead image without also turning on script delay. Record the old setting or keep the original asset so you can roll back. Verify that the changed page or asset is actually being served before timing it.
- Record five more runs under the same conditions. Sort the results and compare the middle value, or median, as well as the spread. In an illustrative test, a median LCP of 2.5 seconds before and 2.4 seconds after isn’t much evidence if both batches wander between 2.2 and 2.9 seconds.
- Reverse the change if it’s safe to do so. On staging, run the original configuration again. If the metric improves after the change and moves back toward baseline after rollback, you have stronger evidence that the tweak helped. If both configurations improve over time, look for warming caches or changing test conditions.
Before you keep the change, try the affected controls on a real phone. Open the navigation, submit a test form on staging, or add and remove a product from a test cart, depending on the site. Check that the right content appears and that nothing jumps just as you tap. A performance score won’t tell you that the menu button has become decorative.
4. Troubleshoot results that don’t add up
- Only the second load is fast. Compare the first and second requests in Network. Check whether the browser reused assets or whether the document’s cache status changed. Then repeat the same first-visit and repeat-visit scenarios on both configurations.
- The HTML arrives faster, but LCP barely moves. Look at the LCP element in a performance trace. If it’s the hero image, inspect when its request starts and finishes. If the download finishes early but the element still appears late, look at rendering and main-thread work rather than tuning the server again.
- The score jumps even though the page looks the same. Compare individual metrics, then look for changes in requests or main-thread work between runs. A consent banner or third-party widget can behave differently from one visit to the next. Keep the consent choice fixed and repeat noisy batches instead of discarding inconvenient runs.
- The “after” run still serves the old asset. Inspect the requested URL and response in Network. Check whether WordPress, the optimization plugin, or the CDN is still serving an older copy. Use the relevant targeted purge or rebuild if supported, then reestablish the intended cache state before measuring again.
After deployment, use real-user data as a follow-up, not an immediate verdict. If PageSpeed Insights shows field data, check whether it describes the URL or the whole origin. Its rolling 28-day window blends visits from before and after the change until enough time passes. Keep the test notes with the deployment: what changed, which visits got faster, what still worked, and what stayed inconclusive. That’s the baseline for your next experiment.