Skip to content

How I Update 13 WordPress Plugins Without Breaking a WooCommerce Shop

• By Jasper Frumau WordPress
Card listing three plugin update batches with 14 of 16 screenshots matching each, and one bug found after go-live: a stale cached stylesheet.

On November 17 we ran a plugin update round on a client’s live WooCommerce shop, hosted on a Dutch shared host: 13 plugins, WooCommerce 11.3 and the page builder, with no fatal errors on the way. What went wrong came afterward: the cookie banner buttons turned unreadable, and nothing we had tested could have caught it. This is the full round, including that miss.

Quick summary: A safe plugin update round on a live WooCommerce shop has five steps: compare what runs live against a copy, update the copy in small batches, screenshot every batch, back up the live site and pull the backup off the server, then update live in the same order and check again. On this shop the copy caught no real regressions in 12 tested updates, and we still missed one bug, a stale cache file, which shows what a copy cannot test.

What we did on a shop with no SSH

The shop runs on a shared host that only offers FTP and the WordPress dashboard. There is no command line on the server and no Git. That rules out the usual “run the update and roll back if it fails” routine, because there is no atomic rollback. So the round had to be right before it touched the live site.

The plan, in order:

  1. Compare live against the copy. We wrote a small read-only script that downloads each plugin’s header file over FTP and lists the version. It showed the live shop and our local copy were identical except for three plugins that only existed on one side.
  2. Update the copy in three batches. First ten small plugins, then WooCommerce 11.3.0 on its own (it runs database migrations), then Oxygen 4.9.8.
  3. Screenshot every batch. Eight pages, desktop and mobile, 16 images per run, compared pixel by pixel against the run before.
  4. Back up live, then pull the backup off the server. A full backup from the dashboard, six archives about 660 MB in total, downloaded and checked before anything changed.
  5. Update live in the same order, then check again. Same pages, same compare, plus a version check.

Why we update a copy first

Updating “everything” at once means that if something breaks, you do not know which of 13 plugins did it. Three batches mean a problem points at ten plugins, then at one. We also gave WooCommerce its own batch because it changes the database, and a database change is the one thing a visual check cannot undo.

The Oxygen update was not routine either. The release notes say 4.9.8 fixes Oxygen no longer detecting the WooCommerce shop page on WooCommerce 11, which stops the shop template from applying. The shop pages looked identical before and after on our copy, so the fix would have been invisible in a screenshot. We updated anyway, because this exact combination is what the shop runs.

What 16 screenshots caught, and the false alarm

After the first batch, 14 of 16 screenshots were pixel-identical. One page, a spare-part product, changed by about 5% and was 30 pixels shorter. After WooCommerce 11.3.0 it was the same two pages again.

It looked like a regression until we took two snapshots two seconds apart with no update in between. They still differed by almost 6%. The cause: WooCommerce picks related products at random on every load, so the product images change height each time. We now mask that block (.related.products) in the compare. Without that test we would have blamed WooCommerce 11.3 for a feature working as designed.

For checkout we did not rely on screenshots. A scripted walk through category, product, cart and checkout placed two test orders on the copy (order #16616 paid by bank transfer), confirmed the order email arrived in a local mail catcher, and deleted the orders. One product, the configurable one, cannot be tested like this because it is quote-style with no visible price. That one stays a manual check.

What broke after the round

Once the updates were live, a spot check on the site showed the cookie banner with unreadable button text. Nothing in 16 screenshots per batch had warned us, for two reasons:

  • The cookie plugin is active on the live shop but switched off on our copy, so no screenshot ever contained a banner.
  • The live site serves a minified stylesheet from its caching plugin. That file had been generated on October 29, during the previous round. The new plugin version changed the banner markup, so the new markup was running with the old CSS.

The fix was one click: purge the caching plugin so it rebuilds its minified files. Afterwards the stylesheet had a new cache key and a new date, and its size matched the new plugin version (97,232 bytes against 94,848 for the stale copy). The lesson for every round: purge the cache last, and check that the minified files regenerated, not only the page cache.

The same day a live test of the contact form turned up a second problem that was already there: the input text was near-white on a light background (#f0f0f0). It was in the design settings before the round, and it looked identical before and after on every screenshot, which is why the compare never flagged it. A pixel compare tells you what changed, not what is wrong.

What we did not test

  • The caching plugin update. Its licence only works on the live domain, so version 3.24.1 went live without a test copy. We checked it afterward, not before.
  • The product add-ons update. The live dashboard offered an update our copy could not see. It drives the configurable product, so we deliberately left it for a separate round.
  • A live order. Two test orders on the copy covered the order path. We did not place one on the live shop.
  • The live pixel compare. Live against the copy differed by 0.7 to 10% on 14 of 16 shots. The copy’s data came from August and the live site had changed since, so we read that as content drift. We saw no broken layouts, but we did not prove every difference.

What to do on your own shop

  1. Do not update on the live site first. If you have no copy, make one before you start (a staging site or a local copy).
  2. Update in batches and keep WooCommerce alone in its batch.
  3. Take a backup of the live site and copy it somewhere that is not the same server, before the first live update.
  4. Place a test order on the copy and check that the email arrives (our checkout test checklist lists what to click).
  5. After going live, open the site as a visitor: cookie banner, contact form, checkout. Then purge the cache.
  6. Write down what you could not test. That list is where the next problem comes from.
For the developers: the tooling

The copy runs on a local PHP 8.4 sandbox with the same stack as the live site. Screenshots and compare come from wp-ops update-snapshot and wp-ops update-compare (our own open-source CLI, see wp-ops; its limit here: the checkout walk fails on quote-style products and needs a normal shop grid, so we filed an issue for the fallback). The test orders ran through wp-ops checkout-check --place-order with a local MailHog as the email check. The version comparison is a 30-line shell script over TLS FTP that reads each plugin’s entry-file header. Oxygen’s licence server refuses the local domain, so we installed the 4.9.8 vendor zip by hand and regenerated its CSS cache through a script that lists the post types explicitly, because asking for “any” skips templates.

Need a WooCommerce Developer for Your Store?

We build and optimize WooCommerce stores for SMEs — from custom checkout flows and payment integrations to performance tuning and ongoing maintenance. Fixed-price quotes available.

  • Custom checkout and cart optimization
  • Payment gateway integration (Stripe, Mollie, PayPal)
  • WooCommerce performance and speed optimization
  • Ongoing store maintenance and support

Leave a Reply

Your email address will not be published.