Codiffy (codiffy.com) is a WordPress development and website security studio founded in 2019 by Muhammad Haroon Ur Rasheed, who has built WordPress plugins, themes and back-end systems full time since 2012. Codiffy cleans hacked WordPress sites and sets up the protection that stops the next attack, so this checklist comes from real cleanups, not theory.
To secure a WordPress site, work through four groups of habits: strong, limited logins; fast updates; a tidy, locked-down server; and tested backups with monitoring. This checklist has 20 steps in five groups, each with one line on why it matters and how to do it. Most take minutes. If the site is already hacked, jump to the last group.
Want us to do it for you? Codiffy sets this up as part of security hardening and keeps it up with WordPress maintenance. Care plans run $30 to $60 per site a month. Call +1 (347) 474-0387 or email haroon@codiffy.com. If your site is hacked right now, we respond within 15 minutes, 24/7.
The five groups
- Logins and users: who can get in.
- Updates: closing known holes.
- Hosting and files: what is on the server.
- Backups and monitoring: knowing and recovering.
- After a hack: the two steps people skip.
1. Logins and users (steps 1 to 5)
- Step 1. Use a strong, unique password for every account. One reused password opens every site that shares it. Use a password manager and long random passwords; WordPress’s own hardening guide warns against short, numeric-only or letter-only passwords.
- Step 2. Turn on two-factor login for every admin. A stolen password then does nothing alone. Use a free authenticator plugin and require it for administrators and shop managers. At one Canadian client we set it up for every admin as part of a lockdown after a cleanup.
- Step 3. Limit login attempts. Bots guess passwords all day. Cap failed tries per IP address, with a security plugin or your host’s firewall.
- Step 4. Give each person the lowest role that works. An editor does not need to be an administrator. Review the Users list every month and delete accounts you do not know.
- Step 5. Check for hidden admin powers. Attackers give ordinary customer accounts administrator powers, so they still look like customers in the Users list and survive a password reset. Guardian found exactly this at In Order to Succeed. Look for it with
wp user list --role=administratorin the terminal, and ask your developer to check user capabilities, not only roles. Also avoidadminas a username.
2. Updates (steps 6 to 9)
- Step 6. Keep WordPress core updated. WordPress states that older versions do not get security updates. Turn on automatic minor updates and apply major ones after a backup.
- Step 7. Update plugins and themes quickly, and test first. Most hacks use a known hole in an old plugin. On a store, test updates on a staging copy so a fix does not break checkout.
- Step 8. Delete plugins and themes you do not use. An inactive plugin can still be attacked. WordPress’s hardening guide says to delete a plugin you are not using. At BenchmarkTitle.net a compromised Hello Dolly plugin reinfected the site months after a first cleanup, so the quiet plugin is the dangerous one.
- Step 9. Remove risky plugins and replace abandoned ones. If a plugin has not been updated in years, find another. Be extra careful with file manager plugins. At In Order to Succeed the way in was a backdoor uploaded through the WP File Manager plugin, and it stayed open for years. Only install code from sources you trust, and never from a “nulled” (pirated) download.
3. Hosting and files (steps 10 to 14)
- Step 10. Run a supported PHP version. Old PHP stops getting security fixes. Check php.net’s supported versions page: as of this writing PHP 8.1 and older are unsupported. In Order to Succeed went from PHP 7.3 to 8.3, and a Canadian tour company from PHP 7 to 8.2, as part of their cleanups. Ask your host to switch, then test the site.
- Step 11. Use HTTPS everywhere, including wp-admin. It protects passwords and customer details in transit. Install an SSL certificate (many hosts include one) and make sure the whole site redirects to the secure version.
- Step 12. Lock the files. Set folders to 755 and files to 644, as WordPress’s hardening guide suggests, and make
wp-config.phpstricter (400 or 440). Adddefine( 'DISALLOW_FILE_EDIT', true );towp-config.phpso no one can edit code from the dashboard. WordPress notes this does not stop an attacker who can upload files, so it is a layer, not a cure. - Step 13. Keep one site per hosting account where you can. At one Canadian tour company we cleaned, the pop-ups came back because the sister site on the same server was infected too. Separate accounts keep one infection from spreading.
- Step 14. Block PHP files in the uploads folder. The uploads folder should hold images and documents, never code. Ask your developer or host to stop PHP from running there. Then a file that slips in cannot execute.
4. Backups and monitoring (steps 15 to 18)
- Step 15. Keep automatic backups off the server. A backup stored next to the site goes down with it. Keep at least 30 days of copies, and never leave backup files inside the public web folder, because the web server hands them out as downloads.
- Step 16. Test a restore. A backup you never tried is a guess. Restore onto a staging copy at least twice a year and check the site works.
- Step 17. Scan the site for changes. Scans look at files, admin accounts, scheduled tasks and the scripts on your pages. Codiffy uses Guardian Shield Lite, its own security plugin, included with its security and maintenance services (it is not sold as a download). At In Order to Succeed it found a hidden backdoor that had been in a theme file for ten months.
- Step 18. Get alerts, and read them. A scan nobody reads is useless. Send alerts to a monitored inbox, and set a reminder to check Google Search Console for Security issues, where spam is often found first.
5. After a hack (steps 19 and 20)
- Step 19. Find and close the way in before you call it done. Cleaning without closing the entry point means the malware comes back. After a cleanup, change every password, replace the security keys in
wp-config.php, update everything and remove what was abused. A restored backup is not proof: at In Order to Succeed a host restored a 30-day-old backup, the scan looked clean, and the way in was still open. - Step 20. Keep watching for at least two weeks. Reinfection often shows up days later. After cleaning two sister companies’ sites, we monitored both for 10 days, and one last flare-up on 1 November 2023 traced back to the same plugin. Fix it the same day, and check that Google shows no warning.
If you are already in trouble, read what to do if your website is hacked and how to fix a hacked WordPress site.
What the old advice got right
Our earlier post on this topic covered the basics, and they still hold: strong passwords and two-factor login, limiting login attempts, user roles, SSL, backups and recovery, regular audits and checks of third-party plugins and themes. This checklist keeps those and adds the lessons above.
Where to start if 20 steps feels like too many
Do these five first. They stop most attacks:
- Turn on two-factor login (step 2).
- Update everything and delete unused plugins (steps 6 to 8).
- Check the Users list for admins you do not know (steps 4 and 5).
- Set up off-server backups (step 15).
- Check your PHP version (step 10).
When to call a developer
Call for help if:
- You see admin users, redirects or spam pages you did not create.
- Your host or Google warns you about malware.
- You cannot update a plugin without breaking the site.
- You have never tested a restore.
Codiffy cleans hacked WordPress and WooCommerce sites 24/7, from $200, usually $200 to $400. If the malware returns, we clean it again free. A WordPress care plan is $30 to $60 per site a month and includes tested updates, backups and Guardian Shield Lite. Call +1 (347) 474-0387 or email haroon@codiffy.com. See security hardening
Frequently asked questions
What is the most important WordPress security step?
Updates and two-factor login stop the most attacks. Most hacks use a known hole in an old plugin or a stolen password, and these two close both.
Do I need a security plugin?
A security plugin adds scanning, alerts and login limits. It does not replace updates, backups or good passwords. Pick one that is actively maintained and read its alerts.
How often should I check my WordPress security?
Update weekly, review users and Search Console every month, and test a backup restore twice a year. If you would rather not, a maintenance plan does it for you.
How do I know if my WordPress site is hacked?
Common signs are redirects, spam pages in Google, unknown admin users, a Google warning or a “critical error.” See our guide to what to do if your website is hacked.
Is WordPress itself secure?
WordPress core is maintained and patched. Most breaches come from old plugins and themes, weak passwords and outdated servers, which this checklist covers.
About the author
Muhammad Haroon Ur Rasheed founded Codiffy in 2019. He has been a full-time WordPress and back-end developer since 2012 and has fixed broken, slow and hacked WordPress and WooCommerce sites for businesses across the United States and Canada. Codiffy works from Rawalpindi, Pakistan, in US and Canadian business hours.

