{"id":2007,"date":"2021-01-06T08:05:04","date_gmt":"2021-01-06T08:05:04","guid":{"rendered":"https:\/\/loadfocus.com\/blog\/?p=2007"},"modified":"2021-01-20T06:00:18","modified_gmt":"2021-01-20T06:00:18","slug":"how-to-improve-your-wordpress-performance-score","status":"publish","type":"post","link":"https:\/\/loadfocus.com\/blog\/2021\/01\/how-to-improve-your-wordpress-performance-score","title":{"rendered":"How to Improve your WordPress Performance Score"},"content":{"rendered":"<span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\"><\/span> <span class=\"rt-time\"> 3<\/span> <span class=\"rt-label rt-postfix\">minutes read<\/span><\/span>\n<p class=\"lead\">We managed to get a <strong>99\/100 Performance Score<\/strong> with <a href=\"https:\/\/loadfocus.com\/blog\/2020\/12\/what-is-google-lighthouse\/\" title=\"What is Google Lighthouse?\">Google Lighthouse<\/a>, check the details below how we did it.<\/p>\n\n\n\n<p>Read more on how to run a <a href=\"https:\/\/loadfocus.com\/blog\/2020\/12\/what-is-google-lighthouse\/\" title=\"What is Google Lighthouse?\">Google Lighthouse audit<\/a>.<\/p>\n\n\n\n<p>First of all, you&#8217;ll need to install a list of WordPress plugins, activate and configure them.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">WordPress Plugins for Optimization:<\/h2>\n\n\n\n<ol class=\"wp-block-list\"><li><a href=\"https:\/\/wordpress.org\/plugins\/autoptimize\/\"><strong>Autoptimize<\/strong><\/a><\/li><\/ol>\n\n\n\n<p>This will manage your JS, CSS assets and minify the HTML for all pages.<\/p>\n\n\n\n<p><strong>JavaScript Options<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"435\" src=\"https:\/\/loadfocus.com\/blog\/wp-content\/uploads\/Screenshot-2021-01-06-at-10.00.41-1024x435.png\" alt=\"Autoptimize JavaScript Options\" class=\"wp-image-2015\" srcset=\"https:\/\/loadfocus.com\/blog\/wp-content\/uploads\/Screenshot-2021-01-06-at-10.00.41-1024x435.png 1024w, https:\/\/loadfocus.com\/blog\/wp-content\/uploads\/Screenshot-2021-01-06-at-10.00.41-600x255.png 600w, https:\/\/loadfocus.com\/blog\/wp-content\/uploads\/Screenshot-2021-01-06-at-10.00.41-400x170.png 400w, https:\/\/loadfocus.com\/blog\/wp-content\/uploads\/Screenshot-2021-01-06-at-10.00.41-768x327.png 768w, https:\/\/loadfocus.com\/blog\/wp-content\/uploads\/Screenshot-2021-01-06-at-10.00.41-1536x653.png 1536w, https:\/\/loadfocus.com\/blog\/wp-content\/uploads\/Screenshot-2021-01-06-at-10.00.41-2048x871.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>Autoptimize JavaScript Options<\/figcaption><\/figure>\n\n\n\n<p>We&#8217;ve only ticked the two options here:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><th scope=\"row\">Optimize JavaScript Code?<\/th><td>Yes<\/td><\/tr><tr><th scope=\"row\">Aggregate JS-files?<\/th><td>&nbsp;Aggregate all linked JS-files to have them loaded non-render blocking? If this option is off, the individual JS-files will remain in place but will be minified.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>CSS Options<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><th scope=\"row\">Optimize CSS Code?<\/th><td>Yes<\/td><\/tr><tr><th scope=\"row\">Aggregate CSS-files?<\/th><td>&nbsp;Aggregate all linked CSS-files? If this option is off, the individual CSS-files will remain in place but will be minified.<\/td><\/tr><tr><th scope=\"row\">Also aggregate inline CSS?<\/th><td>&nbsp;Check this option for Autoptimize to also aggregate CSS in the HTML.<\/td><\/tr><tr><th scope=\"row\">Generate data: URIs for images?<\/th><td>&nbsp;Enable this to include small background-images in the CSS itself instead of as separate downloads.<\/td><\/tr><tr><th scope=\"row\">Inline all CSS?<\/th><td>&nbsp;Inlining all CSS is an easy way to stop the CSS from being render-blocking, but is generally not recommended because the size of the HTML increases significantly. Additionally it might push meta-tags down to a position where e.g. Facebook and Whatsapp will not find them any more, breaking thumbnails when sharing.<\/td><\/tr><tr><th scope=\"row\">Exclude CSS from Autoptimize:<\/th><td><br>A comma-separated list of CSS you want to exclude from being optimized. Important: excluded non-minified files are still minified by Autoptimize unless that option under &#8220;misc&#8221; is disabled.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>HTML Options<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><th scope=\"row\">Optimize HTML Code?<\/th><td>Yes<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>Misc Options<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><th scope=\"row\">Minify excluded CSS and JS files?<\/th><td>&nbsp;When aggregating JS or CSS, excluded files that are not minified (based on filename) are by default minified by Autoptimize despite being excluded. Uncheck this option if anything breaks despite excluding.<\/td><\/tr><tr><th scope=\"row\">Enable 404 fallbacks?<\/th><td>&nbsp;Sometimes Autoptimized JS\/ CSS is referenced in cached HTML but is already removed, resulting in broken sites. With this option on, Autoptimize will try to redirect those not-found files to &#8220;fallback&#8221;-versions, keeping the page\/ site somewhat intact. In some cases this will require extra web-server level configuration to ensure&nbsp;<code>wp-content\/autoptimize_404_handler.php<\/code>&nbsp;is set to handle 404&#8217;s in&nbsp;<code>wp-content\/cache\/autoptimize<\/code>.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>2.  <strong><a href=\"https:\/\/wordpress.org\/plugins\/rocket-lazy-load\/\">Lazy Load &#8211; Optimize Images<\/a><\/strong><\/p>\n\n\n\n<p>Lazy Load displays images and\/or iframes on a page only when they are visible to the user. This reduces the number of HTTP requests mechanism and improves the loading time.<\/p>\n\n\n\n<p>3. <strong><a href=\"https:\/\/wordpress.org\/plugins\/heartbeat-control\/\">Heartbeat Control by WP Rocket<\/a><\/strong><\/p>\n\n\n\n<p>Heartbeat Control by WP Rocket allows you to manage the frequency of the WordPress heartbeat API in a few clicks.<\/p>\n\n\n\n<p>4. <a href=\"https:\/\/wordpress.org\/plugins\/wp-super-cache\/\"><strong>WP Super Cache<\/strong><\/a><\/p>\n\n\n\n<p>This plugin generates static html files from your dynamic WordPress blog. After a html file is generated your webserver will serve that file instead of processing the comparatively heavier and more expensive WordPress PHP scripts.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"735\" src=\"https:\/\/loadfocus.com\/blog\/wp-content\/uploads\/Screenshot-2021-01-06-at-09.31.57-1024x735.png\" alt=\"WP super cache settings\" class=\"wp-image-2013\" srcset=\"https:\/\/loadfocus.com\/blog\/wp-content\/uploads\/Screenshot-2021-01-06-at-09.31.57-1024x735.png 1024w, https:\/\/loadfocus.com\/blog\/wp-content\/uploads\/Screenshot-2021-01-06-at-09.31.57-600x431.png 600w, https:\/\/loadfocus.com\/blog\/wp-content\/uploads\/Screenshot-2021-01-06-at-09.31.57-400x287.png 400w, https:\/\/loadfocus.com\/blog\/wp-content\/uploads\/Screenshot-2021-01-06-at-09.31.57-768x550.png 768w, https:\/\/loadfocus.com\/blog\/wp-content\/uploads\/Screenshot-2021-01-06-at-09.31.57-1536x1103.png 1536w, https:\/\/loadfocus.com\/blog\/wp-content\/uploads\/Screenshot-2021-01-06-at-09.31.57-2048x1471.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>The static html files will be served to the vast majority of your users:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Users who are not logged in.<\/li><li>Users who have not left a comment on your blog.<\/li><li>Or users who have not viewed a password protected post.<\/li><\/ul>\n\n\n\n<p>After installing all the WordPress plugins above, we selected the options for each one of them. Make sure you are able to change the file permissions for your wordpress files. For this you&#8217;ll either need FTP access or SSH access and navigate to where the blog is installed.<\/p>\n\n\n\n<p>For every tweak you make, I suggest to run a <a href=\"https:\/\/loadfocus.com\/blog\/2020\/12\/what-is-google-lighthouse\/\" title=\"What is Google Lighthouse?\">Google Lighthouse<\/a> audit. This will show if the change is taking you in the right direction.<\/p>\n\n\n\n<p>Make sure you invalidate the cache for <strong>Autoptimize<\/strong> plugin and WP Super Cache before running new performance audit.<\/p>\n\n\n\n<p>You also <a href=\"https:\/\/loadfocus.com\/load-testing\">run a load test<\/a> while doing your Google Lighthouse audit, and check your real users experience.<\/p>\n\n\n\n<p><em>Written by\u00a0<a href=\"https:\/\/coursinator.com\/instructor\/bogdan-vazzolla\" target=\"_blank\" rel=\"noreferrer noopener\" class=\"broken_link\">Bogdan\u00a0Vazzolla<\/a>.<\/em><\/p>\n\n\n\n<p><em><a href=\"https:\/\/loadfocus.com\/\">LoadFocus<\/a>&nbsp;is a cloud performance,&nbsp;<a href=\"https:\/\/loadfocus.com\/load-testing\" target=\"_blank\" rel=\"noreferrer noopener\">load and stress testing tool<\/a>&nbsp;which provides the infrastructure to run tests with thousands of concurrent users, from&nbsp;<a href=\"https:\/\/loadfocus.com\/locations\">multiple cloud locations<\/a>, in less than a few minutes, keep history of the results, compare different runs to inspect performance improvements or performance degradation.<\/em>&nbsp;It also supports running&nbsp;<a href=\"https:\/\/loadfocus.com\/jmeter-load-testing\" target=\"_blank\" rel=\"noreferrer noopener\">JMeter load tests from the cloud<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p><span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\"><\/span> <span class=\"rt-time\"> 3<\/span> <span class=\"rt-label rt-postfix\">minutes read<\/span><\/span>We managed to get a 99\/100 Performance Score with Google Lighthouse, check the details below how we did it. Read more on how to run a Google Lighthouse audit. First of all, you&#8217;ll need to install a list of WordPress plugins, activate and configure them. WordPress Plugins for Optimization: Autoptimize This will manage your JS,&#8230;  <a href=\"https:\/\/loadfocus.com\/blog\/2021\/01\/how-to-improve-your-wordpress-performance-score\" class=\"more-link\" title=\"Read How to Improve your WordPress Performance Score\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":2012,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[48,316],"tags":[326,325],"class_list":["post-2007","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-test-automation","category-web-vitals","tag-improve-slow-website","tag-improve-website-performance"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/posts\/2007","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/comments?post=2007"}],"version-history":[{"count":0,"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/posts\/2007\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/media\/2012"}],"wp:attachment":[{"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/media?parent=2007"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/categories?post=2007"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/loadfocus.com\/blog\/wp-json\/wp\/v2\/tags?post=2007"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}