WordPress

WordPress Security Checklist: 15 Steps to Harden Your Site

WordPress Security Checklist: 15 Steps to Harden Your Site
Short answerTo secure a WordPress site, keep core, plugins and themes updated, delete anything you don't use, install plugins only from trusted sources, use strong unique passwords with two-factor authentication, run automatic off-site backups you've tested, use HTTPS, disable the built-in file editor, set correct file permissions and add a firewall or virtual patching. Most attacks target vulnerable plugins, so plugin hygiene matters most.

Key takeaways

  • Patchstack counted 11,334 new vulnerabilities in the WordPress ecosystem in 2025; 91% were in plugins.
  • 46% of those vulnerabilities had no fix available when they were publicly disclosed, so updates alone aren't enough.
  • Fewer plugins means a smaller attack surface: remove anything inactive.
  • Two-factor authentication and unique passwords stop most login attacks.
  • Backups only count if they're stored off-site and you've tested a restore.

Is WordPress secure?

WordPress core is well maintained: Patchstack's State of WordPress Security in 2026 report found only six vulnerabilities in core during 2025, against 11,334 across the ecosystem. The risk lives in plugins (91%) and themes (9%), and in how the site is run: logins, updates, hosting and backups.

The same report found 46% of vulnerabilities had no developer fix in time for public disclosure. That's why we pair updates with a firewall or virtual patching on the sites we look after.

The 15-step WordPress security checklist

This follows the official WordPress hardening guide, ordered by impact.

Updates and plugins

  1. Update WordPress core, plugins and themes. Enable automatic minor and security updates; test major updates on staging.
  2. Delete unused plugins and themes. Deactivated code can still be exploited if it's on the server.
  3. Install only from trusted sources. The WordPress.org directory or reputable vendors. Never use "nulled" premium plugins.
  4. Replace abandoned plugins. No updates in a year or more is a warning sign.

Logins and users

  1. Use strong, unique passwords stored in a password manager.
  2. Turn on two-factor authentication for every admin and editor.
  3. Give least privilege. Not everyone needs Administrator; remove old users.
  4. Limit login attempts to slow down brute-force attacks.

Server and configuration

  1. Use HTTPS everywhere, including wp-admin.
  2. Disable the file editor in the dashboard (see below).
  3. Set correct file permissions and protect wp-config.php.
  4. Choose a good host with current PHP versions, server-level firewalls and isolation between sites.
  5. Add a web application firewall or virtual patching to block known exploits before a fix exists.

Recovery

  1. Run automatic off-site backups of files and database, and test a restore.
  2. Monitor uptime, file changes and admin logins so you hear about problems first.

Which wp-config.php settings improve security?

A few lines in wp-config.php close common gaps. Disabling the theme and plugin editor means a stolen admin login can't be used to edit PHP from the dashboard:

define( 'DISALLOW_FILE_EDIT', true );

Also make sure your authentication keys and salts are unique (generate them from the WordPress.org secret-key service), and keep WP_DEBUG off on live sites so error messages don't expose file paths.

How do you know if your WordPress site is hacked?

  • Unknown admin users or plugins you didn't install.
  • Redirects to spam or pharma sites, often only for mobile visitors or visitors from Google.
  • Google Search Console security warnings or a "This site may be hacked" label in search results.
  • Your host suspends the account for malware or sending spam.
  • Unexpected files in wp-content/uploads, especially .php files.

What should you do if your site is hacked?

  1. Put the site in maintenance mode and take a full backup of the infected state (useful for investigation).
  2. Change all passwords: WordPress users, hosting, database, SFTP.
  3. Restore a clean backup from before the infection, or clean files manually: reinstall core, plugins and themes from fresh copies.
  4. Find and fix the entry point, usually an outdated plugin, or the site will be reinfected.
  5. Request a review in Google Search Console if a warning appeared.

How often should you do WordPress maintenance?

Check for updates weekly at minimum, review users and plugins monthly, and test a backup restore every quarter. Our WordPress maintenance cost guide breaks down what care plans usually include.

How we can help

We build and maintain WordPress sites with security handled from day one: lean plugin stacks, staging environments, monitored updates and tested backups. See our WordPress development service.

Need help with this?Our WordPress development service covers exactly this. Book a discovery call.
Free 10-point Shopify audit

Send us your store URL and we'll email you the fixes that matter most. No call needed.

Get my audit

Frequently asked questions

Do I need a security plugin for WordPress?

A security plugin or a host-level firewall adds login protection, malware scanning and blocking of known attacks. It doesn't replace updates, strong logins and backups, but it's a sensible layer on most sites.

Is changing the wp_ database prefix worth it?

It's listed in WordPress's hardening guide and makes some automated attacks harder, but it's a minor measure. On an existing site, back up first, since a mistake can break the site.

Should I hide wp-admin or change the login URL?

It cuts down bot noise but isn't real security on its own. Two-factor authentication and limiting login attempts do much more.

Are free WordPress themes safe?

Themes from the WordPress.org directory are reviewed before listing and are generally fine if they're maintained. Avoid themes from unknown sites and pirated premium themes.

How do automatic updates affect security?

Automatic security updates close known holes quickly. For major plugin updates on business-critical sites, test on staging first or use a maintenance plan that does.

Karol Djana

Founder of The Silver Arc, a remote-first Shopify Select Partner studio. Karol leads design and development on the studio's store builds, websites, migrations and B2B projects.

Let's talk

Have a Shopify project in mind?

Tell us what you are building. We will reply with questions, an honest recommendation and next steps, usually within one working day.

Book a call