Key points
- The number of plugins matters less than their quality: one badly written plugin can slow a site down more than fifteen lean ones.
- A useful audit judges each plugin on five criteria: actual use, maintenance, overlap, measured cost and what depends on it in your content.
- Never delete straight on production: staging, backup, deactivation, an observation period, then cleaning up what’s left behind.
“I have 47 plugins, is that bad?” It’s one of the first questions we hear when a client hands us the maintenance of an existing site, usually after a consultant or an audit tool flagged the number. The honest answer is that it depends, and the number on its own tells you very little. A site can run perfectly well on forty carefully chosen plugins and struggle with ten poor ones. What a high count almost always does tell you is that nobody has cleaned up in a long time: plugins installed for a one-off need and never removed, others abandoned by their authors, two tools doing the same job. This guide walks through the method we use in our maintenance audits: take inventory, judge every plugin against concrete criteria, measure its real impact, replace what can be replaced with a few lines of code, and remove the rest without breaking anything. It’s written for site owners as much as for developers taking over a project.
The number of plugins isn’t the real problem
WordPress doesn’t slow down because there are lots of folders in wp-content/plugins. What costs you is what each active plugin does on every page load: database queries, calls to external services, CSS and JavaScript files added to every page, options loaded into memory. A plugin that adds a column to an admin screen costs almost nothing. A form builder that loads its scripts site-wide, including on pages with no form at all, costs you on every single visit.
The count does have a real effect, just not on speed. Every plugin is third-party code running with full access to your site. Each one is a potential way in if a vulnerability is found, one more update to watch, and one more compatibility risk when you upgrade WordPress or PHP. On the sites we take over, breakages after an update rarely come from WordPress core. They nearly always come from a plugin, quite often one nobody remembered installing.
What we find most often in a first audit:
- Plugins deactivated months ago. They don’t slow anything down, but their code is still on the server and can still be exploited if a vulnerability affects a file that can be requested directly.
- Duplicates. Two caching plugins, two SEO plugins, or a theme that already handles social sharing alongside a dedicated plugin. At best you pay twice; at worst they interfere with each other.
- Abandoned plugins. No update in years, pulled from the official directory, or published by a vendor that no longer exists.
- A whole plugin for one setting. Disabling emojis, adding a verification tag, hiding the WordPress version: legitimate needs that don’t justify a full plugin with its own options screen and upsell banners in your dashboard.
- Plugins nobody can explain. Installed by a previous agency, never documented. These are the ones people are most reluctant to touch, and rightly so.
So the goal of an audit isn’t to hit some magic number. It’s to be able to justify every plugin on the site.
Step 1: take a complete inventory
You can’t judge what you can’t see. The Plugins screen is enough for a small site, but WP-CLI gives a fuller, exportable view, including must-use plugins and drop-ins, which don’t appear in the usual list and get forgotten every time:
# Every plugin, with status, version and pending update
wp plugin list --fields=name,status,version,update,update_version
# Only the deactivated ones (the obvious candidates)
wp plugin list --status=inactive --field=name
# Must-use plugins and drop-ins, often missed in the inventory
wp plugin list --status=must-use
wp plugin list --status=dropin
# Export the inventory to share it with the team
wp plugin list --format=csv > plugins-$(date +%F).csv
We then turn that export into a spreadsheet shared with the client, one row per plugin, with a few columns to fill in: what it does (in one sentence a non-developer understands), who asked for it, which pages it affects, whether it’s free or licensed, and who holds the licence. That last column regularly brings surprises: licences registered to a former agency and long expired, which means no security updates are arriving.
Filling in “what it does” sometimes takes detective work. Look at the plugin’s settings, search the content for its shortcodes or blocks, check which menus it adds. If after ten minutes nobody knows what it’s for, write that down. It’s useful information in itself, and it makes the plugin a candidate for testing on staging.
Step 2: judge each plugin on five criteria
With the inventory in hand, we run every row through five questions. They don’t produce an automatic score, but they make each decision explicit.
- Is it still needed? Does the original need still exist? The countdown plugin for a launch offer that ended two years ago, the migration tool left behind after a hosting move, the importer used exactly once: all of them can go.
- Is it maintained? Check the last update date, the WordPress version it was tested with, and whether the author still answers on the support forum. A small, stable plugin can go a while without updates; a complex plugin with no release in years is a liability, especially on recent PHP versions.
- Does it duplicate something? Another plugin, the theme, or WordPress itself. Core has come a long way: lazy-loaded images, XML sitemaps, a block editor with columns and buttons, privacy tools. Some plugins installed a few years ago filled gaps that no longer exist.
- What does it cost? In performance (see the next step), but also in money and time: annual licences, updates to test, training your team on yet another interface.
- What depends on it? Shortcodes in pages, specific blocks, custom fields the theme reads, forms whose submissions are delivered somewhere. This is the criterion that determines what removal really costs.
By the end of this step, every plugin gets a decision: keep, replace (with a better-maintained alternative, a core feature or a bit of code), or remove. Security, backup and caching plugins deserve extra care: never remove one until its replacement is in place.
Step 3: measure the real performance impact
Gut feelings mislead. We’ve seen clients blame the most visible plugin when the slowdown actually came from a small analytics add-on calling an external service on every page view. The only reliable approach is to measure.
The first tool is the Query Monitor plugin, installed temporarily on staging. For each page it shows the number of SQL queries and their duration grouped by the plugin responsible, outgoing HTTP requests, and the scripts and styles enqueued. A plugin firing dozens of queries or an HTTP call on every page load stands out immediately.
The second is a blunt measurement: deactivate each plugin in turn and time the page. On staging we use a small script along these lines:
#!/usr/bin/env bash
# Run this on staging only, never on production
URL="https://staging.example.com/"
measure() { # median of 5 requests, bypassing the page cache
for i in 1 2 3 4 5; do
curl -s -o /dev/null -w "%{time_starttransfer}n" "$URL?nocache=$RANDOM"
done | sort -n | sed -n 3p
}
echo "All active : $(measure) s"
for p in $(wp plugin list --status=active --field=name); do
wp plugin deactivate "$p" --quiet
echo "Without $p : $(measure) s"
wp plugin activate "$p" --quiet
done
Treat the numbers as indications, not absolute truths. Staging doesn’t carry production traffic, and some plugins have knock-on effects: deactivating a page builder leaves a nearly empty page that is obviously faster, which doesn’t mean you can live without it. Clear gaps still speak for themselves, though. A plugin whose deactivation removes a visible chunk of response time deserves a close look at what it’s doing.
Finally, many plugins store their settings in options that are autoloaded on every request, and some keep piling data into them over time: logs, caches, statistics. This query lists the heaviest ones. The name prefix usually tells you which plugin is responsible, including plugins that were deleted without cleaning up after themselves:
# The 20 options loaded on every request, heaviest first
wp db query "SELECT option_name, LENGTH(option_value) AS bytes
FROM $(wp db prefix)options
WHERE autoload IN ('yes', 'on', 'auto', 'auto-on')
ORDER BY bytes DESC LIMIT 20"
In the browser, the Network tab of the developer tools, filtered on JS and CSS, shows which plugins load their files on pages where they serve no purpose. That’s often where the easiest wins are, without even removing the plugin: just restrict its assets to the pages that need them.
Step 4: replace a plugin with a few lines of code
A share of the plugins on a typical site do one or two very simple things. Grouping them into a single custom must-use plugin, versioned with the rest of the project, removes as many admin screens, updates and dependencies. Files placed in wp-content/mu-plugins load automatically and can’t be switched off by accident from the dashboard:
<?php
/**
* Plugin Name: Site settings
* Description: Replaces three small plugins. Do not delete.
*/
// 1. Disable emojis (script and styles loaded on every page)
add_action( 'init', function () {
remove_action( 'wp_head', 'print_emoji_detection_script', 7 );
remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );
remove_action( 'wp_enqueue_scripts', 'wp_enqueue_emoji_styles' );
remove_action( 'admin_enqueue_scripts', 'wp_enqueue_emoji_styles' );
remove_filter( 'the_content_feed', 'wp_staticize_emoji' );
remove_filter( 'wp_mail', 'wp_staticize_emoji_for_email' );
} );
// 2. Turn off authenticated XML-RPC methods (no service uses them here)
add_filter( 'xmlrpc_enabled', '__return_false' );
// 3. Search Console verification tag
add_action( 'wp_head', function () {
echo '<meta name="google-site-verification" content="YOUR_CODE">' . "n";
}, 1 );
Don’t swing too far the other way, though. Replacing a forms, caching or SEO plugin with home-grown code is rarely a good idea: those plugins handle hundreds of edge cases and receive security fixes your code never will. The rule on our projects: we replace with code whatever fits in a few lines, needs no admin interface and doesn’t touch security. Everything else goes to a solid, well-maintained plugin.
Document the replacement code too. A comment explaining what each block replaces stops a future developer from reinstalling the original plugin because they think something is missing.
Step 5: remove plugins without breaking the site
Removal is where things most often break, and usually silently: a page suddenly showing [gallery_pro id="3"] as plain text, a form that no longer delivers its messages, a layout that relied on a stylesheet the plugin loaded. Here’s how we go about it:
- Work on a staging copy first, and make sure you have a recent, tested backup of production.
- Search the content for traces of the plugin: shortcodes, blocks, plugin-specific CSS classes.
- Deactivate (don’t delete) on production, then watch for a week or two: error logs, forms, key pages, feedback from the team.
- Delete it, then clean up the options and tables it left behind, once you’re sure nothing worth keeping is stored there.
WP-CLI helps with both the search and the cleanup:
# Content that still uses one of the plugin's shortcodes
wp db search '[gallery_pro' --all-tables-with-prefix
# Options and tables it leaves behind
wp option list --search='gallery_pro_*' --fields=option_name,autoload
wp db tables '*gallery_pro*' --all-tables-with-prefix
# Deactivate, wait a week or two, then delete
wp plugin deactivate gallery-pro
wp plugin delete gallery-pro
If shortcodes remain in your content, you have two options: fix the affected content (by hand if only a few pages are involved, otherwise with a careful search-and-replace), or register a minimal stand-in shortcode that renders something acceptable. The second is a handy safety net during the transition.
Delete tables and options deliberately. A forms plugin may hold years of submissions; an e-commerce plugin, orders. Export anything that might matter before you remove it.
Keeping the site clean over time
An audit without rules for afterwards gives you a site that’s back to its old mess within a year or two. A few simple habits prevent that:
- A plugin register, the spreadsheet from step 1, kept up to date: every new plugin is logged with its purpose and who requested it.
- One person, or one role, allowed to install plugins on production. Other admins can suggest plugins but not add them directly. Setting
DISALLOW_FILE_MODSinwp-config.phpeven blocks installs from the dashboard entirely when the site is deployed another way. - A staging test before any new plugin and before major updates.
- A regular review built into the maintenance contract: on ours, we go through the register every quarter, which rarely takes more than an hour once the groundwork is done.
- Licences in the company’s name, not the agency’s, with their renewal dates.
The payoff of a clean site shows most at update time: fewer plugins to test, fewer compatibility risks, and WordPress and PHP upgrades you can apply without holding your breath.
FAQ
What’s the maximum number of WordPress plugins?
There’s no fixed limit. A simple brochure site often runs on about ten plugins; an online shop needs more. The right question is whether each plugin has a current purpose, is maintained and has an acceptable measured cost.
Do deactivated plugins slow down my site?
No, WordPress doesn’t load their code. But their files are still on the server and may contain exploitable vulnerabilities if a file can be requested directly. A plugin that has been deactivated for a long time should be deleted, once you’ve checked it holds no data you need.
Can I delete a plugin safely?
Rarely without precautions. Search your content for its shortcodes and blocks, take a backup, test deactivation on staging and then on production for a while, and only then delete it and clean up its data.
Is one all-in-one plugin better than several small ones?
Not necessarily. An all-in-one plugin means fewer updates but often loads features you don’t use. Several small, focused, well-maintained plugins are often lighter. What matters is quality and measuring the real impact.
Has your WordPress site piled up plugins and do updates make you nervous? We run complete audits and maintain WordPress sites: plugin clean-up, performance measurements, and updates tested on staging first.



