Wordpress security plugin

Summarize this post with AI ChatGPT OR

WordPress Security Plugin Checklist After PHP2Shell

A WordPress security plugin is the fastest single upgrade you can make to a WordPress site, and after PHP2Shell it is no longer optional. In October 2026, the PHP2Shell flaw and the CVE-2026-115560 PHP remote code execution vulnerability showed how quickly a server-side flaw becomes a WordPress problem: a bug in the language your site runs on can hand an attacker the keys to every site on the server, including sites whose owners did nothing wrong that week. You cannot patch PHP yourself on shared hosting, and you cannot rewrite WordPress core. What you can do is put a security plugin in front of the site, close the doors attackers actually walk through, and make sure that when something does go wrong you find out in minutes and recover in hours instead of weeks.

This guide is a 15-step checklist. It starts with the boring work that stops most attacks — updates, passwords, and two-factor authentication — then installs and configures a WordPress security plugin properly, then hardens the parts of WordPress that plugins do not touch: the PHP version, the uploads folder, wp-config.php, file permissions, and security headers. Every step tells you what to do, where to do it, and how to check that it worked. Work through the steps in order. The first five take about an hour and remove the large majority of the risk; the rest turn a site that is merely updated into a site that is genuinely hard to break into and quick to recover.

One thing this checklist is not: a promise that your site can never be hacked. No checklist can promise that, and any plugin that claims to is selling you something. Security is a set of layers, and the goal is to make your site more expensive to attack than the next site on the same server, while making sure an attack that does succeed is caught early and reversed cleanly. That is an achievable goal, and these 15 steps get you there.

Quick Takeaways

  • A WordPress security plugin is step 3 of this checklist, not the whole checklist: updates, passwords, and two-factor authentication come first, and hardening comes after.
  • PHP2Shell proved that a flaw below WordPress can still compromise a WordPress site, so server-level defences — PHP version, file permissions, blocked uploads — matter as much as anything inside WordPress.
  • The three free security plugins worth installing are Wordfence, Solid Security, and Sucuri: pick one, configure it fully, and never run two at once.
  • The most dangerous settings on a typical site are an old PHP version, PHP execution allowed in the uploads folder, a wp-config.php that can be edited from the dashboard, and files set to 777.
  • Backups only count if they are stored off the server and you have tested restoring one: an untested backup is a hope, not a plan.
  • Work the steps in order and verify each one as you go: a checklist you rush through without checking is worse than no checklist, because it feels like protection you do not have.

What PHP2Shell Changed for WordPress Owners

Before October 2026, most WordPress security advice treated the server as someone else’s problem. Your host kept PHP patched, you kept WordPress patched, and the two halves rarely met. PHP2Shell ended that separation. It was a remote code execution flaw in PHP itself, disclosed in October 2026, and it affected the language every WordPress site runs on. A site could have had every plugin up to date and still been exposed, because the vulnerable code was not in WordPress at all. The site’s own write-up of the flaw covers the affected versions and the fix, and the companion write-up of CVE-2026-115560 covers the related PHP remote code execution vulnerability from the same month. Read both if you have not already: they are the reason this checklist exists, and they explain why several steps below live on the server rather than in the WordPress dashboard.

The practical lesson is simple. A WordPress site has three layers — the server and PHP, WordPress core with its themes and plugins, and your accounts — and an attacker only needs one weak layer. Most site owners only ever look at the middle layer. This checklist covers all three, in the order that stops the most attacks for the least effort: accounts first, because stolen passwords are still the most common way in; then the WordPress layer, because that is where a security plugin does its best work; then the server layer, because that is where PHP2Shell lived and where the next PHP flaw will live too.

There is also a timing lesson. When a flaw like PHP2Shell is disclosed, the window between disclosure and mass exploitation is measured in days, sometimes hours. The sites that survive are the ones that were already patched and already hardened before the disclosure, not the ones that scrambled afterwards. You cannot predict the next disclosure, but you can be the site that is already ready for it. That is what the next 15 steps do.

The 15 Steps at a Glance

StepActionWhereTime
1Update WordPress core, themes, and pluginsDashboard, Updates10 minutes
2Check and update your PHP versionHosting panel15 minutes
3Install and configure a WordPress security pluginDashboard, Plugins30 minutes
4Turn on two-factor authenticationSecurity plugin or user profile10 minutes
5Strong unique passwords, remove unused adminsDashboard, Users15 minutes
6Limit login attempts and protect wp-login.phpSecurity plugin, .htaccess10 minutes
7Disable XML-RPC and lock down the REST APISecurity plugin or code snippet5 minutes
8Block PHP execution in the uploads folder.htaccess5 minutes
9Harden wp-config.phpwp-config.php15 minutes
10Fix file and folder permissionsHosting file manager or SSH10 minutes
11Add security headers.htaccess or security plugin10 minutes
12Delete unused themes and pluginsDashboard10 minutes
13Set up daily off-site backups and test a restoreBackup plugin30 minutes
14Turn on file-integrity monitoring and malware scansSecurity plugin10 minutes
15Write down your incident planA document, not a plugin20 minutes

Step 1: Update WordPress Core, Themes, and Plugins

Updates are the least exciting step on this list and the most important. The large majority of hacked WordPress sites are hacked through a known vulnerability in an outdated plugin, theme, or core version — a flaw that already has a fix, sitting uninstalled. Attackers automate this: they scan the internet for sites running a vulnerable version, then run the public exploit against every match. Being one update behind is often enough.

Open Dashboard, then Updates. Install every available WordPress core update, then every theme update, then every plugin update. Do it in that order, and check the site loads correctly after the core update before moving on to themes and plugins. If an update fails, do not ignore it: a plugin that cannot update is a plugin you should replace, because it is either abandoned or incompatible with your WordPress version, and both are security problems on their own.

Turn on automatic updates for minor core releases — WordPress does this by default — and consider enabling auto-updates for plugins you trust, especially security and backup plugins. For themes and plugins you actively use, check the Updates screen weekly. For anything you do not use, step 12 removes it entirely. After updating, visit the front page and one or two key pages to confirm nothing broke, and check the site’s error log if your host provides one.

Check: Dashboard, Updates shows “Everything is up to date” and no plugin or theme is flagged as abandoned or incompatible with your WordPress version.

Step 2: Check and Update Your PHP Version

WordPress runs on PHP, and PHP versions stop receiving security fixes on a fixed schedule. Running an old PHP version means running a language with known, unpatched flaws — exactly the situation PHP2Shell exploited. PHP 8.1 stopped receiving security fixes in November 2025, and PHP 8.2 follows in December 2026. If your site runs either of those, it is living on borrowed time. The safe floor in late 2026 is PHP 8.3 or 8.4.

Find your version in Dashboard, Tools, Site Health, then the Info tab, under Server. If it shows 8.1 or older, update it from your hosting control panel — look for “PHP version”, “Select PHP version”, or “PHP settings” in cPanel, Plesk, or your host’s custom panel. Pick 8.3 or 8.4, then load the site and check the main pages, the contact form, and the checkout or booking flow if you have one. Most well-maintained themes and plugins run fine on 8.3 and 8.4, but an old plugin can break, which is why you test immediately and why step 1 came first.

If your host does not offer PHP 8.3 or newer, that is a reason to change hosts, not a reason to stay on an old version. A host that cannot offer a supported PHP version in late 2026 is not maintaining its servers, and no plugin can compensate for that. If a plugin breaks on the new PHP version, update the plugin first; if no update exists, replace the plugin — an unmaintained plugin on a modern PHP version is a risk you chose, and this checklist is about removing chosen risks.

Check: Site Health, Info, Server shows PHP 8.3 or newer, and the site’s key pages load without errors.

Step 3: Install and Configure a WordPress Security Plugin

This is the step this post is named for, and it is the step most people get wrong in two opposite ways: they install a security plugin and never configure it, or they install two or three of them and let them fight. A WordPress security plugin is a set of tools — a firewall, a malware scanner, login protection, and file monitoring — and it only protects you when it is configured and when it is the only one doing the job. Pick one plugin from the table below, install it, and work through its setup wizard to the end. Then come back to this step once a month and check its dashboard for warnings you have not seen.

PluginFree tier includesBest forWatch out for
Wordfence SecurityEndpoint firewall, malware scanner, login security, two-factor authenticationSites that want the most complete free firewall and the largest threat databaseThe free firewall rules update 30 days after the paid tier; the scanner can be heavy on small shared hosting
Solid Security (formerly iThemes Security)Two-factor authentication, brute-force protection, file change detection, away modeSite owners who want strong login and account hardening with a simple setupThe free version has no malware scanner; pair it with regular manual scans
Sucuri SecuritySecurity activity auditing, file integrity monitoring, malware scanning, hardening optionsSites that want clear audit logs and file-change alerts without a heavy firewallThe free plugin does not include the Sucuri website firewall; that is a separate paid service

Do not install two of these at once. Two firewalls will block each other’s requests, two scanners will double your server load, and two sets of login rules will lock you out of your own site. If you already have two installed, deactivate one now and keep the one whose dashboard you actually understand.

Once installed, configure these four things, whichever plugin you chose. First, turn on the firewall and set it to “enabled and protecting” mode rather than learning mode — learning mode watches traffic without blocking it, which is useful for a week on a new site and useless as a permanent setting. Second, turn on the malware scanner and schedule it to run at least weekly. Third, turn on login protection: limit failed login attempts and lock out the IP address after a small number of failures. Fourth, turn on file change detection, so the plugin alerts you when a core file, theme file, or plugin file changes without your involvement — an unexpected change is often the first sign of a compromise.

Finally, set the plugin to email you its alerts at an address you actually read. A security plugin that detects an attack and tells an inbox nobody checks is a smoke alarm with the battery removed. Check the alerts weekly for the first month, then monthly. If the plugin reports a blocked attack, read what it blocked before dismissing it: the same blocked IP address appearing every day is a pattern worth understanding, not noise to clear.

Check: One security plugin installed and active, firewall in protecting mode, weekly scan scheduled, login protection on, file change detection on, and alert emails arriving at an address you read.

Step 4: Turn On Two-Factor Authentication

A password, however strong, is a single secret, and secrets leak. They leak in data breaches on other sites, in phishing emails, and in malware that records keystrokes. Two-factor authentication fixes this by requiring a second proof that you are who you claim to be — usually a six-digit code from an authenticator app on your phone that changes every 30 seconds. An attacker who steals your password still cannot log in without your phone.

Turn it on for every administrator account first, then for editors and any other role that can publish or change settings. Most security plugins include two-factor authentication in the free tier: Wordfence Login Security offers it as a standalone free plugin, and Solid Security includes it too. If your security plugin does not offer it, install a dedicated two-factor plugin and use a standard authenticator app such as Google Authenticator, Microsoft Authenticator, or Authy. Avoid SMS codes where you can: a code sent by text message can be intercepted if your phone number is hijacked, while an app code never travels over the phone network.

When you set it up, save the backup codes the plugin gives you and store them somewhere safe — a password manager, or printed and kept with your other important documents. Backup codes are your way back in if you lose your phone. Test the login once with two-factor authentication turned on, from a private browser window, before you log out of your current session. If something goes wrong, you are still logged in and can fix it; if you log out first and the setup is broken, you have locked yourself out and will need your host or a database edit to get back in.

Check: Logging in as an administrator asks for a six-digit code from your authenticator app, and backup codes are stored somewhere you can reach them without the phone.

Step 5: Strong Unique Passwords, and Remove Unused Admin Accounts

Every account on your site is a door, and administrator accounts are the widest doors of all. Two habits keep them safe: every account gets a strong password that exists nowhere else, and accounts that nobody uses get deleted.

A strong password is at least 16 characters, generated by a password manager rather than invented by a person. Human-invented passwords follow patterns — a word, a number, a symbol at the end — and attackers know the patterns. A password manager generates a random string and remembers it, so you never have to. Every administrator, editor, and author should have their own account and their own password. Shared accounts are a security problem twice over: you cannot tell who did what, and you cannot revoke one person’s access without changing the password for everyone.

Now audit the user list. Open Dashboard, Users, All Users, and look at every account. Delete any account that belongs to someone who no longer works on the site, any test account created during development, and any account you do not recognise. Before deleting an account, WordPress asks you to attribute its posts to another user — attribute them to yourself or to the current editor. Pay special attention to accounts with the Administrator role: a small site should have one or two administrators at most. A developer who finished their work months ago does not need an administrator account today; if they need access again, create a fresh account then and delete it when the work is done. Also check for the username “admin” itself — it is the first username every automated attack tries, and if it exists, create a new administrator account with a different name, log in as the new account, and delete “admin”.

Check: Every user has a unique 16-plus character password stored in a password manager, no account named “admin” exists, and every administrator account belongs to a person who actively works on the site today.

Step 6: Limit Login Attempts and Protect wp-login.php

WordPress shows the same login page to everyone, and automated attacks exploit that by trying thousands of username and password combinations against wp-login.php, day and night. This is called a brute-force attack, and it succeeds more often than it should, because it only needs one weak password on one account to win. Limiting login attempts breaks the attack’s economics: after a few failures from one IP address, that address is locked out, and the attacker must move on.

Your security plugin handles this — it is the login protection you turned on in step 3 — but verify it is actually configured. Open the plugin’s brute-force settings and confirm that an IP address is locked out after no more than 5 failed attempts, for at least an hour, and that the lockout count is not set to something generous like 20. Also confirm that the plugin blocks login attempts using the username “admin” or other common usernames outright, if it offers that option.

For a stronger layer, restrict wp-login.php by IP address in .htaccess, so only your own IP address can even reach the login page. This is powerful and it has one real cost: if your IP address changes, you lock yourself out. Only use it if your IP address is stable, and keep a note of how to remove the rule through your host’s file manager. The rule below allows one IP address and denies all others; replace the example address with your own, which you can find by searching “what is my IP” in your browser.

# Allow only your IP address to reach the WordPress login page
<Files wp-login.php>
    order deny,allow
    deny from all
    allow from 203.0.113.10
</Files>

If your IP address changes regularly, skip the .htaccess rule and rely on the plugin’s lockout instead — a lockout that works is better than an IP rule that locks you out of your own site on a bad day. Either way, never leave wp-login.php undefended: an unprotected login page is an open invitation, and the invitation is answered constantly.

Check: Five failed logins from one IP address trigger a lockout, and a test login with a wrong password shows the lockout message after the limit is reached.

Step 7: Disable XML-RPC and Lock Down the REST API

XML-RPC is an old WordPress feature that lets external apps publish to your site. It was essential when the WordPress mobile app depended on it; today the app uses the REST API instead, and most sites have no legitimate use for XML-RPC at all. Attackers love it, because it lets them try hundreds of passwords in a single request and because it can be abused to amplify denial-of-service attacks. If you do not use an app or service that specifically needs XML-RPC — and most sites do not — turn it off.

The simplest way is through your security plugin, which usually has a “disable XML-RPC” option in its hardening settings. If your plugin does not offer it, add this line to your theme’s functions.php file through a child theme, or use a code-snippets plugin. Do not edit the parent theme’s functions.php directly: the next theme update will erase your change.

// Disable XML-RPC: no legitimate app on this site needs it
add_filter( 'xmlrpc_enabled', '__return_false' );

The REST API is different: WordPress itself and the block editor need it, so do not disable it entirely. What you should do is restrict what anonymous visitors can see through it. By default, the REST API exposes the list of users on a site, including their usernames, at an address any visitor can open. That hands attackers half of every login attempt — the username — for free. Your security plugin can restrict REST API user enumeration, or you can add a snippet that requires authentication to list users. After making the change, test that the block editor still saves posts normally: if the editor breaks, you restricted too much, and you should roll back to only blocking user enumeration.

Check: Visiting your site’s xmlrpc.php address returns a forbidden or disabled message, and the REST API no longer lists usernames to logged-out visitors, while the block editor still saves posts.

Step 8: Block PHP Execution in the Uploads Folder

The uploads folder is where WordPress stores every image, document, and media file — and it is the folder attackers most want to write a file into. If an attacker can upload a file disguised as an image that is actually PHP code, and the server then runs that code, the attacker owns the site. WordPress tries to prevent this, but plugin and theme vulnerabilities have repeatedly allowed malicious uploads, and PHP2Shell showed what happens next once code runs on the server.

The fix is a single rule in an .htaccess file inside the uploads folder: deny the server permission to execute PHP files there. Images do not need to execute code, so nothing legitimate breaks. Create or edit the file at wp-content/uploads/.htaccess and add these lines. Note that some hosts use nginx instead of Apache, in which case .htaccess does nothing — ask your host how to deny PHP execution in uploads on their setup, and do not skip this step because the file had no effect.

# Never execute PHP files from the uploads folder
<FilesMatch "\.(php|php5|phtml|phar)$">
    Deny from all
</FilesMatch>

Test it after saving. Upload a small image through the Media Library and confirm it displays on a post — that proves legitimate uploads still work. You do not need to test the attack itself; the rule is standard, and your security plugin’s scanner will flag any PHP file that somehow appears in uploads later. While you are here, check whether any PHP file already exists in the uploads folder: open your host’s file manager, look inside wp-content/uploads, and search for files ending in .php. There should be none. If you find one you did not put there, treat the site as compromised and follow your incident plan from step 15.

Check: A .htaccess file exists in wp-content/uploads containing the rule above, images still upload and display normally, and no PHP file exists anywhere inside the uploads folder.

Step 9: Harden wp-config.php

wp-config.php is the most sensitive file in a WordPress installation. It holds the database username and password, the security salts that protect login cookies, and the settings that control debugging and file editing. If an attacker can read it, they can read the database credentials. If they can edit it, they own the site. Three changes make it much harder to exploit.

First, stop WordPress from letting administrators edit plugin and theme files from the dashboard. The built-in file editor is convenient, and it is also a gift to any attacker who gains an administrator account: they can open the editor, paste malicious code into a theme file, and take over the server without ever touching FTP. Add this line to wp-config.php, above the line that says “That is all, stop editing”:

// Disable the plugin and theme file editors in the dashboard
define( 'DISALLOW_FILE_EDIT', true );

Second, make sure debugging is off on the live site. With debugging on, WordPress can display database errors and file paths on public pages, which hands an attacker information about your server. The setting below turns debugging off; if a developer needs it on, it belongs on a staging copy, never on the live site.

// Never show debug output on a live site
define( 'WP_DEBUG', false );

Third, protect the file itself. Set its permissions to 600 or 640 so only the server owner can read it, and add a rule to the .htaccess file in the WordPress root folder that denies web access to it entirely. If your host allows it, move wp-config.php one level above the web root folder — WordPress will still find it there, and a file outside the web root cannot be reached by a browser at all.

# Deny all web access to wp-config.php
<files wp-config.php>
    order allow,deny
    deny from all
</files>

While you are in wp-config.php, check that the security salts are real, long, random strings and not the default placeholder text. If you installed WordPress through your host’s one-click installer, the salts are usually generated correctly, but if you ever copied a wp-config.php from a tutorial, regenerate the salts from the official WordPress salt generator and paste the fresh set in. Changing salts logs out every user, which is a small inconvenience and a useful side effect: it ends any session an attacker may have stolen.

Check: The dashboard no longer shows the plugin and theme editors, wp-config.php is set to 600 or 640, the .htaccess rule denies web access to it, and debugging is off.

Step 10: Fix File and Folder Permissions

File permissions decide who can read, write, and execute each file on your server. The correct settings are boring and specific: folders 755, files 644, wp-config.php 600 or 640. The dangerous setting is 777, which means anyone on the server can write to the file or folder. A surprising number of hacked sites were running folders at 777 because a tutorial once suggested it to fix an upload problem, and nobody ever changed it back.

Check your permissions with your host’s file manager or an FTP client: select the WordPress root folder and look at the numeric permissions. Folders should be 755 and files 644. If you find a folder at 777, change it to 755 and test that the site still works — uploads, image display, and plugin updates. If something breaks at 755, the problem is file ownership, not permissions, and your host’s support team should fix the ownership rather than you opening the permissions back up.

Pay special attention to wp-content/uploads, which must be writable by the server so images can be uploaded, but never needs to be 777: 755 with correct ownership is enough. And never set 777 as a troubleshooting step. If a plugin tells you to set a folder to 777, that plugin is asking you to remove a layer of protection to cover for its own poor design. Find a better plugin.

Check: No file or folder on the site is set to 777; folders are 755, files are 644, and wp-config.php is 600 or 640.

Step 11: Add Security Headers

Security headers are instructions your server sends with every page, telling the browser how to behave. They cost nothing, they break nothing when set correctly, and they close off several classes of attack that WordPress itself does not address. The three that matter most are below, and your security plugin may set some of them for you — check first, so you do not set the same header twice with conflicting values.

The first header, X-Content-Type-Options with the value nosniff, stops the browser from guessing the type of a file. Without it, a browser can be tricked into treating an uploaded image as executable code. The second, X-Frame-Options with the value SAMEORIGIN, stops other sites from loading your pages inside a frame, which is how clickjacking attacks work. The third, Referrer-Policy, controls how much of your page’s address is sent to other sites when a visitor follows a link. A fourth worth adding is Permissions-Policy, which disables browser features your site does not use, such as the microphone and camera.

If your server runs Apache, add these lines to the .htaccess file in the WordPress root folder. If it runs nginx, the same headers go in the server configuration, which usually means asking your host to add them.

# Security headers: stop content sniffing, framing, and referrer leaks
<IfModule mod_headers.c>
    Header set X-Content-Type-Options "nosniff"
    Header set X-Frame-Options "SAMEORIGIN"
    Header set Referrer-Policy "strict-origin-when-cross-origin"
    Header set Permissions-Policy "camera=(), microphone=(), geolocation=()"
</IfModule>

Test after saving: load the site and confirm pages, images, and embedded content still display. If you embed content from another site — a video, a map, a booking widget — and it stops loading, the X-Frame-Options header may be blocking it, and you will need to allow that specific source. Verify the headers are actually being sent by opening your browser’s developer tools, loading a page, and checking the response headers on the network tab. A header that is written in a file but not sent by the server is not protection.

Security headers also include the link attributes on your own content. When you link to another site with target blank, add rel noopener so the linked page cannot reach back into yours through the browser. The site’s guide to rel noopener explains the attribute and shows exactly where it belongs.

Check: The response headers for your home page include X-Content-Type-Options nosniff and X-Frame-Options SAMEORIGIN, and external links that open in a new tab carry rel noopener.

Step 12: Delete Unused Themes and Plugins

Every installed theme and plugin is code that runs — or can be made to run — on your site, whether you use it or not. An unused plugin with a known vulnerability is just as exploitable as an active one, because the vulnerable file is still on the server and still reachable. Deleting what you do not use is the cheapest security improvement on this list.

Open Dashboard, Plugins, and delete every plugin you do not actively use. Deactivate is not enough: a deactivated plugin’s files are still on the server. Delete means delete. Do the same for themes under Appearance, Themes: keep your active theme and one default WordPress theme as a fallback, and delete the rest. If you are unsure whether a plugin is needed, deactivate it for two weeks and watch for complaints or broken features. If nothing breaks, delete it.

Be careful with one case: a plugin you do not use but that holds data you need, such as an old form plugin containing past submissions. Export the data first, then delete the plugin. And keep a note of what you deleted and why, so a future developer does not reinstall the same abandoned plugin to solve a problem you already solved another way.

Check: The Plugins screen lists only plugins the site actively uses, and the Themes screen lists the active theme plus one default fallback theme.

Step 13: Set Up Daily Off-Site Backups and Test a Restore

A backup is the one step on this list that does not prevent an attack — it limits the damage. When a site is compromised, the cleanest recovery is often to restore from a backup taken before the attack, and that only works if the backup exists, is recent, and is stored somewhere the attacker cannot reach. A backup stored on the same server as the site is not a backup: an attacker who owns the server owns the backups too.

Install a backup plugin such as UpdraftPlus, which has a capable free tier, and configure it to back up the database and the files daily, and to send the backups to off-site storage — Google Drive, Dropbox, or another cloud location — automatically. Keep at least 14 days of daily backups, so you can restore to a point before an attack that went unnoticed for a few days. Schedule the backup for a quiet hour, and confirm the first backup completes and appears in your cloud storage.

Then do the part almost nobody does: test the restore. Set up a staging copy of the site — most hosts offer one-click staging — and restore a backup into it. Confirm the staging copy loads, the pages display, and you can log in. A backup you have never restored is a hope, not a plan, and the time to discover it is broken is now, when nothing is wrong, not at 2 a.m. during an incident. Repeat the test every few months, and every time you change backup plugins or storage locations.

Check: A backup completed in the last 24 hours, stored off-site, and a restore has been tested successfully on a staging copy within the last three months.

Step 14: Turn On File-Integrity Monitoring and Malware Scans

Steps 1 to 13 make your site hard to break into. Step 14 makes sure you find out quickly if someone breaks in anyway. Most compromised sites are not discovered by their owners — they are discovered by a visitor who sees spam, by Google flagging the site in search results, or by a customer who received a phishing email that appeared to come from the site. By then the damage is weeks old. Monitoring closes that gap.

File-integrity monitoring watches your WordPress core files, theme files, and plugin files, and alerts you when any of them change. Legitimate changes happen when you update something, and your security plugin knows the difference between an update you ran and a file that changed at 3 a.m. with no update in progress. That unexpected change is often the first sign of a compromise: attackers modify files to keep their access, inject spam links, or redirect visitors. Turn on file change detection in your security plugin — it is the setting from step 3 — and read its alerts instead of dismissing them.

Schedule a full malware scan at least weekly, and run one manually after any update, any new plugin installation, and any alert that mentions a changed file. A scan compares your files against known-good copies and known malware signatures, and it checks the database for injected content that a file scan alone would miss. If a scan finds something, do not just delete the flagged file and move on: a single flagged file is usually one piece of a larger infection, and deleting it without finding the entry point leaves the door open. That is what the incident plan in step 15 is for.

Also set up uptime monitoring, free through your host or a service such as UptimeRobot, so you are told within minutes if the site goes down. A site that goes down without warning is often a site under attack, and knowing early is the difference between a bad hour and a bad week.

Check: File change detection is on, a weekly malware scan is scheduled, scan reports arrive by email, and uptime monitoring alerts you within minutes of an outage.

Step 15: Write Down Your Incident Plan

The worst time to decide what to do about a hacked site is while it is happening. Stress, missing passwords, and an unfamiliar hosting panel turn a recoverable incident into a disaster. An incident plan is a short document you write now, while everything is calm, that tells future-you exactly what to do in the first hour. It takes twenty minutes to write and it is worth more than any single technical step on this list.

Your plan should contain five things. First, the contact details for your host’s support team and the fastest way to reach them — phone, live chat, or ticket — plus your hosting account number and any verification details they will ask for. Second, the location of your backups and the steps to restore one, including the off-site storage login. Third, the login details for your WordPress admin, your hosting panel, and your domain registrar, stored in your password manager and reachable from a second device. Fourth, a list of the people to tell: your host, your clients or readers if their data may be affected, and, if payment data is involved, your payment processor. Fifth, the sequence of actions: take the site offline or into maintenance mode, change every password starting with hosting and WordPress admin, restore from a clean backup or ask your security plugin’s support team to clean the site, then find and close the entry point before bringing the site back.

Store the plan somewhere you can reach it without the site: a document in your cloud drive, printed and kept with your other important papers, or both. Tell one other person where it is. Then, once a year, read it again and update the details that changed. A plan that names a host you left two years ago is not a plan.

Check: A written incident plan exists outside the site itself, it names the host, the backup location, and the first five actions, and one other person knows where to find it.

Common Mistakes That Undo All 15 Steps

MistakeWhy it hurtsThe fix
Installing two security plugins at onceThey block each other, double server load, and can lock you outPick one plugin and configure it fully
Updating WordPress but not the PHP versionA patched site on an unpatched language is still exposedRun PHP 8.3 or newer, checked in Site Health
Storing backups on the same serverAn attacker who owns the server owns the backupsSend backups to off-site storage automatically
Using the username “admin”It is the first username every attack triesCreate a new administrator and delete “admin”
Leaving the file editor enabledA stolen admin login becomes code execution in one clickSet DISALLOW_FILE_EDIT to true in wp-config.php
Setting folders to 777 to fix an upload errorAnyone on the server can now write to that folderFix file ownership with your host, keep 755 and 644
Never testing a restoreAn untested backup may be empty, corrupt, or incompleteRestore to a staging copy every few months
Ignoring security plugin alertsThe plugin detected the attack and nobody actedRoute alerts to an inbox you read, and read them

Frequently Asked Questions

1. Do I need a paid WordPress security plugin, or is the free version enough?

For most small and medium sites, the free version of WordPress security plugin software is enough — if you configure it fully and combine it with the other steps on this list. The free tiers of Wordfence, Solid Security, and Sucuri cover the essentials: a firewall, a malware scanner or file monitoring, login protection, and two-factor authentication. Paid versions add convenience and faster rule updates, not a different kind of protection. Spend money first on a good host and tested off-site backups, and only then on a premium security plugin.

2. Will a WordPress security plugin slow down my site?

A configured security plugin adds a small amount of load to every request, because it inspects traffic before WordPress serves the page. On a normal site the difference is not noticeable. What does slow a site down is running two security plugins at once, running a scanner on every page load instead of on a schedule, or running on a host that is already overloaded. If your site feels slow after installing a plugin, check the plugin’s settings first — scheduled scans and a firewall in protecting mode are the correct setup — and check with your host whether the server is the bottleneck.

3. How does PHP2Shell affect my site if I keep WordPress updated?

PHP2Shell was a flaw in PHP itself, not in WordPress, so updating WordPress alone did not protect a site from it. The fix had to come from the PHP version running on the server, which is why step 2 of this checklist exists. Keeping WordPress updated protects you from WordPress flaws; keeping PHP updated protects you from PHP flaws. You need both, and on shared hosting the PHP update happens in your hosting panel or by asking your host, not in the WordPress dashboard. The site’s PHP2Shell write-up lists the affected versions, and the CVE-2026-115560 write-up covers the related PHP remote code execution flaw from the same month.

4. Can I secure WordPress without a security plugin?

You can do most of this checklist without a plugin — updates, passwords, two-factor authentication through a dedicated plugin, .htaccess rules, wp-config.php hardening, permissions, headers, and backups all work on their own. What a security plugin adds is the firewall, the malware scanner, and the file-integrity monitoring in one place, plus alerting that ties them together. Doing those three things by hand means checking logs and comparing files yourself, which almost nobody sustains. The plugin is worth it for the monitoring alone.

5. My site was hacked. Should I restore a backup or clean the files?

Restore from a backup taken before the attack if you have one, and only if you are confident about when the attack happened — restoring a backup that already contains the infection just restores the infection. After restoring, change every password, update everything, and find the entry point before the site goes live again. If you have no clean backup, or you cannot tell when the attack happened, ask your host or a professional cleanup service to remove the infection, then rebuild the affected parts from known-good copies. Do not just delete the files the scanner flagged and assume the site is clean: attackers hide backdoors in more than one place.

Conclusion

WordPress security is not a product you buy once. It is a routine: update, check, scan, back up, repeat. The 15 steps in this checklist turn that routine into something you can actually follow — a WordPress security plugin configured properly, accounts protected by two-factor authentication and unique passwords, the PHP version current, the uploads folder closed to code execution, wp-config.php locked down, permissions correct, headers set, unused code deleted, backups stored off-site and tested, monitoring switched on, and a written plan for the day something goes wrong anyway.

Start with steps 1 to 5 today. They take about an hour, and they remove the large majority of the risk. Then work through the rest over the next few days, one step at a time, verifying each one as you go. When you finish, set a monthly reminder to repeat the quick version: check for updates, read the security plugin’s alerts, confirm the latest backup completed, and glance at the user list. A site that is checked monthly stays secure; a site that was secured once and forgotten does not.

The next post in this series looks at one of the steps in detail: how to check your PHP version in WordPress and update it safely, including what to do when a plugin breaks on the new version. Until then, your site is measurably harder to break into than it was an hour ago — and that is exactly the point.

Related Articles You’ll Love

No comment

Leave a Reply

Your email address will not be published. Required fields are marked *