You will hear that WordPress is insecure. The accurate version is narrower: unmaintained WordPress is insecure. Maintained WordPress is fine.
Why it gets the reputation
It runs a huge share of all websites. That makes it worth automating attacks against, in the same way most malware targets Windows. Scale attracts attention.
Where the holes actually are
Very rarely in WordPress core, which is well maintained and quick to patch. Overwhelmingly in plugins and themes, particularly ones that have been abandoned by their authors and no longer receive fixes.
How to keep it safe
- Update monthly. Core, theme, plugins. This is most of the job.
- Keep the plugin list short. Every plugin is extra attack surface. Twelve is a lot. Four is healthier.
- Delete, do not deactivate. A deactivated plugin’s files are still on the server and can still be exploited.
- Check plugins are alive. If the last update was two years ago, find a replacement.
- Two-factor on admin accounts.
- Do not use “admin” as a username.
- Least privilege. Someone writing blog posts needs Editor, not Administrator.
Do you need a security plugin?
They help, mostly with login rate limiting and file monitoring. They are not a substitute for updating. A site with a security plugin and six out-of-date plugins is still a site with six out-of-date plugins.
The honest summary
The question is not whether WordPress is safe. It is whether anyone is maintaining yours. If the answer is nobody, that is the thing to fix.