Skip to content
ThemesIonic — home
Plugins

Best WordPress Security Plugins: What to Look For

Core already hashes passwords with bcrypt, auto-installs minor releases and runs Site Health security checks. Pay a plugin only for what core lacks: login limiting, 2FA, scanning and an activity log.

Updated 6 min read intermediate

Pay a security plugin only for what WordPress core does not do: core already hashes passwords with bcrypt, installs security releases on its own and checks your configuration in Site Health, but it has no login rate limiting, no two-factor authentication, no firewall and no file scanner.

Most "best security plugin" lists compare feature counts. The useful comparison is narrower: which threats core already handles, which belong in front of WordPress at the server or CDN, and which genuinely need a plugin.

What core already does in WordPress 7.1

Check these before buying anything, so you do not pay twice:

  • Password hashing. Since 6.8, wp_hash_password() uses bcrypt (PASSWORD_BCRYPT) instead of the old phpass hashes, and old hashes are upgraded on the next login. A plugin that advertises "stronger password hashing" adds nothing on a current install.
  • Minor core updates. Security and maintenance releases (7.1.4 → 7.1.5) install automatically by default; major versions do not. The WP_AUTO_UPDATE_CORE constant changes this — see WP_AUTO_UPDATE_CORE.
  • Plugin and theme auto-updates. Available, but off until you click Enable auto-updates per plugin on the Plugins screen.
  • Application Passwords. Per-application credentials for the REST API and XML-RPC that you can revoke individually. They are only offered over HTTPS (or on a local environment).
  • Recovery mode. When a plugin causes a fatal error, core emails the admin a "Your Site is Experiencing a Technical Issue" message with a link that logs in with the broken plugin paused.
  • Site Health security tests (Tools → Site Health). Items badged Security include "Your plugins are all up to date", "Your site is not set to output debug information", "Your website is using an active HTTPS connection", "Background updates are working" and, since 7.0, "Open Registration with privileged default role", which goes critical when anyone can register and the default role is Editor or Administrator.
  • File editor switch. define( 'DISALLOW_FILE_EDIT', true ); in wp-config.php removes the theme and plugin file editors — one line, no plugin needed. Details in DISALLOW_FILE_EDIT.

What core does not do: it fires wp_login_failed on every failed attempt but never counts or blocks; it has no two-factor authentication (the only mention of 2FA in core is a suggestion in the privacy policy template); and its login error even confirms a username exists ("The password you entered for the username … is incorrect.").

On a WordPress 7.1.5 test install, ten wrong passwords in a row for admin changed nothing:

after 10 wrong passwords → "Error: The password you entered for the username admin is incorrect."
11th attempt, correct password → HTTP 302 to /wp-admin/  (logged in, no delay, no lockout)

The error text also confirms that the username admin exists.

Threat by threat: where each layer belongs

Threat Does core cover it? Best handled at What to check in a plugin
Password guessing on wp-login.php No — no attempt counting Plugin, or server/CDN rate limit Lockout by IP and username, an allowlist, generic error messages
Brute force through XML-RPC system.multicall No — one request can carry many login attempts Block xmlrpc.php at the server if unused; otherwise plugin Counts each attempt inside a multicall, not just each request
Stolen password Partly — bcrypt slows offline cracking only Plugin (2FA) 2FA also enforced on XML-RPC; recovery codes; per-role enforcement
Known plugin vulnerability Only if you update; minor core releases are automatic Updates first; virtual patching at CDN or plugin How fast rules ship after disclosure
Volumetric attacks, bad bots No CDN or host Nothing — a PHP plugin runs after the request already reached your server
Modified or injected files No Plugin scanner, or host scanning Compares core files to WordPress.org checksums; scan scheduling
Unauthorised admin changes No audit trail Plugin (activity log) Logs user, IP and object; retention period; storage table size
Editing PHP from the dashboard Yes, via DISALLOW_FILE_EDIT wp-config.php Skip any plugin toggle for it
Privilege escalation by open registration Flagged by Site Health Settings → General Nothing extra

Where a firewall should live

A plugin firewall runs inside PHP: easy to install and aware of WordPress context, but every blocked request has already cost a PHP worker. A CDN or host firewall filters before traffic reaches the server, which is the only thing that helps against floods and bot swarms. A sensible split is network filtering upstream and a plugin for the WordPress-specific parts — logins, 2FA, integrity, the activity log. What breaks sites is two layers both trying to be the firewall.

Failure modes to test for

The most common support tickets after installing a security plugin are self-inflicted:

  • Blocked REST API. Hardening options that restrict /wp-json/ break the block editor, which then reports that the response is not a valid JSON response. Restrict specific endpoints, not the whole API.
  • Blocked loopbacks. A firewall that challenges requests from the server's own IP makes Site Health report that the loopback request failed, which also breaks scheduled tasks and file-editor safety checks.
  • Login page caching or renamed login URLs. A cached or rewritten wp-login.php can lose the test cookie, producing "Cookies are blocked or not supported by your browser" — see the cookies error.
  • 2FA that skips API logins. Application Passwords and XML-RPC authenticate through the same authenticate filter, not the login form. A 2FA plugin that only adds a step to the form leaves those doors open; one that blocks them outright breaks the mobile app and integrations.
  • Locking out the admin. IP lockouts, lost 2FA devices and country blocks while travelling. The way back is renaming the plugin's folder over FTP, per disabling plugins without admin access. Store recovery codes and any custom login URL outside the site.

Matching the plugin to the site

  • Blog or brochure site: login limiting, 2FA for administrators, update alerts. Scanning is optional.
  • Store or membership site: add an activity log and enforce 2FA for every role that can see orders or customer data.
  • Many sites: a central dashboard, or the alerts stop being read.
  • Already behind a CDN firewall: choose a plugin whose firewall can be switched off.

What no plugin does

It cannot patch a vulnerable extension — only the update does. It cannot undo a compromise; that is a restore and clean-up, covered in fixing a hacked WordPress site. And it does not replace backups stored off the server, which are the only control that still works after everything else failed.

Verify

  1. Tools → Site Health: no critical items under the Security badge, and the loopback and REST API tests still pass after the plugin is active.
  2. Fail a login several times from a phone on mobile data and confirm the lockout triggers — and expires.
  3. Open the block editor and save a draft.
  4. Log in with 2FA, then test an Application Password with a REST request to confirm your 2FA policy applies the way you expect.
  5. Compare front-end and admin load times against your measurement from before the plugin.

Frequently asked

The one that covers the gaps core leaves and nothing more: login rate limiting and two-factor authentication for every site, plus an activity log or file scanning where the site needs them. If a CDN or the host already runs a firewall, choose a plugin without its own firewall rather than stacking two.
No. Core fires the wp_login_failed action on every failed login but does not count, delay or block anything, and the same is true for XML-RPC and Application Password logins. Rate limiting has to come from a plugin, the web server or a CDN.
Not two that do the same job. Two firewalls or two login limiters hook the same authentication filters and write competing rules, which produces lockouts and false positives. One plugin for login protection alongside a server-level or CDN firewall is fine.
Tagged Security

Related guides