
A basic checklist for hardening (securely configuring) and optimizing a WordPress website is provided below.
Hardening (secure configuration):
- Always keep the operating system of the server where the WordPress website is hosted up to date.
- Install and configure an application firewall (the Wordfence plugin can be used).
- Install an SSL certificate, deactivate HTTP, and redirect all traffic to HTTPS.
- Change the URI of /wp-admin/ to something less obvious (the WPS Hide Login plugin can simplify the job).
- Add a custom 404 “Page not found” page and display it when a requested page cannot be found.
- Remove all unused files (media, posts, pages, and so on) and empty the trash can.
- Add reCAPTCHA to every form (login, post comments, page comments, contact forms, etc.).
- Turn on automatic updates for all plugins.
- Give media files descriptive names related to the website (the Media File Renamer plugin can simplify the job).
- Remove all metadata from images (Jeffrey’s Image Metadata Viewer can be used to check metadata, and
mogrify -strip <image> can be used to remove it). - Check image file sizes and reduce them as much as possible before they are transferred to the browser.
- Add an alt text description to all images.
- If posts show the author’s name, ensure that they do not display the login user ID.
- Ensure GDPR compliance (GDPR Cookie Consent & Compliance Notice plugin can simplify the job).
- Create a privacy policy page, link to it from the footer, and make it available to users on their first visit.
- Check for and repair broken links or mixed content (Image & Link Analyzer can be used).
- Scan the website for vulnerabilities and fix any that you find (the Sucuri vulnerability scanner can be used).
- Schedule a periodic backup of the website in a separate data center, away from the one hosting the website.
- Keep an eye on the website’s availability and performance (StatusCake can be used).
- Check that the website works with or without the “www” in the URL (for example, https://www.mysite.com and https://mysite.com).
Optimization:
- Reduce the size of image files transferred to the browser as much as possible (Jeffrey’s Image Metadata Viewer can be used to verify).
- Add an alt text description to all images.
- Install and configure a plugin for caching and image optimization (the W3 Total Cache plugin can be used).
- Install and configure a plugin for analytics (the MonsterInsights plugin can be used).
CONTINUE THE CONVERSATION
Share your perspective.
Comments are moderated before publication.