10 ways to improve Google PageSpeed on WordPress
by WP Creative on 2021 June | Posted in Uncategorized
Speed is now considered an important ranking factor. WordPress users often get confused about how to speed up their websites. Not many of them are tech-savvy and don’t have the awareness about how site speed can be improved.
We know you are passing through the same problem and we are here to help. In this article, we will discuss some of the best tips to improve WordPress site performance. Let’s get started.
How To Double Your WordPress Site Pagespeed
WordPress works like any other CMS. However, there are a few additional features available on this CMS that can help it increase site speed a lot faster.
1. Choose the Best WordPress Hosting
You would need a WordPress hosting solution to speed up your site performance. Now, most WordPress-specific hosting solutions offer VPS or a cloud server for the backend. They not only have server-level cache available but they also come with a performance stack.
So, the first thing you need to do to improve site performance is to get a better WordPress hosting solution.
2. Add a Lite WordPress Theme
Your website is only as good as the theme you install on it. WordPress offers a gazillion themes. It is up to you to choose a lite theme that can improve your site speed.
Before getting a theme for your WordPress website, make sure to do the following:
- Test the theme performance on GTMetrix and other performance tools
- Get a trial of the theme to check it on your own hosting solution
- Only try the top-rated performance-focused themes for your WordPress website
3.Minify JS and HTML
Decent cache plugins you can use include Nitropack, WP Rocket, and various other cache plugins. These come up with a one-click option to minify JS, HTML, and CSS.
4. Enable GZIP Compression
GZIP compression compresses your website pages when sending them to the client browser. A few years ago, browsers weren’t technologically forward therefore sites used to have no GZIP compression. But now browsers can easily decompress GZIP. Therefore, it is important that you compress the website through GZIP compression. This will automatically decrease the size of the site and increase the page load speed.
Here is the GZIP compression code that you can use in Htaccess file:
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
>>> Don’t Know How to Code? Let Our Speed Optimisation Experts Help You. Learn More.
5. Clean up WordPress Database
WordPress website uses the following site structure:
- WordPress is in the front.
- It has MySQL or MariaDB database as storage
- The whole structure uses PHP stack
So, clean up the WordPress database to improve your site performance. WordPress database often gets junk due to multiple site revisions, junk comments, pingbacks, and trackbacks. Use the following SQL commands to improve site performance.
Delete post revisions:
- DELETE a,b,c
- FROM wp_posts a
- LEFT JOIN wp_term_relationships b ON ( a.ID = b.object_id)
- LEFT JOIN wp_postmeta c ON ( a.ID = c.post_id )
- LEFT JOIN wp_term_taxonomy d ON ( b.term_taxonomy_id = d.term_taxonomy_id)
- WHERE a.post_type = ‘revision’
- AND d.taxonomy != ‘link_category’;
Use the following function in wp-config.php file:
- define( ‘WP_POST_REVISIONS’, 2 );
Remove Spam Comments:
- DELETE FROM wp_comments WHERE comment_approved = ‘spam’;
Delete Unused Tags:
- DELETE FROM wp_terms WHERE term_id IN (SELECT term_id FROM wp_term_taxonomy WHERE count = 0 );
- DELETE FROM wp_term_taxonomy WHERE term_id not IN (SELECT term_id FROM wp_terms);
- DELETE FROM wp_term_relationships WHERE term_taxonomy_id not IN (SELECT term_taxonomy_id FROM wp_term_taxonomy);
These will reduce the junk captured within the WordPress databases. So, you need to first clean them up before moving to the next steps in the list.
6. Reduce External Scripts on Site
The number of external scripts added to your WordPress website can reduce the site speed and performance. To find out if the number of external scripts on your website is causing any hurdles in site performance, try the following:
- Test your site on the Google Page Insights tool
- It will show you the number of external scripts causing performance issues
- Now, put these scripts after DOM Content Load
- Test your website speed again
Doing so will automatically increase the page performance. Why? Because external scripts will now load after the main site content has loaded on the user browser.
7. Add CDN
Adding a CDN to your website is the best way to increase site performance. A CDN or Content Delivery Network ensures that your page loads at the same speed from all locations. CDN services have servers in different regions and they create an image of your most visited pages and send them to those servers. So, when someone visits your website, they get the page from the CDN cache and not from the server. This serves two purposes: It decreases the number of requests sent to the server. It increases the page speed of the website.
>>> Unsure how to add a CDN to your WordPress website. Hire WordPress Speed Optimization Experts. Book a Call Today.
8. Decrease Image Sizes for Speed
Most websites have larger page sizes just because they have too many heavy images on them. So, decrease the sizes of these images and your site will automatically increase in performance.
You can use image plugins like the Smush plugin and EWWW image plugin to decrease the image size.
Another thing you can do to decrease image size is by using Adobe Photoshop.
9. Decrease Page Size
A few ways to decrease the page size of your website include:
- Keeping external scripts to a minimum
- Uninstalling unnecessary plugins from the site
- Reducing image size
- Reduce the number of fonts available on the site
- Minimize unused CSS rules
Once these are done on your WordPress website it will automatically increase in performance.
10. Add SSL Certificate
Finally, one thing that adds a lot of weight to site performance is the use of SSL certificates.
Most SSL certificates are completely free to use. If you have Cloudflare already installed on your WordPress website, you can use its own SSL certificate.
SSL certificates will show a green padlock in browsers depicting that your WordPress website is completely secure for users. It will increase trust in the eyes of users and Google crawl bots.
These are all the ways to increase page speed on WordPress-based websites.
If you are still unsure how to increase the site performance or if you are having difficulty in optimizing your site for speed, you can hire WordPress speed optimization experts.
>>> We offer the best WordPress speed optimisation experts, get in touch with us today. Schedule a Call