WordPress itself is not insecure. What gets sites broken into is the surrounding ecosystem: a plugin installed for one campaign and never updated, a theme from a marketplace that stopped being maintained, a shared administrator password, a PHP version two major releases behind. The attacks are almost never clever and almost never aimed at you specifically — they are automated sweeps looking for a specific known vulnerability in whoever has not updated.
So this checklist is ordered by how much real risk each item removes, not by how technical it sounds. The first four cover most of it.
Do these four first
- Turn on automatic updates for WordPress core. Minor and security releases should install themselves. There is no scenario where waiting helps.
- Update every plugin and theme, then enable automatic updates for the ones you trust. Plugins are the most common entry point, by a wide margin. If a plugin breaks on update, that is a reason to replace the plugin, not a reason to stop updating.
- Delete every plugin and theme you are not using. Deactivated is not removed — the code still sits on disk and, for some vulnerability classes, is still reachable. Keep one spare default theme and delete the rest.
- Check your PHP version. Tools → Site Health tells you. Running a PHP release that no longer receives security fixes means publicly known holes in the layer under WordPress that no plugin can patch. Your host will have a one-click switch; test on staging if you have one.
Before any of these, take a backup you can restore. Before auditing anything, make sure you can get back.
Accounts and logins
- Audit your users. Users → All Users. Every Administrator is a full compromise if their password leaks. Old agency accounts, a developer who finished last year, a "temp" account from a migration — remove them.
- Use the lowest role that works. Someone who writes blog posts is an Author or Editor, not an Administrator. This is the cheapest control on the list and the most commonly skipped.
- Turn on two-factor authentication for every remaining admin. This single step defeats password reuse, credential stuffing and most phishing against your site.
- Limit login attempts. Most security plugins do this; so does Cloudflare in front of wp-login.php. Without it, your login page is an unlimited guessing machine.
- Do not use "admin" as a username, and do not use your display name as your login. Author archive URLs expose usernames by default, which hands attackers half the credential.
- Use a password manager so each account has a long unique password. "Complexity rules" matter far less than "not reused anywhere else".
Hardening the install
- Disable the built-in file editor. Add define('DISALLOW_FILE_EDIT', true); to wp-config.php. It means a hijacked admin session cannot rewrite your theme's PHP from the dashboard, which is the usual first move after a credential compromise.
- Move your salts and keys. If wp-config.php still has the placeholder authentication keys, generate real ones from the WordPress salt generator. This invalidates any stolen session cookies as a side effect.
- Check file permissions. Directories 755, files 644, wp-config.php 640 or 600 if your host allows it. Nothing should be 777 — that is a fix someone applied to make an upload work and never reverted.
- Block PHP execution in wp-content/uploads. Nothing legitimate in your uploads folder needs to run as code. If an attacker gets a file in there, this is what stops it becoming a shell.
- Decide about XML-RPC. If you do not use the WordPress mobile app, Jetpack or a remote publishing tool, disable xmlrpc.php. It allows many credential attempts per request, which makes it a favourite for brute-forcing.
- Protect the REST API's user endpoint if you do not need it public — it lists usernames to anyone who asks.
- Remove the version number from your page source and headers. On its own this is cosmetic; it matters because automated scans select targets by version banner. Keep patching regardless.
- Set your security headers. HSTS, nosniff, clickjacking protection, Referrer-Policy, Permissions-Policy, and eventually a Content-Security-Policy. Most of this belongs in your web server or CDN rather than a plugin.
Backups, which are the only control that always works
Every other item on this list reduces the chance of an incident. Backups determine what an incident costs you. A backup plan is adequate when all four of these are true:
- Files and database together, taken at the same time. A database restored against mismatched files is its own outage.
- Stored somewhere else. A backup on the same server is gone in the same event, whether that is a compromise or a hosting failure.
- Versioned, with enough history. Injected code often sits quietly for weeks. If you only keep seven days, your newest backup may already be compromised.
- Tested. Restore to a staging site once and write down how long it took. An untested backup is a hope.
Things not worth your time
Plenty of standard WordPress advice is either obsolete or theatre. Being honest about it leaves you more effort for what matters:
- Changing the login URL. Mildly reduces automated noise in your logs. Does nothing against anyone who looks, and it will not stop a vulnerability being exploited. Fine to do; do not count it as security.
- Changing the database table prefix on an existing site. The benefit is marginal, the migration risk is real, and it does not stop SQL injection.
- Stacking security plugins. Two or three overlapping firewalls slow the site down, fight each other and make diagnosis miserable. One, configured properly, is better.
- Malware scanners as a primary defence. Useful for detection after the fact. They are not prevention, and a clean scan is not evidence of a secure site.
- Hiding that you run WordPress. It is detectable in a dozen ways. Patch instead.
A maintenance rhythm that actually gets followed
A checklist you run once decays. A short routine beats a long one:
- Weekly: apply plugin, theme and core updates. Confirm the latest backup exists and is the size you expect.
- Monthly: read Site Health, review the user list, run a passive security check from outside and compare it with last month.
- Quarterly: restore a backup to staging. Remove plugins nobody uses. Check whether anything you depend on has been abandoned upstream — an unmaintained plugin is a vulnerability with a delayed fuse.
- After any incident anywhere in your stack: rotate credentials, including the ones you are sure are fine.
If you do the weekly item and keep two-factor authentication on your admin accounts, you have eliminated most of the ways small WordPress sites are actually lost. The rest of this list is defence in depth — valuable, but secondary to updating things.