My website's speed is slow. After test it with Gtmetrix,the result is bad. How to improve it? Is there any plugin to solve this issue. This Website is built with Wordpress. Can anyone help?
This is the domain address: https://www.aisledlight.com/
Solved! Go to Solution.
Hey there @egbert
If you're on cPanel, I would suggest the caching plugin WP Rocket (3rd Party website.) I've tested every caching plugin on the market and that one is the best in my opinion. It covers most of the bases.
Here are some other tweaks:
Add a CAPTCHA: CAPTCHAs help protect your site from spamming by bots and other malicious actors. They force people to identify themselves as humans by performing simple tests. Protecting yourself is as simple as installing the Google Captcha (reCAPTCHA) plugin and doing the setup. This will mitigate a lot of security concerns and keep random bots from infiltrating your website.
Use your own cronjob: The wp-cron.php file that installs with every WordPress installation can sometimes be problematic. Far too often it runs unnecessarily and causes resource issues that can slow your site down considerably, especially on sites that receive a lot of traffic. For a site that doesn’t receive a lot of traffic, it can be a significant amount of time before a visitor loads a page and trigger the cron task. This can cause missed schedules for publishing posts and other unintended effects.
To resolve these issues, you can disable the default wp-cron.php and configure a real cron job. To do this, take the following steps:
define('DISABLE_WP_CRON', true);
After disabling the default cron job, you are ready to set up a real cron job that runs at fixed intervals regardless of the site traffic.
cd /home/username/public_html; /usr/local/bin/php -q wp-cron.php
Disable the Heartbeat: (Note that WP Rocket has this feature built in) The “heartbeat” feature enables WordPress to monitor user actions and sends periodic updates to the web server. The heartbeat is used to save drafts automatically, lock post edits, log out administrators after an idle period, and more.
However, in some scenarios, the heartbeat may send an excessive amount of requests to the server. When this occurs, site performance can suffer. For example, CPU loads may increase, or you may receive “The Connection Has Been Reset” messages in your browser.
By default, WordPress does not provide a way to disable or change the heartbeat settings. However, you can install the Heartbeat Control plugin to do this. If you’re the only one that works on your site, disable everything. If you have multiple authors, disable it on the frontend only.
Disable XML-RPC: XML-RPC is a remote procedure call which uses XML to encode its calls and HTTP as a transport mechanism. In human language, this means that you can post to your blog directly from email or any number of other services that are NOT your WordPress dashboard. If you want to access and publish to your blog remotely, then you need XML-RPC enabled.
In order to turn this off, you have a couple of options:
All you have to do is paste the following code in a site-specific plugin:
add_filter('xmlrpc_enabled', '__return_false');
While the above solution is sufficient for many, it can still be resource intensive for sites that are getting attacked.
In those cases, you may want to disable all xmlrpc.php requests from the .htaccess file before the request is even passed onto WordPress.
Simply paste the following code in your .htaccess file:
Once your issue is resolved,
please be sure to come back and click accept for the solution
Get Better Support on the Community Boards!
Etiquette When Asking for Help from the Community
Hey there @egbert
If you're on cPanel, I would suggest the caching plugin WP Rocket (3rd Party website.) I've tested every caching plugin on the market and that one is the best in my opinion. It covers most of the bases.
Here are some other tweaks:
Add a CAPTCHA: CAPTCHAs help protect your site from spamming by bots and other malicious actors. They force people to identify themselves as humans by performing simple tests. Protecting yourself is as simple as installing the Google Captcha (reCAPTCHA) plugin and doing the setup. This will mitigate a lot of security concerns and keep random bots from infiltrating your website.
Use your own cronjob: The wp-cron.php file that installs with every WordPress installation can sometimes be problematic. Far too often it runs unnecessarily and causes resource issues that can slow your site down considerably, especially on sites that receive a lot of traffic. For a site that doesn’t receive a lot of traffic, it can be a significant amount of time before a visitor loads a page and trigger the cron task. This can cause missed schedules for publishing posts and other unintended effects.
To resolve these issues, you can disable the default wp-cron.php and configure a real cron job. To do this, take the following steps:
define('DISABLE_WP_CRON', true);
After disabling the default cron job, you are ready to set up a real cron job that runs at fixed intervals regardless of the site traffic.
cd /home/username/public_html; /usr/local/bin/php -q wp-cron.php
Disable the Heartbeat: (Note that WP Rocket has this feature built in) The “heartbeat” feature enables WordPress to monitor user actions and sends periodic updates to the web server. The heartbeat is used to save drafts automatically, lock post edits, log out administrators after an idle period, and more.
However, in some scenarios, the heartbeat may send an excessive amount of requests to the server. When this occurs, site performance can suffer. For example, CPU loads may increase, or you may receive “The Connection Has Been Reset” messages in your browser.
By default, WordPress does not provide a way to disable or change the heartbeat settings. However, you can install the Heartbeat Control plugin to do this. If you’re the only one that works on your site, disable everything. If you have multiple authors, disable it on the frontend only.
Disable XML-RPC: XML-RPC is a remote procedure call which uses XML to encode its calls and HTTP as a transport mechanism. In human language, this means that you can post to your blog directly from email or any number of other services that are NOT your WordPress dashboard. If you want to access and publish to your blog remotely, then you need XML-RPC enabled.
In order to turn this off, you have a couple of options:
All you have to do is paste the following code in a site-specific plugin:
add_filter('xmlrpc_enabled', '__return_false');
While the above solution is sufficient for many, it can still be resource intensive for sites that are getting attacked.
In those cases, you may want to disable all xmlrpc.php requests from the .htaccess file before the request is even passed onto WordPress.
Simply paste the following code in your .htaccess file:
Once your issue is resolved,
please be sure to come back and click accept for the solution
Get Better Support on the Community Boards!
Etiquette When Asking for Help from the Community
@MrVapor Joe,
Thank you for a very informative post. I have Autoptimize and WP Fastest Cache installed.
In your opinion, should only one cache tool be deployed on a site?
Second, do the other plugins seem to do the trick without purchasing upgrades?
Thank you again. Your work helps novices like myself continue to learn and grow.
Bryan "Gunny"
Hey @GunnyRet
Thank you for your service, sir. Former USAF myself.
You should absolutely only use one caching plugin. Multiple caching options can actually slow your site down more due to the nature of the caching features that are baked into the plugins. Conflicts will arise very quickly.
I've used both Autoptimize and WP Fastest Cache (and W3TC, which is a garbage plugin.)
The reason I suggest WP Rocket is that it's not overly expensive (I think it's $49 per yer) and it does literally everything that every other plugin out there does and then some. They also have a really good support function if there are issues. As soon as I plugged it into my sites, which have almost 40 plugins by the way (on each of them), I immediately got load times between 1.5 - 2.5 seconds, my PageSpeed/YSlow scores both went up to A's, and pretty much everything that GTMetrix recommends be done to speed up your WordPress site was done at the click of a button. It does take some time to set up the plugin to work correctly, and you may see some minor tweaks that need to be made, but it is well worth the money and I don't say that often about plugins.
You're more than welcome for the help, sir.
Once your issue is resolved,
please be sure to come back and click accept for the solution
Get Better Support on the Community Boards!
Etiquette When Asking for Help from the Community
Oh, one more thing:
I would avoid multipurpose themes like Divi or Avada. They're full of bloated, unoptimized code.
I suggest using a theme like GeneratePress (which has free and paid options) along with a website builder plugin like Beaver Builder or Elementor.
Once your issue is resolved,
please be sure to come back and click accept for the solution
Get Better Support on the Community Boards!
Etiquette When Asking for Help from the Community