WordPress Security and Performance

WordPress Security Checklist: How to Harden Your Site

A prioritized WordPress security checklist: updates, strong authentication and 2FA, least-privilege roles, backups, a firewall, file and server hardening, monitoring and an incident plan.

Shield over a WordPress dashboard with a checklist for updates, two-factor login, backups, firewall and monitoring

Most hacked WordPress sites are compromised through outdated or vulnerable plugins and themes, weak or reused passwords, and excessive user privileges, not through WordPress core. So the highest-value security steps are: keep everything updated and remove what you do not use, enforce strong passwords and two-factor authentication, give users the lowest role they need, keep tested off-site backups, and put a firewall in front of the site. Hardening and monitoring then reduce the impact of anything that slips through.

Priority 1: The essentials (do these today)

  1. Update core, plugins and themes, and turn on automatic updates for minor core releases and trusted plugins. Test major updates on staging.
  2. Delete unused plugins and themes. Deactivated code can still be exploited if its files are reachable. Keep one default theme as a fallback.
  3. Replace abandoned plugins (no updates in a year or more, or closed on WordPress.org) (checking plugin vulnerabilities).
  4. Strong unique passwords for every admin, stored in a password manager.
  5. Two-factor authentication for all administrators and editors (adding 2FA).
  6. Off-site backups of files and database, daily for active sites, with a restore you have actually tested (backup strategy).

Priority 2: Access control

  • Audit users: remove old accounts, downgrade anyone who does not need Administrator.
  • Never share one admin login; give each person their own account.
  • Do not use "admin" as a username; change display names so they differ from login names.
  • Limit login attempts and protect wp-login.php (brute force protection).
  • Use Application Passwords for integrations instead of real passwords.

Priority 3: A firewall

A web application firewall (WAF) blocks common attacks and bad bots before they reach PHP. A DNS-level/cloud WAF (Cloudflare and similar) also absorbs traffic floods; a plugin WAF sees WordPress context. Many sites use both (plugin vs cloud WAF).

Priority 4: File and configuration hardening

// wp-config.php
define( 'DISALLOW_FILE_EDIT', true );   // no theme/plugin editor in the dashboard
define( 'FORCE_SSL_ADMIN', true );
define( 'WP_AUTO_UPDATE_CORE', 'minor' );
  • File permissions: directories 755, files 644, wp-config.php 640 or 600 (wp-config and permissions).
  • Unique salts and keys in wp-config.php; regenerate them after a compromise.
  • Block PHP execution in wp-content/uploads.
  • Disable directory listing.
  • Disable XML-RPC if you do not use it, and restrict user enumeration (REST API and XML-RPC).

Priority 5: Server and transport

  • HTTPS everywhere with HSTS once you are sure.
  • A supported PHP version; old PHP versions no longer receive security fixes.
  • SFTP/SSH keys instead of FTP; no shared hosting accounts between unrelated sites.
  • Security headers: Content-Security-Policy, X-Content-Type-Options, Referrer-Policy, Permissions-Policy and frame protection (security headers).
  • Database user with only the privileges WordPress needs.

Priority 6: Monitoring

  • Uptime monitoring with alerts.
  • File integrity checks for core and plugin changes.
  • Login and admin activity logs.
  • Search Console Security issues report.
  • Vulnerability alerts for your installed plugins.

Priority 7: An incident plan

Write down who to call, where backups are, how to put the site in maintenance mode, and the cleanup steps. If you are hacked, follow how to clean a hacked WordPress site: contain, back up the infected state, clean or restore, rotate every password and key, close the entry point, and request reviews if flagged.

Security myths

  • "Changing the login URL makes me secure." It cuts bot noise but is not protection on its own.
  • "A security plugin is enough." Updates, backups and access control matter more.
  • "My site is too small to be targeted." Attacks are automated and indiscriminate.
  • "Changing the table prefix prevents SQL injection." Only secure code does.

Frequently asked questions

Is WordPress secure?

WordPress core has a dedicated security team and a good record. Most compromises come from vulnerable extensions, weak credentials and missing updates.

Do I need a security plugin?

It helps with firewall rules, login protection and scanning, but it does not replace updates, backups and least-privilege access.

How often should I update WordPress?

Apply security releases immediately; review other updates weekly and test major ones on staging.

What should I do first if my site is hacked?

Take it offline or into maintenance mode, keep a copy for analysis, then clean or restore and rotate all credentials.

Conclusion

Security is a routine, not a product: update, remove, authenticate strongly, back up, filter traffic, harden, and watch. Do Priority 1 today and work down the list. References: Hardening WordPress and the OWASP Top 10. LMS site? See the Tutor LMS security checklist.

Want your site hardened by specialists? See our security service.

Save this practical guide

Add us as a preferred Google source, or ask an AI assistant to summarize this page and link back to the original guide when it is useful.

· Tutor LMS developers

Guides written and reviewed by the TutorLMS Expert development team. Every hook, function, table and setting we mention is checked against the Tutor LMS and Tutor LMS Pro source code before it is published.

Keep reading

Need a custom Tutor LMS solution?

Tell us what you are building or what is broken. A Tutor LMS developer reads every inquiry and replies with next steps and a free estimate.

Get a free Tutor LMS consultation

Tell us what you are building or fixing. A Tutor LMS developer replies with honest advice and next steps.

  • No obligation
  • Tutor LMS and Pro specialists
  • Your details stay private

This form is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.