# Remove unnecessary plugins

- Check 09.08 · Security and infrastructure · Critical
- Source: https://checklist-seo-geo.com/en/security-infrastructure/remove-unnecessary-plugins
- Inventory, then cleanly uninstall unnecessary plugins, themes, modules and dependencies on WordPress, PrestaShop, Magento, Drupal, Shopify, Laravel or Next.js.
- Updated on 2026-11-25
- Licence: CC BY 4.0. Credit “Checklist SEO & GEO” with a link to https://checklist-seo-geo.com/en/security-infrastructure/remove-unnecessary-plugins.
- Plugin checklist-seo-geo: 1.3.1 · https://github.com/maximegaul/checklist-seo-geo

## In short

Every installed plugin, theme, module or package is executable code on your server, whether it is used or not. Removing what is no longer needed shrinks the attack surface, the number of updates to track and often the weight of pages. Once this check is done, the inventory contains only components that are used, maintained and up to date, and a quarterly review keeps the clutter from coming back.

## Why it matters

A deactivated plugin is not a harmless plugin. On WordPress, PrestaShop or Joomla, deactivating a component stops it from running inside the CMS, but its PHP files stay in the public folder: if one of them contains a vulnerability that can be called directly through its URL, it remains exploitable. And since the component is no longer “in use”, nobody thinks of updating it.

Abandoned components pose the same problem, only worse: their vendor no longer publishes fixes. A vulnerability discovered after abandonment will never be patched.

For SEO, the risk is concrete. Most hacks of CMS-based sites go through a vulnerable plugin, and a hacked site gets injected with spam pages, hidden links or redirects that end up flagged in the Search Console [security issues report](https://checklist-seo-geo.com/en/security-infrastructure/check-search-console-security-issues), or even marked as dangerous in search results.

Finally, many plugins load their CSS and JavaScript on every page, even where they serve no purpose: removing some lightens rendering.

## What it improves

- **Security**: less exposed code, fewer possible vulnerabilities, fewer forgotten service accounts and API keys.
- **Maintenance**: fewer updates to test and fewer conflicts between plugins. See [update the CMS, plugins and dependencies](https://checklist-seo-geo.com/en/security-infrastructure/update-cms-plugins-dependencies).
- **Performance**: fewer scripts, stylesheets and database queries, so faster rendering. The effect depends on the plugins removed.
- **Backups**: lighter and faster to restore.
- **Rankings**: no direct effect. The indirect effect is avoiding a hack and its consequences for indexing and visitor trust.

## How to check

**WordPress, from the command line** with WP-CLI:

```bash
wp plugin list --fields=name,status,version,update,auto_update
wp theme list --fields=name,status,version,update
wp plugin list --status=must-use,dropin
```

Compliant result: no `inactive` row apart from one fallback default theme, no `update` row set to `available`, and “must-use” plugins you can account for.

**WordPress, in the admin**: `Tools > Site Health` flags inactive plugins and themes.

**Other CMSs**: compare the list of installed modules with the list of features actually used on the site (see the commands in each section).

**Project dependencies**:

```bash
composer show --direct
npm ls --depth=0
```

**Files outside the CMS**: look for forgotten folders at the root (`/old`, `/test`, `/demo`, `/wordpress2`, old installations), which are full CMS installs that are never updated.

```bash
find /var/www/example -maxdepth 2 -name "wp-config.php" -o -maxdepth 2 -name "configuration.php" -o -maxdepth 2 -name "composer.json"
```

More than one unexpected result points to a parallel installation to delete or protect.

## How to implement

### Before you start

Make a full, tested backup before any removal: see [automate backups and test restores](https://checklist-seo-geo.com/en/security-infrastructure/automate-backups-test-restores). Work on a staging environment first if you have one.

Then draw up the inventory in a spreadsheet:

| Component | Type | Status | Purpose on the site | Vendor's last update | Decision |
|---|---|---|---|---|---|
| Contact Form 7 | Plugin | Active | Contact form | 2 months ago | Keep |
| Slider Revolution | Plugin | Inactive | Old home page carousel | Unknown (expired license) | Remove |
| Twenty Twenty-Two | Theme | Inactive | None | Maintained | Remove, keep a single recent default theme |
| Old cache module | Plugin | Active | Duplicates the current cache plugin | 3 years ago | Replace, then remove |

Decision criteria:

- **Remove**: inactive, duplicates another plugin, abandoned feature, vendor no longer publishes updates, plugin withdrawn from the official directory.
- **Replace**: feature needed but component abandoned or heavy. A simple feature (a tracking code, a redirect) can often be done without a plugin.
- **Keep**: used, maintained, up to date.

Before removing an active component, check that it produces nothing visible to search engines: redirects, title tags, structured data, sitemap, shortcodes in content. An SEO or redirect plugin removed without carrying over its settings can break indexing.

> **Warning:** uninstalling often deletes the plugin's data from the database (settings, form submissions, redirects). Export what you want to keep beforehand.

### WordPress

Versions: WordPress 6.4 to 7.1, WP-CLI 2.x.

1. `Plugins > Installed Plugins`, “Inactive” filter: for each plugin, click “Delete”. WordPress then runs the plugin's uninstall routine, which in principle cleans up its options in the database.
2. `Appearance > Themes`: delete unused themes. Keep the active theme, its parent theme if it is a child theme, and a single recent default theme as a fallback.
3. Check the `wp-content/mu-plugins/` folder: these “must-use” plugins always run and do not appear in the usual list. An unknown file there is a classic sign of a hack.

From the command line, the same thing in a few lines:

```bash
wp plugin list --status=inactive --field=name
wp plugin uninstall slider-revolution --deactivate
wp theme delete twentytwentytwo
wp plugin verify-checksums --all
```

`wp plugin uninstall` runs the uninstall procedure and then deletes the files; the `--deactivate` option deactivates an active plugin first. `wp plugin verify-checksums` compares files against WordPress.org checksums and flags modified plugins; it does not check plugins bought outside the official directory.

On a plugin's page in the official directory, a warning appears when it has not been tested with the latest major WordPress releases: a good indicator of abandonment.

### PrestaShop

Versions: PrestaShop 8 and 9.

In `Modules > Module Manager`, open the module's dropdown menu and choose “Uninstall”. Tick the option that also deletes the module folder: without it, PrestaShop uninstalls but leaves the files in `/modules`.

From the command line, at the root of the store:

```bash
php bin/console prestashop:module uninstall nom_du_module
rm -rf modules/nom_du_module
php bin/console cache:clear
```

Also delete unused themes in `Design > Theme & Logo`.

### Magento

Versions: Magento Open Source and Adobe Commerce 2.4.6 to 2.4.9.

List the modules and their status:

```bash
bin/magento module:status
```

For a module installed with Composer:

```bash
bin/magento maintenance:enable
bin/magento module:uninstall Vendeur_Module --remove-data
bin/magento setup:di:compile
bin/magento cache:flush
bin/magento maintenance:disable
```

For a module copied into `app/code`, the `module:uninstall` command does not apply: disable it, delete its folder, then rebuild.

```bash
bin/magento module:disable Vendeur_Module
rm -rf app/code/Vendeur/Module
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento cache:flush
```

### Drupal

Versions: Drupal 10 and 11, Drush 13.

Interface: `Extend > Uninstall` (`/admin/modules/uninstall`). Then remove the code with Composer, otherwise the module stays on disk.

```bash
drush pm:list --type=module --status=enabled --no-core
drush pm:uninstall nom_du_module
composer remove drupal/nom_du_module
drush cache:rebuild
```

Do the same for themes in `Appearance`.

### Joomla

Versions: Joomla 5 and 6.

`System > Manage > Extensions`: filter by type (component, module, plugin, template), tick the unused extensions and click “Uninstall”. A “package” extension is uninstalled through its package, which removes all its parts. Then check `System > System Information > Folder Permissions` and the `/tmp` folder for forgotten installation archives.

### Shopify

Versions: Shopify admin, all plans, November 2026.

In `Settings > Apps`, open the “…” menu of each unnecessary app and choose “Uninstall”. An app can leave code in the theme, especially older ones that wrote directly into Liquid files.

1. Duplicate the theme (`Online Store > Themes`, “…” menu, Duplicate).
2. In the theme editor, open App embeds and turn off those of the uninstalled apps.
3. In `Edit code`, search `theme.liquid` and the `snippets` folder for the app's name or domain, then delete the orphaned includes.
4. Preview the copy, then publish it.

An uninstalled app may keep rights over data already exported to its vendor: check its data deletion policy.

### Wix

Versions: Wix dashboard, all plans, November 2026.

From the site dashboard, open the list of installed apps and remove those that are no longer used. Wix manages the platform code; above all, check the custom code added in the site settings (tracking tags, scripts from abandoned tools).

### Webflow

Versions: Webflow site settings, all plans, November 2026.

Remove unnecessary apps in the site's app settings, then review the custom code in `Site settings > Custom code` and on pages: the script of a cancelled tool often keeps loading.

### Laravel

Versions: Laravel 11 to 13, composer-unused 0.9.

List the direct dependencies and find those the code no longer uses with composer-unused:

```bash
composer show --direct
composer require --dev icanhazstring/composer-unused
vendor/bin/composer-unused
```

Then remove the package, its published configuration files and any orphaned migrations:

```bash
composer remove vendeur/paquet
rm config/paquet.php
php artisan optimize:clear
composer audit
```

`composer audit` flags the remaining dependencies that have a known vulnerability.

### Next.js

Versions: Next.js 15 and 16, Knip 6.

Knip detects unused dependencies, files and exports:

```bash
npx knip
npm uninstall nom-du-paquet
npm audit
```

Also check the third-party scripts loaded through `next/script` or in the layout: a cancelled tool keeps weighing down every page. See [limit third-party scripts](https://checklist-seo-geo.com/en/performance-core-web-vitals/limit-third-party-scripts).

### Apache

Versions: Apache 2.4, Debian and Ubuntu packages.

List the loaded modules and disable those the site does not need, especially those that expose information:

```bash
apache2ctl -M
sudo a2dismod status info userdir
sudo apachectl configtest && sudo systemctl reload apache2
```

`mod_status` and `mod_info` publish the server's status and configuration if they are poorly restricted. Also delete the virtual hosts of closed sites in `/etc/apache2/sites-enabled/`.

### Nginx

Versions: Nginx 1.18 and later, Debian and Ubuntu packages.

Dynamic modules are loaded from `/etc/nginx/modules-enabled/`: remove the links of unused modules. Delete the `default` site and the configurations of closed sites from `/etc/nginx/sites-enabled/`, then reload with `sudo nginx -t && sudo systemctl reload nginx`.

### Shared hosting

Open the file manager or an SFTP connection and look for forgotten installations: test subfolders, the old site from before a redesign, a CMS installed in one click and then abandoned. If the host provides an app installer, its list of installations helps you find them. Delete them after a backup, along with their databases, or password-protect them if they must be kept.

## Common mistakes

- **Deactivating instead of deleting**: the files can still be called through their URL and are no longer updated.
- **Removing an SEO or redirect plugin without carrying over its settings**: redirects disappear, titles and canonicals change, pages turn into 404s.
- **Keeping several plugins for the same feature**: two cache or SEO plugins conflict and produce duplicate tags.
- **Forgetting themes**: an inactive theme contains executable PHP, just like a plugin.
- **Ignoring the `mu-plugins`, `/old` or `/test` folders**: they are favorite hiding places for backdoors and the least monitored installations.
- **Deleting without a backup**: an uninstall that wipes database data cannot be undone.
- **Cleaning up only once**: without a quarterly review, the list fills up again.

## Frequently asked questions

### Is a deactivated WordPress plugin a risk?

Yes. A deactivated plugin no longer runs inside WordPress, but its PHP files stay in the site's public folder. If one of them contains a vulnerability reachable directly through its URL, an attacker can exploit it, and since the plugin is no longer used, nobody updates it anymore. So delete inactive plugins instead of leaving them deactivated, after exporting their settings if needed.

### Should I keep a default theme on WordPress?

Keep a single recent default theme, maintained and up to date, in addition to the active theme and its parent theme if there is one. It serves as a fallback if the active theme causes an error. Delete every other unused theme: an inactive theme contains executable PHP code and must be updated like a plugin, without bringing any benefit.

### Does removing plugins improve SEO?

Not directly: the number of plugins is not a ranking factor. The gain is indirect. Fewer plugins means fewer exploitable vulnerabilities, and therefore less risk of a hack with spam injection and warnings in search results. Removing plugins that load their scripts on every page can also speed up rendering and improve Core Web Vitals.

### How can I tell whether a plugin is abandoned?

Look at the date of the last update published by the vendor, its version history and the stated compatibility with your CMS version. In the official WordPress directory, a warning appears when the plugin has not been tested with the latest major releases, and a closed plugin can no longer be downloaded. An expired license that cannot be renewed or unresponsive support are also signs of abandonment.

## Resources

- [WordPress: Manage Plugins](https://wordpress.org/documentation/article/manage-plugins/)
- [WP-CLI: wp plugin uninstall](https://developer.wordpress.org/cli/commands/plugin/uninstall/) and [wp plugin verify-checksums](https://developer.wordpress.org/cli/commands/plugin/verify-checksums/)
- [PrestaShop: prestashop:module command](https://devdocs.prestashop-project.org/8/development/components/console/prestashop-module/)
- [Adobe Commerce: Uninstall modules](https://experienceleague.adobe.com/en/docs/commerce-operations/installation-guide/tutorials/uninstall-modules)
- [Drush: pm:uninstall](https://www.drush.org/latest/commands/pm_uninstall/)
- [Composer: audit command](https://getcomposer.org/doc/03-cli.md#audit)
- [Google Search Central: Prevent malware infections](https://developers.google.com/search/docs/monitor-debug/security/prevent-malware)

Next steps: [update the CMS, plugins and dependencies](https://checklist-seo-geo.com/en/security-infrastructure/update-cms-plugins-dependencies) and [monitor for hacking and content or link injection](https://checklist-seo-geo.com/en/security-infrastructure/monitor-hacking-content-link-injection).
