How to test speed changes safely

A speed fix can break a form, a checkout or the layout. How to test on a copy, change one thing at a time, measure fairly, check real visitors, and roll back.

BeginnerHow-to6 min readUpdated October 30, 2026

In this guide
  1. The two risks
  2. Step 1: have a way back
  3. Step 2: write down a baseline
  4. Step 3: change one thing at a time
  5. Step 4: check that nothing broke
  6. Step 5: measure again, fairly
  7. Step 6: roll out, and watch
  8. Step 7: decide and record
  9. Mistakes to avoid
  10. Check your own page
  11. Sources

The two risks

Breaking something. Many speed changes work by doing less, later or differently, and each can have side effects:

ChangeWhat can break
Delaying or combining scriptsPayment buttons, forms, menus and tracking that need a script at the right moment
Adding a page cachePersonal pages shown to the wrong person, stale prices or stock
Changing image formats or sizesBlurred or missing images, a changed main image
Switching a CDN or its rulesOld versions of files and pages served for a while
Removing a plugin or scriptA feature or report that someone relied on
Upgrading PHPPlugins and themes that do not work with the newer version

The WordPress Handbook is direct about the last one. Newer versions of PHP bring performance and security improvements, but sites with older plugins and themes may not be compatible, so it advises testing for compatibility before upgrading and, if you have a staging environment, using it to resolve problems first.

Fooling yourself. Lighthouse's own documentation says that scores change because of variability even if the code has not, so you should run it several times and be wary of variability before concluding that a change made a difference. A page with an A/B test, or ads that change, is not the same page on every run. A cached test is faster than an uncached one. A busy afternoon is not a quiet morning.

Step 1: have a way back

Before you change anything:

Step 2: write down a baseline

You cannot tell whether a change helped without a before. Record:

WhatExample
PagesHome page, one landing page, one content page, one form or cart page
Tool and settingsThe same tool, device profile, location and cache state each time
RunsAt least five, and the median
Lab numbersLargest Contentful Paint, Total Blocking Time, Cumulative Layout Shift, page weight, server response time
Field numbersThe Chrome UX Report values for the page or the site, with the date
Date and versionWhen you measured, and which versions of the theme and plugins were live

The median of several runs is more reliable than one. See why scores change. Field data moves slowly, so write its date down. See lab and field data.

Step 3: change one thing at a time

If you change five things and the page gets faster, you do not know which one helped. If it gets slower or breaks, you do not know which one to undo. Change one thing, test, and decide. A few tiny changes of the same kind, such as compressing ten images, can count as one.

Pick the change by size of expected gain and risk. What to fix first sets out an order. The safe, large wins, such as a page cache that works or a correctly sized main image, come before the risky, small ones.

Step 4: check that nothing broke

Run through what your visitors do, and what the business needs:

  1. Look at the main pages on a phone and a computer: the layout, the images, the menu.
  2. Use every form with a real test entry. Check that the message arrives.
  3. Search, filter and sort, if you have them.
  4. Sign in and out, and check what a logged-in visitor sees.
  5. For a store, make a test purchase from the product page to the confirmation, with a payment method in test mode. See WooCommerce checkout speed.
  6. Check that tracking still fires. In the Network panel, look for the requests your analytics tags should make. See the Network panel.
  7. Look at the console in DevTools for new errors.
  8. Try a second browser and a real phone if you can. See testing on real phones.
  9. Test with the cache cold and warm. The first visit after a change may differ from later ones.

A rule of thumb for what to test after which change:

After changingTest first
Scripts (delay, defer, combine, remove)Forms, menus, payment, cookie banner, tracking
Caching or a CDNLogged-in pages, the cart, an updated page, a purchase
ImagesThe main image on each page type, galleries, thumbnails
FontsText on a slow connection, and layout shifts
Plugins or the themeEvery page type and every form
PHP or hostingThe admin, every plugin's main function, scheduled tasks

Step 5: measure again, fairly

Use the same pages, the same tool, the same settings and the same number of runs. Run it several times and compare medians. Compare with your baseline, not with memory.

Some traps:

If the lab numbers improved and nothing broke, you have a good result. If they did not change, the fix may not have reached the problem, or the problem was elsewhere. Go back to the report.

Step 6: roll out, and watch

Step 7: decide and record

After a few days, keep the change, undo it, or adjust it. Then write one line in a change log: the date, what changed, who did it, and the before and after numbers. Six months later, that log answers "why did we do that?" and "when did it get slow?".

Mistakes to avoid

Check your own page

Pick the next fix from the free audit's list. Before you change anything, test the page five times and write down the median Largest Contentful Paint, Total Blocking Time and page weight. Then follow the steps above.

Sources

Start here

Free website audit

Live Google data for any public page: mobile and desktop.

Mobile + desktop · Lighthouse lab test · Real-user Chrome data when Google has it

Rather have this done for you? Core Web Vitals · Book a call

Related guides

All guides →