What is visual regression testing?
Visual regression testing (VRT) is a way to catch changes you did not mean to make. You photograph a page in a known good state, make the change, photograph it again, and let software compare the two pictures. A person then looks only at what differs.
Software teams use it in their build pipelines: tools such as Percy, Chromatic, BackstopJS and Playwright’s screenshot assertions compare components or pages on every pull request. On a WordPress site the “change” is usually not your code. It is a plugin update, a theme update or a new WordPress release written by someone else, landing on a site with a page builder, a dozen plugins and content the client edits every week.
Why page checks alone miss broken WordPress pages
A plugin update can leave every page answering 200 OK and still break how it looks:
- a stylesheet the theme depended on was renamed, so the layout collapses;
- a page builder widget stops rendering and leaves an empty band;
- the header menu disappears because a menu plugin changed its markup;
- a web font stops loading and the brand type falls back to Times.
Keptstone’s page checks catch the hard failures: errors, pages cut short, pages that lost most of their content (safe updates). The pictures catch what still answers but looks wrong.
How Keptstone takes the pictures
On every safe update of a site its browser can reach, Keptstone takes screenshots before the update and after it, with the same Chromium that prints its client reports:
| Page | Screen |
|---|---|
| Home page | Desktop, 1366 by 900 |
| Home page | Phone, 390 by 844 |
| One more of the site’s check pages (contact, shop, checkout) | Desktop |
The browser asks for each page past the page cache, as a regular desktop or phone browser that also names Keptstone. That matters: some security plugins answer a headless browser’s own identity with a block page that returns 200, which would compare as “looks the same” every time.
Pictures taken right after an update stand in for the next update’s “before” for 15 minutes, so a batch of updates on one site takes one set of pictures per update, not two.
How the pictures are compared
Pixel-by-pixel comparison flags everything: JPEG noise, anti-aliased text, a heading that settled one pixel lower. Keptstone’s comparison is built to ignore that and keep what a person would notice:
- Both pictures are scaled to 480 pixels wide and cut into blocks of 8 by 8 pixels.
- A block counts as changed when more than a fifth of its pixels clearly changed color.
- It must still differ with the “after” picture nudged up to 2 pixels in any direction, so text a pixel or two apart does not count.
- Parts that move on their own are learned. Once a day per page and device, the “before” picture is taken twice, three seconds apart. Blocks that differ between those two (sliders, animations, rotating quotes) are masked and shown blue in the difference picture, with the share left out.
- The share of changed blocks among the rest gives the verdict:
| Changed blocks | Verdict |
|---|---|
| Under 2% | Looks the same |
| 2% to under 15% | Small visual changes |
| 15% or more | Looks different |
What the agency and the client see
Your agency
The verdict sits on the update in the site’s update log. Open it and you get the before, after and difference pictures for every page and device, with changed blocks in red and masked blocks in blue. Roll back is on the same entry for 13 days, as long as no later update of that plugin has run.
When an automatic update looks different, your owners and admins get an email and a Slack message: “looks different after updating”, with the share per page and a pointer to the pictures and Roll back. Updates you start by hand show the verdict as they finish.
Pictures are kept for 30 days on Keptstone’s private storage and shown only to your agency.
Your client
Nothing changes for the client unless you decide it should. Pictures are not in the monthly report today. If a check shows a real problem, you roll back or fix it before they notice, and the report lists only the updates that stayed.
What to check when a verdict says “Looks different”
- Open the difference picture first. Red blocks show where to look.
- Compare the phone picture. Many regressions only show on small screens, where menus collapse and columns stack.
- Check the cause. Content edited by the client between the two pictures shows up too; so does a cookie banner that appeared on one and not the other.
- Decide quickly. If the layout is broken, roll back from the same entry; automatic updates then leave that version alone. If it is a planned change, nothing needs doing.
Limits
- Sites Keptstone’s browser cannot reach get no pictures: sites behind a host firewall that blocks it (SiteGround’s anti-bot, for example) and sites on test domains. Their page checks still run from the site itself (check-in mode).
- Three pictures an update at most, and each server gets at most 24 pictures an hour. Two failed pictures in an hour pause pictures on that server for six hours. Hosting firewalls treat a headless browser loading every asset as a bot, and a shared server hosting many client sites can blacklist the caller. Updates carry on without pictures while paused.
- A daily allowance on self-serve accounts: 100 pictures plus 30 per connected site. Past it, updates run without pictures until the next day.
- Pages a visitor sees only after logging in or adding to the cart are not photographed. The pictures are of pages as a new visitor sees them.
- Keptstone’s own connector updates take no pictures: they change nothing visitors see.
- A visual change never rolls back an update by itself.
The same comparison decides whether a speed setting is kept: the speed optimizer tries each setting on a private preview and keeps it only when the pages look the same.
Which plan it is in
Visual checks come with safe updates in both plans: Care at $2 a site a month and Care + Protect + Speed at $4. See pricing.
Questions
What is a VRT test?
VRT stands for visual regression testing. A VRT test takes a screenshot of a page in a known good state, takes another after a change, and compares the two so a person only has to look at what differs.
Will a slider or a rotating banner make every update look different?
Not on Keptstone. Once a day per page and device it takes the before picture twice, three seconds apart, and leaves out the blocks that changed on their own. Those blocks show blue in the difference picture.
Does a visual change roll the update back?
No. Visual differences are reported, never acted on alone, because banners and content change between updates. A page that breaks, errors or loses most of its content is rolled back automatically.
Can I see the screenshots?
Yes. The verdict on each update in the update log opens the before, after and difference pictures for every page and device. They are kept for 30 days and shown only to your agency.
Does it work on sites behind SiteGround's firewall?
No pictures can be taken there, because the host blocks Keptstone's browser. Those sites still get the page checks, run from the site's own server, which catch error pages, pages cut short and pages that lost most of their content.