Steps 1–2: Vet a Plugin Before You Install It
- Read the WordPress.org listing. On the plugin’s page at wordpress.org/plugins, check the right-hand sidebar. Last updated should be within the past six months. Tested up to should match or sit within one major release of your WordPress version. Active installations shows how widely it is used. Open the Support tab and compare the number of issues resolved in the last two months against total threads. A developer who ignores support tickets will likely ignore security reports too. If the page shows a red banner saying the plugin has been closed, do not install it. Closures are often for unpatched security issues.
- Search vulnerability databases. Enter the plugin’s slug in the WPScan Vulnerability Database (wpscan.com), the Patchstack Database (patchstack.com/database), and Wordfence Intelligence (wordfence.com/threat-intel). Each entry lists the affected versions, the vulnerability type (XSS, SQL injection, CSRF, privilege escalation), and the version that fixed it. One patched issue is normal. Repeated issues of the same type, or a fix that took months to ship, are warning signs. Never install nulled copies of premium plugins from third-party sites. They frequently contain injected backdoors.
Steps 3–4: Audit the Plugins Already on Your Site
- Inventory versions and update status. Go to Plugins > Installed Plugins and look for plugins flagged with an available update. Then open Tools > Site Health. Its Status tab flags inactive plugins, which you should delete rather than leave deactivated, because their files can still be exploited. If you have SSH access, run wp plugin list –fields=name,status,version,update to get the same data in one table. Cross-check each version number against the databases from Step 2. A plugin that is behind by even one patch release may have a public exploit.
- Verify file integrity. Attackers often modify legitimate plugin files rather than adding new ones. With WP-CLI, run wp plugin verify-checksums –all. It compares every file against the official WordPress.org copy and lists any that were added or altered. Without SSH access, install Wordfence, go to Wordfence > Scan > Scan Options and Scheduling, and enable Scan plugin files against repository versions for changes. Then run a scan. Investigate any modified file in wp-content/plugins before you assume it is harmless. Premium plugins are not in the repository, so they cannot be checked this way. For those, reinstall a fresh copy downloaded from the vendor’s account portal.
Step 5: Inspect Code and Behavior for Red Flags
- Review what the plugin actually does. Install the official Plugin Check plugin from the WordPress team. Then go to Tools > Plugin Check, select the plugin, and run the security checks. It reports unescaped output, missing nonce verification, and unsafe database calls. For a manual review, open the plugin folder and search for these patterns:
- eval(, base64_decode(, gzinflate(, or long strings of random characters. These usually signal obfuscated or malicious code.
- $_GET, $_POST, or $_REQUEST values used without sanitize_text_field(), absint(), or similar sanitizing functions.
- Direct $wpdb->query() calls built from user input without $wpdb->prepare(), which opens the door to SQL injection.
- AJAX or admin form handlers that lack current_user_can() capability checks or wp_verify_nonce() / check_admin_referer() calls.
Tips for Keeping Plugins Secure Long-Term
- Turn on auto-updates selectively. In Plugins > Installed Plugins, click Enable auto-updates next to well-maintained plugins that rarely break things, such as security and SEO tools. Keep manual control over complex plugins like WooCommerce or page builders. Test those updates on a staging copy first, because a broken checkout costs more than a one-day update delay.
- Get vulnerability alerts instead of checking by hand. Patchstack’s free plan and Wordfence’s email alerts notify you when a plugin on your site gets a newly disclosed vulnerability. That alert often arrives before WordPress shows an update notice. Set the alert email to an inbox someone actually reads daily.
- Minimize your plugin count. Every plugin adds attack surface. Each quarter, review your list and remove anything that duplicates a feature or covers a one-time task. Small snippets, such as disabling XML-RPC, can often go in your theme’s functions.php or a single code-snippets plugin instead. Also watch for plugins that change ownership. A new owner of a popular plugin can push updates to every site that runs it. If the author name or support behavior suddenly changes, re-check the plugin against Steps 1 and 2.
Does Your Site Have This Problem?
Every check in this article runs automatically on the sites we look after. You can run the same health checks on your own site in seconds with the free SiteHale plugin — no account, nothing transmitted anywhere. Or have us do it: we’ll crawl your site and send you a written report, free.