Switching WordPress themes is a good time for a quick security checkup. These are the checks I ran after changing my theme in 2022, plus a few more I recommend for any theme change.
TLDR
- Update: keep your theme and hosting configuration current, and leave automatic security updates on. (Updating)
- Remove: delete plugins you don’t use. Plugins and themes, not WordPress core, hold most WordPress vulnerabilities. (Unused plugins)
- Simplify: fewer design plugins means less code to watch. (Simplify design)
- More checks: back up first, delete old themes, review user accounts, and turn on two-factor authentication. (More checks)
Updating themes and hosting configurations
Keep your theme and site updated. After a theme is retired or a hosting configuration becomes too outdated, the WordPress support team cannot help you debug CSS, plugins, or develop features. I have been blogging for a few years and still need help. Do not rule yourself out of needing help.
By default, WordPress sets your hosting configuration to auto-update for security updates. If you turned this off, I recommend turning it back on in your security settings.
Identify unused plugins
Plugins are one of the largest sources of vulnerabilities on WordPress sites. Most people, including myself, have downloaded them without researching the developer team.
In general, less code equates to less work and less code to monitor for potential vulnerabilities.
In 2021, WPScan, a popular WordPress vulnerability scanner, reported that 97% of vulnerabilities are found in plugins (90%) and themes (7%), while only 4% are located in WordPress’ core software. WPScan rounds each figure, so they add up to 101%.
🌸👋🏻 Enjoying this post? Get the next issue of [ret]2read. Once a month, I’ll email you whatever’s on my mind, usually Apple security research, offensive security, open source software freedom, and operating system internals.
Want your company or product in front of [ret]2read readers?
One sponsor per issue →
Simplify design
I also made my website simpler. I had a ton of plugins that made my website’s code complicated to read; most of it was for user interface and design. I just removed it. In Marie Kondo’s words, these plugins did not “bring me joy” anymore.
If you are interested in my website’s design, read WordPress Design with Open Source Tools. I also have some markup examples on Design Elements of My Website.
More checks after a theme change
- Back up first. Take a full backup before you switch, so you can roll back if something breaks.
- Delete themes you no longer use. An inactive theme’s files are still on your server, so an outdated one can still be exploited. Keep one default theme as a fallback.
- Review user accounts. Remove accounts that no longer need access, and give everyone the lowest role they need.
- Turn on two-factor authentication for every account that can publish posts or install plugins.
- Check what the new theme dropped. Look for missing widgets, menus, and custom CSS, and for links that broke.
Conclusion
A theme change is a natural time for a checkup, but these checks don’t need to wait for one. Repeat them every few months so unused plugins and old accounts don’t pile up.
This post covers a few checks, not everything a healthy WordPress site needs. Please read my general disclaimer.
This post is part of IGME 599, an Honors FOSS Independent Study at the Rochester Institute of Technology.

