Table of contents of the article:
Many website owners find their websites extremely slow and immediately turn to Google for answers, tips, and suggestions for improving performance. They usually end up with the PageSpeed tools
Insights is from Google so it's great ?
If Google has created something that comes close to performance and has the word "speed" in its name, what do you expect Google to return in search results? He will obviously show you his own Pagespeed
Same thing for Gtmetrix - if something is popular it can't be possible it's a bad thing, right?
This is not quite the case
Just like PageSpeed
And to add insult to injury, with all those amazing optimization tips coming from these 2 tools - website owners end up with a website that breaks every time WordPress / Magento / or whatever CMS you use, are updated to another new version.
There are very serious problems with both tools. If you understand them, you will know that these tools shouldn't be used for anything other than bragging about your stupidity, it is no coincidence that they are called Vanity Metrics
They aren't really telling you why your website is slow
Both tools report problems with frontend , while the most common performance problem is the backend of the software and hardware that runs the website. You can resize resources, activate headers Expires , compression Gzip , etc. Etc. Only to find yourself with the same slow website you had before hitting Google to get answers.
But how can you really get a faster site if not through the use of these tools?
First of all, consider the hosting plan you are running your website from.
Are you paying $ 5 / month for shared hosting on Godaddy or Dreamhost? Why should you expect ANY performance to pay so little? It is not May You can get decent performance for this budget. This is due to the nature of the shared hosting itself: your website performance depends on low-end hardware and the popularity of websites hosted by other clients on the same server. This is not the case with VPS servers, or better still with Dedicated Servers.
Upgrading to the Virtual Private Server (VPS) hosting plan is just the first step in getting a well-executed website.
Server software and real optimization
Now what PageSpeed
Nor can they tell you what the perfect setup for your server would be suitable for your website.
Below you can find the real website slowdown problems in 99% of cases:
No Full Page Cache (FPC) configured on the PHP website
It doesn't matter if you are using the WordPress website, Joomla, Symfony or something else. A full page cache solution should always be used. For example, with WordPress, you should be using W3 Total Cache and Joomla has its own caching. Without a full page cache, good performance is difficult unless you have a high-end server running your website.
MySQL query caching disabled
It is never enabled on shared hosting, but many managed VPS providers have also disabled it. You should enable this setting and configure it properly both based on the physical ram you have available and the size of the tables and dataset in use,
No PHP accelerator installed
You must always install and use PHP accelerator extensions: Zend Opcache or APC. This allows you to avoid the "precompilation" of PHP files that are actually interpreted. In this way the file is read once, precompiled and put into memory and then reused by them, skipping the reading and precompilation phase which would occupy I / O and computational resources unnecessarily since the file is always the same.
Apache is used
It will also be the most famous Web Server but Nginx beats it in terms of performancea bit like comparing a train with a plane in short.
Remove Apache and install Nginx. You will have all the same functionality as a web server, with low memory footprint and incredible speed.
HDD is slow
Hardware problem. There is no reason not to use a server that is powered with SSD drives. If you know the difference between Windows OS and regular HDD vs SSD in terms of boot time, you can know what kind of performance difference you can get with a server that uses SSD. Better still if you are using nVME disks which are much faster than the already very fast SSD disks.
There is no guaranteed RAM for your website on shared hosting, it will always be slow and underperforming. Consider ordering a VPS with at least 8GB of RAM for a busy website.