Updates: why they belong on a staging site first
Operations and securityWhy updates cannot wait, what WordPress already safeguards on its own and what a routine through a staging site looks like in which nothing breaks unnoticed.
8 min read
By Timo Wessels Published
Install updates on a test environment first. There you see whether something breaks before your visitors do.
The most important points first:
- Putting them off is no solution: attacks on known holes in plugins run automatically and often begin within hours.
- Clicking “Update all” straight on the live website mostly goes fine. If it goes wrong, you do not know which of eleven updates was to blame.
- A test environment is the way between both mistakes: a copy of your website on which you try things out before it gets serious.
Why updates cannot wait
Patchstack, a WordPress security provider, counted 11,334 new vulnerabilities in the WordPress environment for 2025 in its report “State of WordPress Security in 2026”. That is 42 percent more than the year before. 91 percent of them were in plugins, 9 percent in themes, six in the WordPress core itself.
And it is fast. For the holes that are attacked on a mass scale, the median until the first mass exploitation was five hours. About half of the high-impact holes were exploited within 24 hours.
Nobody picked out your website. A program combs the web for websites with a certain plugin version. Your website is not too small to be interesting. For this program it is one line in a list.
What WordPress already does itself
WordPress takes part of the work off your hands:
| What | How | Since |
|---|---|---|
| Minor core versions (maintenance and security) | update themselves by default; WordPress strongly advises against switching that off | — |
| Plugins and themes | automatic updates can be switched on per plugin and theme; WordPress checks twice a day and sends a mail | 5.5 |
| Crash protection | on a serious error WordPress shows an error message and sends a mail with a link to recovery mode | 5.2 |
| Rollback for automatic plugin updates | after the update WordPress opens the home page; if a fatal PHP error occurs, it restores the old version | 6.6 |
PHP is the programming language WordPress runs on.
This is a safety net and not a check. The rollback detects only serious PHP errors on the home page. A form that no longer sends mail, a shifted layout or a broken checkout escape it. Large core versions, theme changes and big jumps in central plugins therefore still belong on the test environment.
What a test environment is
A second copy of your website, with the same content, the same plugins and the same settings. It is not publicly reachable, and you can try things out without anyone noticing.
Many hosts offer this with one click: create a copy, work, then discard or restore. Where not, a copy can be set up on a sub-address.
Two conditions make it usable:
- It must be current. A copy from six months ago tests a website that no longer exists. Refreshing belongs in regular maintenance and always before larger projects.
- It must be protected. A publicly reachable copy creates duplicate content. Google writes that content that should not be public must be protected with a password. Password protection at server level keeps search engines and the curious out at the same time.
The process that works
Before:
- Make a backup. WordPress.org itself advises backing up before every update. Do not rely on the nightly backup. Make a fresh one and check that it is there.
- Bring the test environment up to date.
- Read the changelogs. For a new major version of a plugin it often says what changes fundamentally. With these updates a close look is worthwhile.
On the test environment:
- Update one by one, not everything at once. With five plugins at once you do not know in case of error which one it was. WordPress.org recommends the same procedure for troubleshooting: switch off all plugins and switch them on again one by one.
- Check briefly after each step.
Checking means concretely:
- Does the home page still look right?
- Do the forms work, and does the mail really arrive?
- Click through the most important pages: home page, services, contact.
- Look in the browser console (F12) for JavaScript errors.
- Look at the mobile view.
The mail is the thing most often overlooked. A form that shows a confirmation has not yet sent a mail. Look in the mailbox, not on the screen.
Afterwards:
- Transfer the change to the live website. Depending on the set-up you restore the test environment or repeat the same steps.
- Check the same again live. The live website is not identical to the test environment: different address, different cache, real form recipients, real payment connection.
- Empty the cache. That is the store where finished pages lie ready. Otherwise you see the old state and take it for the new one.
What comes first
Not every update is equally urgent.
- Security updates go first. If an update closes a hole that is already being exploited, the risk of waiting is greater than the risk of a display error. Then you install it and check afterwards, not the other way round.
- Minor core versions run automatically anyway.
- Large core versions and major versions of central plugins, such as page builder, shop and forms, belong on the test environment.
The PHP version is easily forgotten, although everything runs on it. Each PHP version gets two years of full support and two further years of security fixes only. After that, nothing. The PHP project warns that users of an expired version may be exposed to unpatched holes. WordPress recommends PHP 8.3 or newer. The switch is usually one click at the host. Precisely for that reason it belongs on the test environment, because old plugins can break on it.
If something breaks anyway
On the test environment nothing happens. That is exactly what it is for. Find the cause, replace the plugin or go back to the old version, and carry on.
On the live website:
- Stay calm. Whoever frantically changes more things makes the search harder.
- Look in the mailbox. If WordPress reports a critical error, it sends the administrator’s address a mail with details and a link to recovery mode.
- Deactivate the plugin updated last.
- If you cannot get into the back end, rename the
pluginsfolder insidewp-contentby file access, for example toplugins-old. WordPress then no longer finds the plugins and switches them all off. Afterwards you rename it back and switch the plugins on one by one. - If that does not help: restore the backup.
- Afterwards clarify the cause before trying the same update again.
A white page is mostly a PHP error, triggered by a plugin or the theme. WordPress.org advises switching on debug mode in wp-config.php and reading the log in wp-content/debug.log. It usually says which file is affected. Switch debug mode off again afterwards.
The rhythm
Updates done “when there is time” are not done. A fixed rhythm works:
Monthly: check and install WordPress core, plugins and themes, check the PHP version, check backups, run a security scan, look at the error log, test the contact form through to the mailbox, measure load time.
Quarterly: go through the plugin list, tidy up the database, check the certificate, check dead links, refresh the test environment.
Yearly: a complete security run-through, check hosting plan and domain renewal, check privacy policy and imprint for currency, test accessibility by sampling.
The gap that care does not close
An honest addition: for 46 percent of vulnerabilities, according to Patchstack, no fix from the maker existed at the time of publication. Even someone who updates in exemplary fashion then has a hole. Updating faster does not close it, because there is nothing to update.
The usual answer is an upstream protective layer that blocks the attack pattern before the plugin itself is fixed. Security providers like Patchstack sell such rules. For a small business-card site that is often more than necessary. For a business whose website takes enquiries or orders, it is the obvious addition.
This is no argument against updates but against taking updates for the whole answer.
What you can do
- Set up a test environment if you have none. Ask your host, with many it is included. Protect it with a password.
- Stop updating directly on the live website, even if it has gone well so far.
- Leave the small core updates on and consider automatic updates for simple, well-maintained plugins, with a backup in the background.
- Set a fixed date, a fixed day in the month.
- Check the PHP version. The point most often overlooked.
- Refresh the test environment regularly. An outdated test environment tests the wrong website.
- If this is too much for you: that is exactly what maintenance contracts are for. Not because it is complicated but because it has to be regular. Regularity is what drops first beside daily business.
Sources
- Patchstack, State of WordPress Security in 2026 — 11,334 vulnerabilities in 2025, plus 42 percent, 91 percent plugins, 9 percent themes, 6 in core, 46 percent without a fix, median five hours, about half within 24 hours: patchstack.com(external site: patchstack.com)
- WordPress.org, Upgrading WordPress — backup before the update, automatic minor versions, troubleshooting by switching plugins on one by one: developer.wordpress.org(external site: developer.wordpress.org)
- WordPress.org, Plugin and themes auto-updates — since 5.5, twice a day, mail notification: wordpress.org(external site: wordpress.org)
- Make WordPress Core, Merge Proposal: Rollback Auto-Update — rollback on a fatal error by opening the home page, recovery mode since 5.2: make.wordpress.org(external site: make.wordpress.org)
- Make WordPress Core, WordPress 6.6 Field Guide — rollback for automatic plugin updates in 6.6: make.wordpress.org(external site: make.wordpress.org)
- WordPress.org, Common WordPress Errors — critical error and mail, renaming the plugins folder, debug mode and debug.log: developer.wordpress.org(external site: developer.wordpress.org)
- WordPress.org, Requirements — PHP 8.3 or newer recommended, expired versions as a security risk: wordpress.org(external site: wordpress.org)
- PHP, Supported Versions — two years of full support, two years of security fixes, warning about expired versions: php.net(external site: php.net)
- Google Search Central, Control what you share with Google — protect private content with a password: developers.google.com(external site: developers.google.com)
- WordPress.org, Hardening WordPress — keep plugins up to date: developer.wordpress.org(external site: developer.wordpress.org)