Today there were a lot of changes on the hosting and I did some actions that I would like to review.
PHP settings
Ensure the PHP settings have enough memory, 32MBs is the default and it should be more.
General review
- making sure all of WordPress is updated (plugins, themes, version, and php version, make sure you do this one at a time to not cause any overwrites or issues).
- Turn off all plugins and theme
- Delete any plugins/themes you don’t need
- Make new .htaccess file
- Turn on plugins/themes
Install W3 Total Cache plugin
First, remove any optimization plugins you’re using now.
Once installed the W3 Total Cache plugin,
- Skip the setup wizard, and click General Settings.
- Set these settings:
- Page Cache – Enable
- Minify – Enable
- Then, Save Settings.
- Click the Minify page.
- Set both CSS/JS to “Combine Only”, and Save Settings.
Pages will be added to cache as they are accessed, so navigate a little bit and check that speed improves.
Blocking bots
This code below was added to avoid some bots
BOTS
#HUB Block Bots RewriteEngine On RewriteCond %{HTTP_USER_AGENT} ^.*(Sogou|ZoominfoBot|SeznamBot|MJ12bot|Yandex|PetalBot|BLEXBot|DotBot).*$ [NC] RewriteRule .* - [F,L]
Buy me a coffee widget
Disable the widget and let just the button, the widget consumes a lot of time to load the pages.
GTmetrics tool
Use this tool to check the spped: https://gtmetrix.com/
It’s a great read. Thanks for sharing such a mindful & researched guide with us.