A security audit is a structured review of everything that affects your website’s security, from plugin versions to who has admin access. It finds weaknesses before attackers do and produces a clear list of fixes. I run audits when taking over a site, after incidents and periodically for business-critical sites. This is the checklist I follow.
Prepare and back up
Before auditing, take a full backup and gather access to the WordPress admin, hosting panel, SFTP, database and DNS. Note the site’s purpose, who uses it and any integrations, such as payments or CRMs, so you can judge which risks matter most.
Work on a staging copy for any tests that could affect the live site.
Software versions
Check WordPress core, PHP and database versions against current supported releases. Outdated versions miss security fixes. Site Health under Tools shows versions and warnings.
Plan upgrades for anything outdated, testing on staging first. See upgrading PHP.
- 1Back up and accessStaging for tests
- 2Software and pluginsVersions, vulnerabilities
- 3Users and loginsRoles, 2FA
- 4Files and databaseMalware, config
- 5Prioritise fixesCritical first
Plugins and themes
List every plugin and theme, active and inactive, with versions, last update dates and sources. Check them against vulnerability databases, flag abandoned or closed plugins and look for nulled premium products.
Remove unused items and replace risky ones. See plugin vulnerabilities and nulled themes and plugins.
Users and roles
Review every user account: who it belongs to, its role and when it last logged in. Remove former staff and contractors, downgrade excessive roles and look for unknown administrators. Check that public registration is off unless needed.
See WordPress user roles.
Login security
Check whether 2FA is enabled for privileged users, login attempts are limited, the admin username is not used and XML-RPC is disabled if unused. Test password reset and lockout behaviour.
See securing WordPress logins and XML-RPC security.
Malware and file integrity
Run a server-side malware scan and verify core file checksums. Check the uploads folder for PHP files, the root folder for unknown files and wp-config.php and .htaccess for injected code.
See scanning WordPress for malware.
Configuration
Review wp-config.php: unique security keys, debugging disabled on live, DISALLOW_FILE_EDIT set and a non-default table prefix. Check file permissions and ownership. Confirm directory listing is disabled.
See WordPress file permissions.
Database
Check database user privileges, remote access settings and for injected content or suspicious options. Review the size of old logs and leftover tables from removed plugins.
See WordPress database security.
HTTPS and headers
Confirm HTTPS works on every page, with a valid certificate, correct redirects and no mixed content. Check security headers with an online scanner and plan improvements.
See setting up SSL and HTTPS and HTTP security headers.
Hosting and network
Review hosting security features, firewall coverage, DDoS protection and whether the origin server is exposed when using a CDN. Check hosting, registrar and DNS accounts for 2FA and correct ownership.
See do you need a WAF and website ownership checklist.
Backups and recovery
Confirm backups run, include files and database, are stored off-site and can be restored. Check retention and who has access to backup storage. Test a restore if one has not been done recently.
See a backup strategy that works.
Logging and monitoring
Check whether an activity log, uptime monitoring and security alerts are in place, and who receives alerts. Review recent logs for unusual activity.
Prioritise the findings
Group findings by risk: critical issues such as known vulnerabilities or unknown admins to fix immediately, important issues such as missing 2FA to fix within days, and improvements such as headers to plan. Assign owners and dates.
Re-audit after fixes and schedule the next review, usually every six to twelve months.
Check forms, uploads and integrations
Review every form on the site: what data it collects, where submissions are stored, who receives them and whether spam protection is in place. Check whether file uploads are allowed and how they are restricted. Forms are a common route for abuse.
Check integrations such as CRMs, email marketing tools and payment gateways: which API keys are stored, who has access and whether keys can be rotated. Remove keys for services you no longer use. See stopping form spam.
Check third-party scripts
List every external script loaded on the site, such as analytics, chat, advertising and embedded widgets. Each runs with the same access as your own code in visitors’ browsers, so a compromised script can steal data or inject content.
Remove scripts you do not need, load others only where necessary and consider a Content Security Policy to limit where scripts can come from. See third-party scripts.
Getting help
I run WordPress security audits with a clear, prioritised report and can implement the fixes through my website protection service. For the measures behind the audit, see my security hardening checklist.
If the audit finds an active infection, follow what to do when your WordPress site is hacked.
Key takeaways
- Audit software versions, plugins, users, files, database and hosting.
- Look for unknown admins, nulled plugins and abandoned software first.
- Confirm backups restore and monitoring alerts reach the right people.
- Prioritise findings by risk and re-audit periodically.
Frequently asked questions
How often should I audit WordPress security?
Every six to twelve months, and after incidents or major changes.
Can I audit my own site?
Yes, with this checklist. An independent review often finds things owners miss.
How long does a security audit take?
A few hours for a small site, longer for complex stores and custom builds.
Will an audit affect my live site?
Most checks are read-only. Run intrusive tests on staging.
What tools help with an audit?
Security plugins, WP-CLI, SSL Labs, header scanners and Search Console.
What happens after the audit?
Fix issues in order of risk, then schedule the next review.
Should an audit include a penetration test?
Not for most small sites. Penetration tests suit larger or high-risk sites with custom code.
What is the most common audit finding?
Outdated or abandoned plugins, followed by too many administrator accounts and missing 2FA.
