Support » Fixing WordPress » Optimising wordpress to score full and be superfast

  • Hi im trying to speed up a website and and get full scores on gtmetrix, pagespeed insights and pingdom.
    My current setup for adding performance is
    – redis on the server
    – server configurations
    – litespeed cache plugin
    – w3 total cache
    – other plugins like yoast and amp extension for w3 that actually help a bit for just being there
    – few minor plugins that do stuff like store fonts locally instead of google
    – cloudflare

    However for pingdom it says that gzip isnt used when i checked the server and other sites confirm that gzip is used. The fastest load time i got from pingdom is 233ms but with bad scores all around. Im at an empase because its important to be able to show to others that we scored really well on tests as well and not just having a very fast loading website.

    Im using litespeed cache plugin with litespeed webserver and have the issue of <90% score but 1s faster load time if i leave query.js on the site if i dont load jquery from cdnjs or google. if i switch i get a 100% score but 1-2 seconds longer load time.

    W3 total cache only covers what litespeed cache cant do however there isnt any free working fragment cache that uses redis.

    wc-ajax fragment sometimes adds 1s of load time on gtmetrix

    This is for the front page which sizes around 800KB, has less than 20 requests

    GTmetrix scores
    F- serve resources from a consistent URL
    https://mysite/wp-includes/js/jquery/jquery.js
    https://mysite/wp-includes/js/jquery/jquery.js?ver=1.12.4-wp
    D - use cookie-free domains
    https://mysite/min/ea8bf.css
    https://mysite/wp-includes/js/jquery/jquery.js?ver=1.12.4-wp
    https://mysite/min/ae768.js
    https://mysite/min/cff15.js
    https://ajax.cloudflare.com/cdn-cgi/scripts/7089c43e/cloudflare-static/rocket-loader.min.js
    https://mysite/wp-includes/js/jquery/jquery.js
    https://mysite/wp-content/uploads/2019/11/nilofabiz-conference-website.jpg
    
    From waterfall
    1.5s waiting - https://mysite/?wc-ajax=get_refreshed_fragments

    Pingdom doesnt like that i redirect from http to https and gives me a B there, a F for not compressing (i compressed, i checked unless im missing something wp specific)

    Any help with sorting this in configuring existing plugin or coding around this would be very helpful

    • This topic was modified 1 year, 12 months ago by Jan Dembowski.
    • This topic was modified 1 year, 12 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator bcworkz

    (@bcworkz)

    As you discovered, great grades are not the same as fastest site. It’s a “Catch-22” situation. What’s more important? Great grades or fastest site? It’s unrealistic to have both. Those tools are great for bringing to light issues you should investigate. Once you’ve investigated and do due diligence to obtain the fastest page possible within reason the grades become meaningless. You are better off educating those that think high grades are the end all for performance that it’s just not the case.

    Thread Starter System Error Message

    (@systemerrormessage)

    However from what i did investigate, these are things that can be solved. For instance rather than including both jquery (1 version specific and 1 generic), can keep one like what the optimisation plugins do but rather host it on the site instead of using google/cloudflare and add a second in load time.

    From what i searched about cookies on static resources, the advice is to use a subdomain instead and use a link/symlink to it.

    However i would prefer a way to sort it via coding. One of the methods used to solve woocommerce ajax request in the past was to en-queue it using code as a separate plugin. So im wondering if its possible to do this in code for other things and if yes how?

    You can get good grades and performance, i’ve seen some sites score 100% everywhere and still get half a second of load time. Some things i’ve tried for my own personal site is if i can use a design looks that works with instant click feature on litespeed cache, not only does the website load faster for users across the site but can score high at the same time.

    Moderator bcworkz

    (@bcworkz)

    I wasn’t implying that we shouldn’t strive to do better 🙂 There is a point of diminishing returns where the performance gain is not commensurate with the effort required to achieve it. And sometimes recommendations are at odds with improved speed. Something has to give.

    You certainly need to avoid redundant resources. That is resolved in code, but how to do so depends on the specifics of the redundancy. Ideally it could be done by removing hooks or dequeuing resources. This only works when theme and plugin devs follow best practices. When they don’t you need to get more creative.

    Thread Starter System Error Message

    (@systemerrormessage)

    @bcworkz Thanks i forgot about themes. my own website doesnt have these problems, only have to remove cookies from static resources and there is even a guide for that. I realised a couple differences between my personal website that i use shared hosting for and one we make where i work.
    I have no ecommerce, elementor and my theme is SEO optimised.

    However in regards to the https redirect i can simply test the https link of my website and get full scores and 0.6s of load time using a shared host so im on my way to get full scores and an extremely fast loading website. So its not like you cant have both.

    Fragments however seems like the biggest problem to solve via code so perhaps so i will need to learn how to make my own fragments plugin and not only cache it with redis/disk but also deliver it at the start of the request as an asynchronous request since the wait time is at least 1.5s before any data is received, for a website to load sub 1s 1.5 seconds of saving is huge.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Optimising wordpress to score full and be superfast’ is closed to new replies.