Should You Update WordPress Plugins? How to Update Them Safely

Should you update WordPress plugins? Why updates sometimes break a website, a 6-step process for updating safely, what to do when your site goes blank, and whether to turn on automatic updates.

Should you update WordPress plugins, and how to update them safely

Hi everyone, it’s me again. In my work I get a lot of requests about clients’ websites that have been hacked or infected with trojans, backdoors and so on. When I look into them, I usually find unknown plugins installed, or plugins that haven’t been updated regularly. After cleaning things up, I normally advise clients to update their plugins regularly for the best security. But that raises another problem: updating a plugin can sometimes break the website or mess up the layout.

So people ask: “If updating a plugin broke my layout, shouldn’t I just stop updating?” They’re afraid of breaking their website.

That fear is completely reasonable, because updates really do break websites sometimes. But not updating is even more dangerous. Today I’ll answer clearly whether you should update plugins, and more importantly how to update them safely. Let’s dig in:

Should you update plugins?

The short answer: yes, but do it the right way.

A plugin update brings security patches, bug fixes and new features

Each plugin update usually brings one of three things: a security patch, a bug fix, or new features and compatibility with newer versions of WordPress and PHP. Of these, security patches matter most.

As I wrote in WordPress security basics, according to Patchstack’s report most vulnerabilities in the WordPress ecosystem are in plugins. The report also shows attackers exploiting vulnerabilities faster and faster, sometimes within just a few hours of a vulnerability being made public. A website that leaves its plugins months out of date is leaving the door open for an attack.

Why do updates sometimes break a website?

Once you understand the causes, you’ll know how to prevent them. The most common ones:

  • Conflicts between plugins: plugin A’s update changes how it works, and plugin B hasn’t caught up yet.
  • Conflicts with the theme, especially old themes or themes whose code has been edited directly.
  • The PHP version on your hosting is too old to run the plugin’s new code.
  • Major updates (for example from 3.x to 4.0) change many things at once.
  • The update is interrupted halfway because of a network problem or the hosting running out of resources.

The result can be a broken layout, a feature that stops working, or at worst a blank website with the message “There has been a critical error on this website”.

A 6-step process for updating plugins safely

A 6-step process for updating WordPress plugins safely

This is the process I still use for my clients’ websites. For a small website it takes about 15 to 20 minutes.

Step 1: Back up before updating

Always back up first, even if your hosting already makes automatic daily backups. A backup taken right before the update lets you go back to exactly how things were a moment ago. I explained how in how to back up a WordPress website.

Step 2: Read the changelog

On the Plugins page, click “View version details” to read what the plugin has changed. Pay attention to:

  • Whether it mentions a “security fix”: if it does, update soon.
  • Whether it’s a minor version (for example 2.3.1 to 2.3.2) or a major one (2.x to 3.0): major versions need more care.
  • The minimum WordPress and PHP versions it requires.

Step 3: Test on a copy (if you can)

Many hosting providers offer a Staging feature, which creates a copy of your website for testing. Update the copy first, and only update the live site once everything looks fine. I strongly recommend this step for online stores and websites with lots of features. Simple brochure websites can skip it as long as you have a backup.

Step 4: Update plugins one at a time

Don’t tick them all and click update in one go. Update them one by one, and after each one take a quick look at your website. If something breaks, you’ll know immediately which plugin caused it. I usually update small plugins first and leave big ones like WooCommerce, Elementor or other page builders until last.

Step 5: Check your website after updating

Open your website in a private (incognito) window and check:

  • The homepage and a few important pages display correctly, on mobile too.
  • The contact form sends, and the call and Zalo buttons work.
  • For online stores: add something to the cart and place a test order.
  • The admin area loads normally, with no strange error messages.

If your website uses a caching plugin, remember to clear the cache before checking.

Step 6: If something breaks, roll back right away

If you find a problem, don’t try to fix it on the live website while customers are visiting. You have three options, from lightest to heaviest:

  1. Deactivate the plugin you just updated on the Plugins page. Once the site works again, report the problem to the plugin developer and wait for a fix.
  2. Go back to the previous version of the plugin with a helper plugin such as WP Rollback.
  3. Restore the backup you made in step 1.

What if your website goes blank and you can’t get into the admin area?

Don’t panic. Since WordPress 5.2, when a critical error happens WordPress usually sends an email to the admin address with a subject like “Your Site is Experiencing a Technical Issue”. The email contains a link to recovery mode, which lets you log in and deactivate the plugin causing the error.

If you don’t receive the email, open the File Manager in your hosting, go to the wp-content/plugins folder and rename the folder of the plugin you just updated (for example by adding -off to the end). WordPress will deactivate that plugin automatically and your website will usually work again straight away.

Should you turn on automatic updates?

Since WordPress 5.5, you can turn on automatic updates for each plugin on the Plugins page, in the “Automatic Updates” column. WordPress core itself has automatically installed minor releases (maintenance and security releases) for a long time. Recent WordPress versions can even roll back automatically if a plugin auto-update causes a critical error.

My suggestions:

ComponentAuto-update?Why
WordPress core, minor releasesYes (on by default)Mostly fixes, very rarely cause problems
Small, reputable plugins that barely affect the layoutCan turn onGet security patches promptly
Big plugins: WooCommerce, page builders, payment pluginsTurn off, update manuallyMany changes, need careful testing
Themes, especially customized onesTurn offEasy to lose customizations or break the layout
WordPress core, major releasesDepends; usually wait a few daysGives plugins time to become compatible

Whether or not you turn on automatic updates, automatic daily backups are still a must.

Frequently asked questions

How often should I update?

I recommend checking once a week. Updates that mention a security fix should be installed as soon as possible. Major updates unrelated to security can wait 3 to 7 days, so you can see whether other users report problems before you update.

What if a plugin hasn’t been updated in a long time?

If a plugin hasn’t been updated for more than a year, or its WordPress.org page shows a warning that it hasn’t been tested with the latest major releases of WordPress, look for a replacement. An abandoned plugin no longer gets security patches.

Can a premium plugin with an expired license still be updated?

Usually not. When the license expires, the plugin keeps working but stops receiving updates, including security patches. This is a cost you should include in your yearly maintenance budget, as I mentioned in how much does a website cost.

Should I upgrade the PHP version on my hosting?

Yes, because old PHP versions no longer get security patches and run more slowly. But back up first and check your website after switching, because old plugins or themes may not be compatible yet.

Wrapping up

Updating plugins is like servicing your motorbike: skip it and sooner or later something breaks, but done properly it’s painless. In short: back up first, read the changelog, test on a copy if you can, update one at a time, check your site, and roll back right away if something goes wrong.

That completes my three-part series on looking after your website after handover: backups, security and updates. If you don’t have time to do it yourself and would like me to look after your website regularly, just send me a message and I’ll help you out. Take care, everyone!

Tuan Anh Dev
Written by Tuấn Anh Lập trình viên web tự do, đam mê tìm hiểu về code trong thời đại AI này =)))
Về mình

Bạn có thể thích

View all post

Comment

No comments yet. Be the first to comment!