Deactivating a plugin feels like switching it off. It isn’t quite. The plugin stops running inside WordPress, but its files stay on your server, untouched by updates you no longer bother with. For most inactive plugins, the right move is to delete them.
Key takeaways
- Inactive plugins’ files stay on the server and some vulnerabilities can be exploited without the plugin being active.
- Inactive plugins are easy to forget, so they fall behind on updates.
- Delete any plugin you haven’t needed for a month; keep one deactivated only for a short, specific reason.
- Your Site Health info lists every inactive plugin; the plugin checker flags them.
Why inactive plugins are still a risk
The files are still reachable
A plugin’s PHP files live in wp-content/plugins/ whether it’s active or not. Some vulnerabilities are in files that can be requested directly in a browser, and those work whether or not WordPress has the plugin switched on. Attackers scan for vulnerable plugin files, not for active plugins.
They fall behind on updates
WordPress still shows updates for inactive plugins, but nobody feels urgency to apply them. Months later the site has an outdated plugin nobody remembers installing, which is exactly what attackers look for.
They clutter backups and audits
Every inactive plugin adds to backup size, security scans and the list a developer has to understand before changing anything. A tidy plugin list is faster to maintain.
How to find your inactive plugins
- In Plugins → Installed Plugins, click the Inactive filter at the top of the list.
- Or copy your Site Health info (Tools → Site Health → Info → Copy site info to clipboard) and paste it into the plugin checker: inactive plugins are tagged and come with a recommendation.
How to delete a plugin safely
- Back up the site first, files and database.
- Check what the plugin did. If it created content (forms, galleries, custom post types), deleting it can remove that content from your pages or, with some plugins, from the database. Decide whether you need to export anything first.
- Look for its shortcodes. Search your pages for the plugin’s shortcode (for example
[gallery_name]); after deletion those show as plain text. - Delete it from Plugins → Installed Plugins with the Delete link under the inactive plugin, or with WP-CLI:
wp plugin list --status=inactive --field=name
wp plugin delete plugin-slugDeleting through WordPress runs the plugin’s uninstall routine, which may remove its settings and tables. That’s usually what you want. If you might need the settings again, export them first if the plugin offers it.
When keeping a plugin deactivated makes sense
- Troubleshooting: you’ve deactivated it for a day to find a plugin conflict.
- Seasonal features: a plugin you switch on for a yearly event, and you keep it updated.
- A planned switch: you’re moving to a replacement and need the old one for reference for a week or two.
In each case, keep it updated and set yourself a date to delete it. Anything else inactive for more than a month can go.
Make it a habit
Add a quick plugin review to your monthly maintenance: delete what’s inactive, update what’s outdated and replace what’s abandoned. The plugin checker gives you that whole list in one report. If cleaning up a site with years of plugin history feels risky, we can do it for you.
Leave a Reply