To update WordPress safely, make a fresh backup, keep a copy of each plugin you’re about to change, and update one thing at a time, checking the site after each. Let each update’s required WordPress version decide the order. If one breaks something, put the old version back from its zip.
We tested each step on our own test site: plugin updates and rollbacks in the dashboard and with WP-CLI, and WordPress itself from 7.1.3 to 7.1.4.
How to update WordPress safely: back up first
Before you update WordPress, make a backup you can restore. The WordPress handbook starts with it, “Before you get started, it’s a good idea to back up your website”, and its manual upgrade steps add: “Verify the backups you created are there and usable. This is essential.”
On our test site, a full backup of the database and files took under 8 seconds. Our backup guide has the commands and a quick completeness check.
Then keep a copy of each plugin you’re about to update, in its current version. A site backup rolls everything back; a copy of one plugin lets you undo just that plugin. Pick whichever route you have:
- Without SSH: in your hosting panel’s file manager, open
wp-content/plugins, compress the plugin’s folder into a zip and download it, or download the folder over SFTP and zip it on your computer. We didn’t test a hosting panel. - With SSH: run this, changing the plugin folder (
contact-form-7here) and its current version (6.2.5):
mkdir -p ~/backups/manual &&
cd /home/youruser/public_html/wp-content/plugins &&
zip -qr ~/backups/manual/contact-form-7-6.2.5.zip contact-form-7
In our test, that zip of the installed 6.2.5 later put 6.2.5 back after we’d switched to another version. If zip isn’t installed on your server, tar -czf works for a backup, but the dashboard upload needs a .zip.
Which to update first: core, plugins or themes
Let each update’s required WordPress version decide whether core, plugins or themes go first. A plugin can state the lowest WordPress version it needs. When we uploaded a different plugin version, WordPress listed that “Required WordPress version” for the installed and the uploaded version side by side; both needed 7.1 in our case.
- If a plugin update needs a newer WordPress than you have, update WordPress first.
- Otherwise, update the plugins one at a time, then the themes, then WordPress itself, so each step changes as little as possible.
Guides disagree here, which is why a rule helps. BlogVault’s update guide says “You should update your plugins first, since they’re almost always compatible with the older versions of WordPress.” ThemeIsle’s guide lists plugins and themes before WordPress itself. WordPress’s own Learn tutorial on managing updates updates WordPress first, then plugins, then themes.
The required version also shows on each plugin’s page in the WordPress.org directory. We couldn’t open WordPress.org from our test server, so check the label on the live page.
Update one thing at a time and check
Updating one thing at a time tells you exactly what broke, if anything does. The same goes for each kind of WordPress update: WordPress core, plugins and themes. In wp-admin, updates wait under Dashboard > Updates and on the Plugins and Themes screens, each with its own update link; our test server couldn’t reach WordPress.org, so we didn’t test those buttons. The handbook’s steps for upgrading across several major versions put it this way: “do it one by one and check all the warnings and errors.”
After each update, check three things before moving to the next:
- The front end: open the homepage and a post in a private window.
- What the plugin does: send a test message through the form it powers, or try whatever job it does for visitors.
- The dashboard: the plugin is still listed as active, and no error notice appears at the top.
On our test site, a plugin update took about a second, and WordPress’s own update from 7.1.3 to 7.1.4 took 3.6 seconds. During the core update, WordPress created a .maintenance file and removed it when done; while it’s there, visitors get a maintenance message. If that message ever stays, our guide to a site stuck in maintenance mode explains why.
Themes need one extra precaution: an update replaces the theme’s folder, so changes made directly to its files are lost. Keep your changes in a child theme, and zip the theme folder before updating, the same way as a plugin. We didn’t test theme updates.
For larger changes, such as a new major WordPress version or a plugin’s major release, try it on a staging site first.
Roll back one plugin from its zip
To roll back a plugin, install the copy you saved over the newer version. In wp-admin, go to Plugins > Add Plugin > Upload Plugin, choose the saved zip and click Install Now. WordPress spots that the plugin is already installed, shows both versions and warns you that the upload is older:

Click Replace current with uploaded. Going back from 6.2.5 to 6.2.4 ended with “Plugin downgraded successfully.” The same screen works forwards, too: uploading a newer zip gave “Plugin updated successfully.”
With WP-CLI, one command does the same, using your saved zip:
wp plugin install ~/backups/manual/contact-form-7-6.2.5.zip --force
On our test site, a rollback this way took about a second, and the plugin was active afterwards. If you didn’t save a zip, plugins in the WordPress.org directory offer older versions under “Previous versions” on the plugin’s Advanced View page; we couldn’t check that page from our test server.
Check the zip’s top folder before uploading one a developer sends you. It has to match the installed plugin’s folder name. We uploaded a zip whose folder was contact-form-7-main, and WordPress installed it as a second, inactive copy beside the live plugin instead of replacing it. List the zip with unzip -l file.zip | head -3 and compare it with wp plugin list --fields=name, or look at the folder names in your file manager.
A plugin rollback only swaps the plugin’s files. If the newer version changed its data in the database, the older one may not read it. Before a plugin’s major update, read its changelog for database changes, and restore the full backup when a rollback doesn’t fix things; our restore guide walks through it.
Updating with WP-CLI, and the file-owner trap
WP-CLI, WordPress’s command-line tool, updates from the server instead of the dashboard. On a server that can reach WordPress.org, these are the normal commands; we couldn’t run them, because our test server can’t reach WordPress.org:
wp plugin update contact-form-7
wp core update
wp core update-db
wp core update-db runs any database changes the new version needs; it took 0.31 seconds for us. On a multisite network, use wp core update-db --network, which we didn’t test.
We updated from zip files instead, and found a trap. wp core update with a zip installs whatever version the zip holds. Given an older 7.1.3 zip on our 7.1.4 site, it downgraded WordPress and still printed “Success: WordPress updated successfully”.
If you ever use a zip, take it only from WordPress.org’s release archive and check the version number in its name is newer than wp core version.
Run WP-CLI as the user that owns your WordPress files, the one PHP runs as. We learned why the hard way. After a WP-CLI install as root, the plugin’s files belonged to root, while WordPress itself ran as the web server’s user (www-data on our server). The next update from the dashboard stopped with a message saying the update “cannot be installed because some files could not be copied”, which WordPress put down to “inconsistent file permissions”.
Nothing was lost: the old version stayed in place and the site kept working. Giving the files back to the web server’s user fixed it, and the same upload went through with “Plugin updated successfully”. On your own server, these are the commands; change www-data to the owner ls -l shows for your other plugin folders:
ls -l /home/youruser/public_html/wp-content/plugins
sudo chown -R www-data:www-data /home/youruser/public_html/wp-content/plugins/contact-form-7
sudo -u www-data wp --path=/home/youruser/public_html plugin list
WP-CLI refuses to run as root unless you add --allow-root. Treat that refusal as the warning it is. On shared hosting, your login is normally the files’ owner already; check with ls -l if unsure.
After the update: what to check
After the updates are done, finish with a short round of checks:
- Versions: the Updates screen shows nothing left waiting, or
wp plugin listshows the versions you expect. - The site: homepage, a post, and anything visitors use, checked logged out.
- A new backup: your last backup is now from before the update, so make a fresh one.
If something broke and you can’t get into wp-admin, our guide to fixing a failed WordPress update covers the common errors. To decide which updates WordPress may run on its own, see our guide to WordPress auto-updates. The WordPress maintenance checklist puts updates into a weekly routine.
How we tested
Our updates ran on a test install of WordPress using Twenty Twenty-Five, served by nginx with PHP 8.3 and MariaDB, with WP-CLI 2.12.0. We made a backup, then moved Contact Form 7 between 6.2.4 and 6.2.5 in both directions, from zip files built from the plugin’s tagged releases. Each move was made with WP-CLI, with the dashboard’s upload screen or from a zip we saved of the installed version. WordPress itself went from 7.1.3 to 7.1.4 from a zip as well.
We then tried two mistakes on purpose: a plugin zip with a differently named folder, and an older WordPress zip. The file-owner failure wasn’t planned; we hit it, then fixed it. Our test server can’t reach WordPress.org, so we didn’t test the one-click update buttons, theme updates or automatic updates.
Frequently Asked Questions
Is it safe to update all plugins at once?
Updating all plugins at once can work, but if the site breaks, you won’t know which plugin caused it. Updating one at a time and checking after each costs a few extra minutes and leaves no guessing; the WordPress handbook’s multi-version upgrade steps also say to go one by one.
What if an update breaks my site?
Put the plugin’s previous version back from its zip, as shown above; that took us about a second. If the dashboard is down, use WP-CLI or rename the plugin’s folder over SFTP to switch it off. If that doesn’t help, restore the backup you made before updating.
How long does a WordPress update take?
On our test site, a plugin update took about a second and WordPress’s own minor update 3.6 seconds, plus a few seconds for the backup first. Large sites, slow servers and major versions with database changes can take longer; we didn’t measure those.