Core Web Vitals and website speed: what to measure and what to fix first
LCP, INP and CLS explained simply: how to measure website speed, what slows it down and the order in which to fix it.
Updates, passwords, 2FA, backups, permissions and firewalls: practical protection and the steps to take if your site is hacked.
This WordPress security guide boils down to a few steady habits: update the core, themes and plugins; use unique passwords with two-factor authentication; keep tested backups away from the server; delete what you do not use; limit permissions; and put a firewall in front of the site. Compromises usually come from outdated plugins and weak or stolen passwords rather than from sophisticated attacks.
WordPress powers a very large share of the websites that exist, which makes it an attractive target: an attacker who finds a flaw in a popular plugin can try it automatically on thousands of sites. Most of the time nobody is targeting you personally. Automated scripts are simply hunting for sites with the same known vulnerability.
The WordPress core is generally well maintained. The weak points are usually elsewhere:
The good news is that these causes are within your control. You do not need a large budget, only a checklist and some discipline. Security also ties in with your choice of hosting, which we cover in the guide to choosing web hosting.
Every public security update also announces, implicitly, that a vulnerability existed. From the moment of publication, attackers can exploit it on sites that have not updated. A delay of a few weeks can be enough for a site to be compromised.
In practice:
Automatic updates for trusted plugins and for minor core releases can reduce risk, provided you have backups and monitoring in place, so you notice if an update breaks something.
Brute-force attacks try thousands of username and password combinations. Credential stuffing, which uses passwords leaked from other services, often succeeds when you reuse the same password on several services.
If several people need access, use a password manager with sharing, not spreadsheets or WhatsApp messages.
A backup is only useful if you can restore it. Many businesses discover in a crisis that the archive is incomplete, out of date or stored on the same infected server.
The classic 3-2-1 rule says: three copies, on two types of media, one of them off-site. For a small company site you can adapt the idea: the host’s backup plus an external one.
These are the more technical measures. You do them once and then maintain them.
| Measure | What it does | Difficulty |
|---|---|---|
| HTTPS everywhere | Encrypts traffic and protects logins | Low |
| Correct file permissions | Usually 755 for folders and 644 for files; stricter for wp-config.php | Medium |
| Disabling the dashboard file editor | A compromised administrator cannot edit code directly | Low |
| Blocking PHP in the uploads folder | Uploaded files cannot run as scripts | Medium |
| Disabling XML-RPC if unused | Reduces automated login attempts | Low |
| Web application firewall (WAF) | Filters malicious traffic before it reaches the site | Low to medium |
| Monitoring and alerts | Tells you when the site goes down or files change | Medium |
A WAF can be a service in front of your server, offered by some network providers, or a plugin that runs inside WordPress. The first filters traffic before it touches the server; the second uses local resources. You do not need both, but you do need at least one, plus a sensible configuration. For the visible side of trust (a valid certificate, well-built forms, safety cues on the page), you can run a quick check with our landing page audit.
Some attacks are loud (the site displays a foreign message); others are silent and last for months. The signs worth taking seriously:
Malicious code is often hidden in files with ordinary names, in the database or in the uploads folder. That is why cleaning only the page you can see is not enough.
If the site holds customers’ personal data (orders, forms), a compromise may count as a personal data breach, and the GDPR sets out notification duties, under certain conditions and within a short deadline, generally 72 hours from becoming aware of it.
The information on legal obligations is general, not legal advice. For a real incident, speak to a lawyer or a data protection officer (DPO). You will find more about personal data on websites in our article on GDPR and cookies.
For the sites we look after, we work from a fixed list: verified updates, off-site copies, uptime monitoring, removal of unused plugins and periodic review of accounts. When we take over an existing site, we begin with an inventory: which versions are running, who has access, where the backups are.
We do not promise “total security”, because it does not exist; we promise reduced risk and a quick response. If you would like someone to handle these checks continuously, see our WordPress maintenance service. And if your site has come to hold customer data and internal processes, it is worth discussing a custom system, with roles and an action log.
The WordPress core is actively maintained and receives security updates. Problems mostly come from outdated plugins and themes, weak passwords and careless configuration. A properly maintained WordPress site can be run securely, and an abandoned site is vulnerable on any platform.
One well-chosen plugin can add a firewall, scanning and login-attempt limits. It is not magic, though, and it does not replace updates. Avoid installing several plugins with overlapping features, because they can conflict and slow your site down.
It depends on how often the site changes. For a brochure site, daily or weekly is usually enough. For a shop with orders, the database should be saved at least daily. What matters is keeping a copy off the server and testing the restore from time to time.
Look for signs such as odd redirects, unknown pages, new administrator users or browser warnings. A file scanner and Google Search Console help with detection. If you suspect a problem, get technical help before changing anything, so that the traces of the attack are preserved.
Sometimes, if you have a clean backup and know where to look. The risk is cleaning only the symptom and leaving a hidden backdoor, so the attack happens again. If the site sells products or holds customer data, it is safer to involve a specialist and your host.
It helps a little against automated scripts, because it cuts the noise in your logs, but it is not real protection on its own. Strong passwords, 2FA and limiting login attempts matter far more. Treat a changed address as a bonus, not a solution.
Laborator
Lab tools that help you put this guide into practice.
Blog
LCP, INP and CLS explained simply: how to measure website speed, what slows it down and the order in which to fix it.
Shared, VPS, cloud or managed WordPress: the criteria that matter, the questions to ask a provider and the traps in offers.
What to check for GDPR on your website: cookie banner, forms, policies and third-party tools such as maps and fonts.
Tell us where you are now and what you want to achieve — you will get a concrete proposal with services, timeline and a transparent budget.