Guide

WordPress security: a practical checklist for 2026

Updates, logins, backups, hosting and what to do after a hack: a plain checklist for keeping a WordPress or WooCommerce site safe.

Written by the 3s-Soft team · reviewed by Jashedul Islam Shaun · Published · Updated

Out-of-date code is a common way in

WordPress core is looked after by a large team and is rarely the weak spot. A common way in is an old plugin or theme with a known flaw, a reused password, or a hosting account nobody has checked in years.

Those three are all things you can control. The rest of this checklist goes through them in the order we would do them on a new project.

Keep core, plugins and themes up to date

Leave automatic minor core updates on, which WordPress does by default. For plugins and themes, set a regular time to update them. Weekly is a sensible rhythm for a small site. If the site takes orders or bookings, test the update on a staging copy first.

  • Delete plugins and themes you do not use. Deactivated code can still be attacked.
  • Replace plugins that have gone a long time without an update or that the author has closed.
  • Download plugins only from WordPress.org or the vendor you paid. Nulled copies of paid plugins often carry malware.

Fix the logins

Automated attacks often guess passwords against the login page. These settings block simple guessing.

  • Give every person their own account with a long, unique password from a password manager.
  • Turn on two-factor authentication for every administrator and shop manager.
  • Do not use "admin" as a username, and give each person the lowest role that lets them do their job.
  • Limit login attempts, or put the login page behind a challenge, so repeated guesses are blocked.
  • Remove the accounts of people who have left.

Keep backups, and test one

A backup you have never restored is a hope, not a plan. Store backups away from the web server, keep several dates, and restore one onto a staging site at least once so you know how long it takes and what is missing.

For a WooCommerce shop, back up the database often, because orders arrive all day. Files change much less.

Harden the hosting and the configuration

A few settings in wp-config.php and on the server are worth checking on every site.

  • Serve the whole site over HTTPS and redirect plain HTTP to it.
  • Run a PHP version that still receives security fixes. Your host usually has a switch for it.
  • Add define( 'DISALLOW_FILE_EDIT', true ); to wp-config.php so a stolen admin login cannot edit theme or plugin code from the dashboard.
  • Use correct file permissions and keep wp-config.php out of reach of other users on the server.
  • Choose a host that keeps accounts isolated from each other and takes server-level backups.

Watch for changes

A security plugin or hosting scanner that compares your files with the originals will tell you when something changes that should not. Add an uptime check and an email alert for new administrator accounts. Early warning matters more than any single setting.

If the site is already hacked

Work through the cleanup in order, and do not skip the last step.

  • Take a copy of the current state for evidence, then put the site in maintenance mode.
  • Change every password: WordPress users, hosting, database, FTP or SSH, and the email tied to the site.
  • Replace WordPress core, plugins and themes with fresh copies. Look through the uploads folder for PHP files, which should not be there.
  • Remove unknown administrator accounts and scheduled tasks.
  • Find out how they got in before you reopen the site, or it will happen again.

Want help with this on your site?

Start with a free website audit, a WhatsApp message or a 15-min call. A fixed quote comes after the call, before any work starts.

WhatsAppBook a 15-min call