The Ultimate WordPress Speed Optimization Guide 2022
The biggest challenge to most WordPress users is WordPress Speed Optimization. We want the fastest website on the internet, but that’s easier said than done. There are many ways to speed up your WordPress site and we’ve created a guide for you that focuses on 4 different solutions for optimizing your load time and page speed performance.
The speed of your website is also an important ranking factor: In addition to easy operation, appealing and extensive content, and a positive reputation, fast loading times are the be-all and end-all to be found more easily in the search engine.
Your website should load in 3 seconds at most. Less than 2 seconds loading time and a page speed of over 90% (desktop and mobile) are very good.
So if your WordPress website loads slow or do you want to optimize it for visitors on mobile devices? in this post, I give you some tips to help you achieve a fast website
- WordPress Speed Optimization Guide 2022
- 1. Enable Caching
- 2. Use Fewer Plugins
- 3. Choose a Simple Design
- 4. Host the Assets Locally
- 5. Optimize images
- 7. Optimize WordPress blog settings
- 8. Offload WordPress Cron
- 9. Validate source code
- 10. Optimize Database
- 11. Cleaning up your WooCommerce Database
WordPress Speed Optimization Guide 2022
1. Enable Caching
With a caching plugin, your WordPress website is completely built once and then the finished version is cached. This significantly reduces the loading time, as the server does not have to regenerate the website each time it is accessed. LiteSpeed, our web server software, offers a good and simple solution for this with a corresponding plugin. You can find out how to install and configure the plugin in the article «Configuring LiteSpeed Cache for WordPress». You can find additional tips for configuring the plugin in our blog post «From simple caching plugin to sophisticated performance tool: LiteSpeed Cache for WordPress».
Note that the plugin is rapidly evolving and new features are constantly being added. In the official LiteSpeed documentation, you will always find up-to-date information about the functions and their configuration.
Of course, there are a variety of other plugins to cache your WordPress site. We present the most popular plugins among our customers in our blog article “Caching Plugins for WordPress: The 8 Most Popular Our Customers”.
2. Use Fewer Plugins
Each installed plugin is loaded when the website or the back-end is called up and thus also affects the loading time. Therefore, check whether you really need all installed plugins. You should remove plugins that have already been deactivated, as these are no longer updated and therefore pose a security risk. Also, make sure to always install the latest version of WordPress and keep the plugins up to date. Since WordPress 5.9.3, this work has become easier thanks to an integrated update function.
Read my post about best wordpress plugins in 2022
3. Choose a Simple Design
The design can have a big impact on the speed of your website. The more images and additional content are loaded, the slower a website becomes. And vice versa, a slim design ensures an optimal loading time.
Please note that many of the WordPress themes on offer are designed to cover as many different areas of application and design options as possible. This has advantages for your own application and variety of designs, but it often has a negative effect on speed. The more setting options a theme has, the more complex and extensive its programming is. In addition, the installation of additional plugins is often required.
On the other hand, if you have a personalized theme programmed by a web agency or web designer, you can better control that your theme stays lean.
4. Host the Assets Locally
You can make an exception for videos, since services like YouTube or Vimeo, for example, are optimized for this purpose.
5. Optimize images
Optimize the images of your website for their intended purpose, because: the smaller the file size of the image, the faster it will load. Therefore, compress the images before you upload them It is also helpful if you serve images in modern image formats such as WebP or AVIF.
There are also useful plugins for this image optimization. If you use the LiteSpeed Cache plugin, as mentioned in the «Activate cache» section, you can immediately use the image optimization functions it contains. These are explained in detail in the LiteSpeed documentation.
In addition to LiteSpeed Cache, there are other plugins such as Smush, EWWW Image Optimizer, and Optimus.
7. Optimize WordPress blog settings
Keep homepage lite
Most visitors go straight to your site’s home page. If you have a large selection of blog posts or products listed there, this can have a negative impact on the loading time. In general, we recommend that you keep the start page lean and offer extensive content on dedicated subpages.
To reduce the number of blog posts, adjust the default values in the “Settings” > “Reading” menu. If you use WooCommerce for your online shop, you can find the setting in the “Design” > “Customize” > “WooCommerce” > “Product catalog” menu and define how many products per row and how many rows per page should be displayed.
Otherwise, a “lazy load” function can also help. When the website is called up, this only loads content that is actually visible in the browser window. When scrolling through the page, the additional content is then loaded step by step. This is particularly important for large files such as images. In order to use lazy loading, you probably guessed it, you will find corresponding functionalities in most caching plugins. In the LiteSpeed Cache plugin, you can enable lazy load as described in the LiteSpeed documentation.
8. Offload WordPress Cron
Do you have a website that requires a lot of resources and have you already reached the limits of your web hosting’s processing power? In this case, outsourcing the WordPress cron can help. To do this, add the following line to the wp-config.php file of your WordPress site:
Then create a cron function in the my.cyon account with the following value:
wget -q -O /dev/null 'https://oliverorange.ch/wp-cron.php' >/dev/null 2>&1
The smallest possible value is recommended as the time interval, so leave the default settings as they are. If you have any questions about creating cron jobs, our guide «Creating and editing cron jobs» will help you.
This optimization can be a relief for heavily visited websites since the WordPress cron is not executed every time the website is accessed, but only for the specified time interval.
Note that the smallest possible time interval varies depending on the web hosting offer. You can find an up-to-date overview on our website in the “Web server” section.
9. Validate source code
Faulty WordPress or plugin code, as well as broken links, can affect the loading time of your website. While the website is developing, temporarily use a plugin like Query Monitor that shows you errors. You can also use the W3C Validator to check your website for errors.
10. Optimize Database
Regular optimization of the database keeps it as lean as possible and can save storage space. Here, too, a corresponding functionality is already built into many caching plugins. For LiteSpeed Cache, you can find the feature documentation on LiteSpeed’s website.
However, there are also plugins for optimizing the database, such as «Optimize Database after Deleting Revisions». Or you clean up individual tables via phpMyAdmin in your my.cyon account. You can find instructions on how to do this in the article «Optimizing/cleaning up the database».
11. Cleaning up your WooCommerce Database
If you operate your online shop with WooCommerce, it can happen that temporary entries that WooCommerce creates for visitors to your website are not correctly removed afterward. These entries are also called «transients». Please check whether there are many such transients in the “wp-options” table in your website’s database and whether they can be removed. There are plugins such as “Transient Cleaner”, “Delete Expired Transients” or “WP-Optimize” that offer such functions.
How to Speed Up Your WordPress Site
- Run performance tests.
- Choose a reliable hosting provider.
- Update everything.
- Use the latest version of PHP.
- Delete unused plugins.
- Install high-quality plugins only.
- Use a lightweight theme.
- Optimize images.
Is WP-optimize plugin good?
WP-optimize It’s an accessible, simple, and highly efficient plugin that has all the things you need to keep the website fast and fully optimized. the plugin also helps enhance SEO, keep customers by decreasing user bounce, and helps you do more with few server resources.