
How WordPress Sites Actually Get Hacked (and How to Prevent It)
Most business owners imagine a hacker choosing their website and attacking it. That is almost never what happens. Understanding the real mechanism matters, because it changes what you should actually do about it.
Nobody targeted you
The overwhelming majority of compromised websites are found by automated scanners, not chosen by people. Bots crawl the web continuously, testing sites for known weaknesses, and when they find one they exploit it automatically.
This has an important consequence. “We are too small to be a target” is not protection, because there is no targeting involved. Small sites are compromised constantly, precisely because they are more likely to be running outdated software.
The second consequence is subtler. When a vulnerability is discovered and patched, the details become public. That publication tells every scanner operator exactly what to look for. An unpatched site therefore becomes easier to find as time passes, not safer. Delay works against you.
Route one: outdated plugins and themes
This is the leading cause by a wide margin.
Sites accumulate plugins over years. Some are abandoned by their developers, some are premium plugins whose licences lapsed and no longer receive updates, and some are simply never updated because nobody owns the task.
What to do:
- Update regularly, ideally on a schedule rather than when you remember.
- Delete what you do not use. This is the point most people miss: a deactivated plugin still sits on your server and can still be exploited. Deactivating is not removing.
- Check whether plugins are still maintained. A plugin untouched for two years is a liability regardless of how well it works.
- Keep premium licences current, since expired licences usually stop security updates while the plugin keeps running.
When we audit sites, we routinely find inactive plugins nobody remembers installing. Each is an unnecessary door.
Route two: weak and reused passwords
Automated login attempts run against essentially every WordPress site continuously. They work through common passwords and credentials leaked from unrelated breaches.
The reused password is the dangerous case. If an administrator uses the same password on your site as on a service that was breached years ago, that combination is in circulation and will eventually be tried.
What to do:
- Use unique passwords for every site, which realistically means a password manager.
- Enable two-factor authentication for administrator accounts.
- Limit failed login attempts so repeated guessing gets locked out.
- Avoid obvious usernames such as admin.
- Remove accounts belonging to people who have left. Old contractor accounts are a common route in.
Route three: outdated core and server software
WordPress core itself is updated promptly by most sites, but the software underneath is often forgotten. An end-of-life PHP version receives no security patches at all, and neither does an outdated server operating system.
Check your PHP version in your hosting panel. If it is no longer supported, upgrading is usually straightforward, though you should take a backup and test afterwards because very old plugins occasionally break.
Route four: too many administrators
Every administrator account is a full set of keys. Sites frequently have several, belonging to a former developer, an agency that no longer works with you, a marketing contractor, and someone who needed access once in 2022.
Give people the least access their job requires. Someone writing blog posts needs an author or editor account, not an administrator account. Review the user list periodically and remove what is no longer needed.
Route five: insecure file uploads
If your site accepts file uploads through a form, that is a potential route for executable code. Restrict permitted file types, and ensure code cannot execute from your uploads directory. This is a configuration your developer should confirm rather than assume.
What a compromise actually costs
Businesses underestimate this because they picture a defaced homepage. That is the visible and least damaging outcome.
More common is quiet abuse: your server sending spam, hidden pages selling counterfeit goods, or malicious redirects shown only to visitors arriving from search. You may not notice for weeks.
The costs compound. Search engines can flag your site with a warning that destroys traffic. Your domain can be blacklisted, so your ordinary business email stops being delivered. Cleanup takes time, and reputation damage lingers after the technical problem is solved.
Backups are your actual insurance
Security measures reduce risk. Backups determine what a breach costs you.
A backup is only useful if it meets four conditions:
- Stored somewhere else. A backup on the same server as a compromised site is not a backup.
- Recent enough that losing everything since is acceptable.
- Retained long enough to predate an intrusion you did not notice immediately. Only keeping yesterday’s copy is a common and serious gap.
- Tested. Untested backups fail at the worst moment. Restore one to a staging site occasionally and confirm it works.
A realistic checklist
- Update core, themes and plugins on a schedule.
- Delete deactivated and unused plugins and themes entirely.
- Use a supported PHP version.
- Unique passwords everywhere, plus two-factor for administrators.
- Limit login attempts.
- Audit user accounts and remove ones no longer needed.
- Run a security plugin with a firewall and malware scanning.
- Keep off-site, tested backups with sensible retention.
- Serve everything over HTTPS.
- Review the whole list quarterly.
None of this is exotic. Sites get compromised because routine tasks go undone for years, not because attackers are sophisticated.
What to take away
You will not be singled out; you will be found by a scanner looking for known weaknesses. Outdated plugins are the main route, weak or reused passwords the second. Deactivating a plugin is not removing it. Backups decide what an incident costs, and an untested backup is a guess.
This is exactly what a website maintenance plan exists to handle, and it is built into how we deliver website development. If you are unsure where your site stands, ask us to take a look.


