WordPress itself is a mature, regularly updated platform. Most hacked sites share the same story: outdated plugins, weak passwords, no backups and nobody watching. This checklist covers the steps that prevent most common problems. For each step you will see why it matters and exactly how to do it. It follows the official Hardening WordPress guidance, which I link to throughout so you can read the source yourself.
No checklist makes a site unhackable. The goal is to close the easy doors, limit the damage if something goes wrong, and recover quickly.
If you only have 30 minutes
Do these five first, in this order. They remove the most common causes of hacks.
- Take a fresh backup of files and database (step 13).
- Update WordPress, plugins and themes (step 1).
- Delete plugins and themes you do not use (step 2).
- Turn on two-step authentication for every administrator (step 6).
- Remove old user accounts and give everyone the lowest role they need (step 8).
Updates and software
1. Keep WordPress core, themes and plugins updated
Why it matters: WordPress’s hardening guide notes that older versions are not maintained with security updates, and attackers commonly look for known flaws in outdated plugins. An update is often the fix for exactly the hole being exploited.
How to do it: Open Dashboard > Updates at least weekly. WordPress applies minor and security releases of core automatically on sites that support it, but major releases, plugins and themes may need you to act, depending on your settings (Updating WordPress). Take a backup, update, then check your key pages, contact form and checkout. On a busy store, test updates on a staging copy first.

2. Delete unused plugins and themes
Why it matters: Every installed plugin is code that can contain a vulnerability. Deactivated code still sits on the server and can still be attacked.
How to do it: Go to Plugins > Installed Plugins, deactivate what you no longer use, then delete it. Do the same under Appearance > Themes, keeping only your active theme and one default theme as a fallback.
3. Install software only from trusted sources
Why it matters: “Nulled” (pirated) premium themes and plugins commonly hide malware, and abandoned plugins stop receiving security fixes.
How to do it: Use the WordPress.org directory or the developer’s official site. Before installing, check when the plugin was last updated, how many sites use it and what recent reviews say.
4. Run a current PHP version
Why it matters: WordPress.org currently recommends PHP 8.3 or greater, and notes that PHP 7.4 and MySQL 5.5.5 still work but are end-of-life and may expose your site to vulnerabilities (requirements).
How to do it: Check the PHP version in your hosting panel or under Tools > Site Health > Info. Take a backup, switch to the newer version, and test the site. If something breaks, switch back and update or replace the plugin that caused it.
Logins and users
5. Use strong, unique passwords
Why it matters: Reused or guessable passwords are the easiest way in. The hardening guide advises avoiding names, dictionary words and short or single-type passwords.
How to do it: Use a password manager to generate a long, random password for each account. In WordPress, open Users > Profile and use the generated password. Change passwords for hosting, SFTP and email too, not only WordPress.
6. Turn on two-step authentication (2FA)
Why it matters: A stolen password alone is no longer enough to log in. WordPress’s guide recommends app-based or plugin-based methods and notes SMS is not a secure channel (Two Step Authentication).
How to do it: Install a two-factor plugin (the guide lists Duo, Google Authenticator, Rublon, Two-Factor and Wordfence among the options), scan the setup QR code with an authenticator app, and save the backup codes somewhere safe. Require it for all administrators and editors. Many security plugins, such as All-In-One Security, also include it.
7. Limit login attempts
Why it matters: Bots try thousands of password guesses. Locking out repeated failures makes brute-force attacks impractical.
How to do it: Enable login lockout in your security plugin or ask your host whether it limits attempts at server level. Set a sensible limit, for example a temporary lockout after several failed tries, and whitelist your own IP only if you have a fixed address, so you do not lock yourself out.
8. Give each person their own account with the lowest role they need
Why it matters: Shared logins make it impossible to tell who did what, and every extra administrator is another account an attacker can target. Former developers and staff are a common blind spot.
How to do it: Review Users > All Users. Remove anyone who no longer needs access, and use Editor, Author or Contributor roles for people who only write content. The hardening guide also suggests not leaving the default “admin” username in use: create a new administrator with a different name, log in with it, then delete the old account and assign its content to the new one.
Hosting and configuration
9. Choose reputable hosting
Why it matters: Hosting is one of the few things you cannot fix with a plugin. A weak server can undermine every other step.
How to do it: Ask providers about isolated accounts, a server-level firewall, malware scanning, automatic backups, current PHP versions and how quickly support responds to security incidents. Avoid hosting many unrelated sites in one account, since one infected site can spread to the others.
10. Use HTTPS everywhere
Why it matters: HTTPS encrypts logins, forms and checkout traffic, and WordPress.org lists HTTPS support among its recommendations.
How to do it: Turn on the SSL certificate in your hosting panel, set your WordPress and site addresses to https under Settings > General, redirect http to https, and fix any “mixed content” warnings caused by old http links.
11. Disable file editing in the dashboard
Why it matters: If someone steals an administrator login, the built-in theme and plugin editors let them insert malicious code in seconds.
How to do it: Add this line to wp-config.php:
define( 'DISALLOW_FILE_EDIT', true );
The hardening guide itself warns this “will not prevent an attacker from uploading malicious files”, so treat it as one layer, not a cure. Back up wp-config.php before editing it. The same file holds your security keys; see how to change WordPress security keys and salts.
12. Lock down file permissions
Why it matters: Overly open permissions let other processes or users change your files.
How to do it: The official guide suggests restricting write access as far as practical, with typical permissions of 755 for directories and 644 for files, and keeping wp-config.php readable only by you and the web server. Use your host’s file manager or SFTP client to check. Never set permissions to 777. If you are not comfortable with this, ask your host or developer.
Backups and monitoring
13. Keep automatic, off-site backups of files and database
Why it matters: A good backup turns a disaster into an inconvenience. WordPress’s backup guide says you need both the database and the files to fully restore a typical site, and recommends weekly backups for small sites and daily for high-activity ones (Backups).
How to do it: Use a backup plugin or your host’s backups to save files and database on a schedule, and send copies to a different place, such as cloud storage. Keep several recent copies, and also back up before every round of updates. UpdraftPlus is one common plugin for scheduled backups to remote storage. Practise a restore on a test copy, because an untested backup is only a hope.
14. Add a firewall or security scanner
Why it matters: A firewall blocks known bad traffic before it reaches WordPress, and a scanner can flag changed or suspicious files.
How to do it: Use your host’s firewall or a security plugin; All-In-One Security, for example, offers a firewall and login protection. For a quick outside view, my WordPress security scanner runs a passive check of public pages and headers. It is a starting point, not a malware scan or a full audit.
15. Monitor uptime and Google Search Console
Why it matters: Hacks are often discovered late. Monitoring shortens the time between a problem and your response.
How to do it: Set up a free uptime monitor with email alerts, add your site to Google Search Console, and open its Security issues report now and then. It reports security problems Google detects on your site and is where you request a review after cleaning.
Quick reference table
| Area | Do this | How often |
|---|---|---|
| Updates | Update core, plugins and themes | Weekly check |
| Accounts | Review users, enforce 2FA | Monthly |
| Backups | Verify a backup exists and restores | Monthly test |
| Cleanup | Remove unused plugins and themes | Quarterly |
| Monitoring | Check Search Console and uptime alerts | Weekly |
Common mistakes
- Installing a security plugin and assuming the job is done.
- Keeping backups only on the same server as the site.
- Leaving old developer or agency accounts active.
- Postponing updates for months because “it works”.
- Using the same password for WordPress, hosting and email.
- Enabling 2FA without saving the backup codes.
Troubleshooting
- The site broke after an update: restore the backup you took before updating, then update items one at a time to find the culprit.
- You are locked out by login protection: wait for the lockout to expire, or ask your host to disable the plugin by renaming its folder over SFTP.
- You lost your 2FA device: use a saved backup code. If you have none, your host can help by temporarily disabling the two-factor plugin.
- You suspect the site is already hacked: follow my hacked site recovery guide before changing anything.
Frequently asked questions
Is WordPress secure?
WordPress core is actively maintained, but a site is only as secure as its plugins, themes, passwords and hosting. Most problems come from outdated or untrusted add-ons and weak access control.
Do I need a security plugin?
It can help with scanning, firewalling and login protection, but it does not replace updates, backups, strong passwords and good hosting.
How often should I check my site’s security?
Check updates and monitoring weekly, and review users and backups monthly. Use the table above as a routine.
What should I do if my site is already hacked?
Follow a structured recovery process. I explain one in My WordPress site was hacked: what now?
Next step
Ongoing care keeps this list from slipping. See what WordPress maintenance includes, or request a free website audit if you are unsure where your site stands.
Written by Bilal Haider, WordPress designer and developer. Last updated: November 23, 2026.
