At a glance
| Client | Plumb Web Strategy, a custom web and app studio that works with clients across the US, often through agency partners |
| Sites under management | About 100 sites across a dozen servers |
| Stack | DigitalOcean, SpinupWP, Cloudflare, Diffy CLI, Slack |
| Before Diffy | 8 hours per update cycle, run quarterly |
| With Diffy | 45 minutes per update cycle, run monthly |
| Issues caught | 5 semi-major visual regressions caught before clients noticed |
The challenge
Plumb Web Strategy builds custom WordPress sites for clients across the US, often working through agency partners, and hosts most of the sites it builds. Every hosted site gets maintenance automatically, so all of them stay up to date and secure.
Updates already ran from a script, but checking the results was still manual. After each run, the team clicked through several pages on every site to make sure nothing looked off. Across about 100 sites, that took around 8 hours, so the team could only afford a full update cycle once a quarter.
Even with careful checks, small things got missed. Sites the agency hadn’t built were the hardest: if a page didn’t look obviously broken, the team had no way of knowing it had changed.
Why Diffy
The team researched several visual regression tools and chose Diffy for its features and pricing model. A command-line interface was the deciding factor, because the checks had to plug into the update script they already had.
The stack
Each layer of the setup handles one job:
- DigitalOcean hosts the servers.
- SpinupWP manages the servers through DigitalOcean’s API, covering security settings and server updates.
- Cloudflare sits in front of most client sites, adding free security and performance features.
- Diffy compares each site before and after updates.
- Slack alerts the team when Diffy finds a change.
The workflow
Updates run on two schedules. Vulnerable plugins and WordPress core are patched every night. Once a month, a full update covers WordPress core, plugins and themes, with Diffy built in.
The monthly update is a Bash script. It runs on all servers at once, then works through the sites on each server one at a time. For each site, it:
- Turns off Cloudflare’s Bot Fight Mode through the Cloudflare API, then pauses until the change takes effect.
- Takes a “before” set of screenshots with the Diffy CLI.
- Updates WordPress core, plugins and themes.
- Clears the cache.
- Takes an “after” set of screenshots and asks Diffy to compare the two sets.
- Posts a Slack alert to the server’s channel if anything changed.
- Turns Bot Fight Mode back on.
The Diffy part of the script comes down to four commands:
beforeUpdatesScreenshot=$(diffy screenshot:create ${diffyID} prod --wait)
# ... run updates ...
afterUpdatesScreenshot=$(diffy screenshot:create ${diffyID} prod --wait)
diffID=$(diffy diff:create ${diffyID} ${beforeUpdatesScreenshot} ${afterUpdatesScreenshot} --name="Plumb Updates Compare" --wait)
percentChange=$(diffy diff:get-changes-percent ${diffID})
# If percentChange > 0, send a Slack notification
To balance coverage against cost, the team screenshots 3 pages per site: the pages with the most blocks, any page with a unique layout, and one page with a form.
Reviewing the results
The whole run takes about 45 minutes, and the team reviews as it goes. While the script runs, they look at the Slack alerts and test critical features that a visual comparison can’t check. The goal is to finish reviewing at about the same time the script finishes.
Each month, Diffy flags about 5 to 10 sites. Most are false positives, such as an overlapping element or an offset of a pixel or two. With practice, the team can spot those at a glance and move on, or confirm them with a quick look at the site.
When a change is real, it’s usually caused by a single plugin, so the team rolls that plugin back by hand. They considered automatic full-site rollbacks through SpinupWP. For sites this stable, fixing the one plugin right away turned out to be simpler.
Results
- 8 hours down to 45 minutes. Visual checks now happen while the script runs, not after it.
- Quarterly to monthly. Thanks to the time saved, the agency now runs full updates three times as often. That has become a strong selling point for clients.
- 5 semi-major issues caught. The most common culprit is the forms plugin. In one update, it changed its submit button from an
<input>to a<button>, which broke the agency’s CSS. A person clicking through pages could easily have missed it. - A visual record. Clients sometimes ask when content was added to a page. If that page is one of the screenshotted pages, Diffy’s history answers the question.
Lessons learned: Diffy behind Cloudflare
Cloudflare’s bot protection can block screenshot services. Here is how Plumb keeps Diffy working:
- Bot Fight Mode: Cloudflare’s free plan can’t allowlist IP addresses for this feature, so the script turns it off through the API during each site’s update and turns it back on afterwards.
- Custom rule: Many client sites require visitors from outside the US to pass a Turnstile challenge. Diffy’s dedicated IP address is allowlisted in that rule, so it has never caused a problem.
- Precursor and managed rules: In a recent cycle, some screenshots were blocked. The team is checking whether Precursor or Cloudflare’s managed rules are responsible. They plan to allowlist Diffy’s dedicated IP address more broadly, or turn Precursor off for the roughly 3 minutes each site takes to update.
Tip: Diffy’s dedicated IP address makes allowlisting simple wherever Cloudflare allows it. Where it doesn’t, toggle the setting through the API for the update window.