25
24 Comments

How I Built a Low-Budget WordPress Site that is Fully Loaded in 1.7s

When building your website, there is a simple rule:

High Speed = More Visitors = More Customers = More Money

I assume, that most of you are advanced hackers, and this topic may be boring to you, but I guess, that some no-code-noobs like me could profit from my experience.

The benchmark for a fast-loading website is about 2-3 seconds. After this period, you lose about 40% of visitors, and with every further second, you lose additional visitors.

So, I worked hard and tried and tested various setups in recent years. For a long time, I didn´t understand, that drag-and-drop website builders are easy to use but create a long and slow code. I read on fatstacksblog.com, that the fastest WP websites with the shortest codes can be built with Gutenberg-based themes. I researched and found GeneratePress, which comes with a ton of amazing and ready-to-use design layouts.

I´m pretty happy, that the homepage of my latest blog finmods.com is fully loaded within 1.7s. And the hosting provider is a super low-budget solution.

You can check the GTmetrix report in detail. I got an A grade, 99% performance, and 98% structure.

I guess that´s not so bad for a no-code noob. 8-)

This is my exact WordPress setup:

  1. Hosting: bluehost (the cheap WP hosting for $2.95/mo)
  2. Wordpress Theme: GeneratePress Premium
  3. WP Rocket plugin to increase performance
  4. Smush Pro to reduce image file sizes

GeneratePress offers a free version, which is already great and I worked with it for some time. This year, I decided to improve my website design and bought the premium version. I didn´t regret it.

GP premium includes 89 different designs for business, E-Com, and blogs. Check out the Site Library.

As the premium license of GeneratePress includes 500 installs, I can give away 490 or so to any indie who is interested. Btw, this is totally legal regarding their TOS, as I have to right to do this.

If you want a premium license for GeneratePress for FREE, drop me an email at [email protected] with the URL (i.e. example.com) of the website, where you want to install it. Then I can send you the download link for the premium plugin and authorize your website in the backend of my GP account.

posted to Icon for group Growth
Growth
on May 9, 2022
  1. 6

    Great progress, you can improve on this to service it under 200ms in a few steps.

    • Use varnish or an other reverse proxy to be able to serve cached pages, so you won't hit the super slow WP engine, (Rocket already reduces this), or even PHP.
    • Serve cached pages to logged in users, and load the authenticated parts via ajax.
    • I pulled out the authentication code into a separate file, to serve these ajax requests super fast, without hitting the WP engine.
    • To force WP to generate generic pages to logged in users, varnish can strip the login cookie from the requests.
    • To optimize the Engine, Theme and Plugin combination we used https://github.com/jokkedk/webgrind, in production. This adds a significant performance overhead, but after you've implemented the above steps, this is not a problem anymore. We only stored logs on requests that where super slow, like 1.5 seconds and above, in the beginning, to filter out stupid mistakes.

    Once we did this, we had no problem serving millions of pages per month, from a small machine. We only went offline a couple of times, because an editor linked the original huge image in the article, instead of the CDN scaled image. This maxed out our upstream.

    A couple tips,

    • One we got from Mashable in the early days, make sure to put Http Basic Auth on your wp-admin folder. This mitigates virtually any attack due to security exploits.
    • Plugins should not call an external API on every request, this will take you down, when their API is down.
    • Variable scoping in the WP engine is a mess. To make sure you don't a accidentally override a WP native variable, prefix your plugin vars.
    1. 1

      Great response Arjen

      Would be great if you can write an article on this🙂

      Thanks for the pointers

    2. 1

      Arjen, you are killing it! This is super valuable info. Yet, I don´t understand half of what you said, but I will dig into it.

      1. 1

        Hey Peter,

        Cool, what is it you don't understand. Happy to make this a long exhaustive thread, so we can educate IH as well.

        BTW, if any other readers have questions about this...

        Cheers,
        Arjen

  2. 4

    Try to push the assets closer to the edge by using a CDN. I would not consider 1.7s to be as good as you make it sound.

    1. 1

      Hi Torsten, honestly I thought this would be fast (you destroy my dream :-)), but I´m open to learning more. I already use Cloudflare CDN. What would you consider good in this case?

  3. 2

    The cover photo is genius.

    Also, great job.

    1. 2

      Thank you, Benjamin, and cheers to Bangkok!

  4. 1

    Wow, thank you 🙏🏿

  5. 1

    Here are my 5 cents about it:

    • Please don't make optimizing your website the most essential part of the project - personally when I opened "fatstacksblog" I thought my internet provider is blocking some CDN providers and I don't see half of the CSS/ JS
    • When I tried opening "finmods" I had some issues:
      1. Loading "font-awesome" for only 5 icons is a bit wastefully - if we talk about speed
      2. 8 different services were also loaded with the website, one didn't even load - it is too much - and not talking about GDPR stuff

    The speed and responsiveness of a website are always hard to manage. They are important but not as important as UX and etc.

    Personally, I love websites that "aren't too much", but if it looks like 2000 I'm just going to look at something else.

  6. 1

    Generate press is an awesome theme. And I just think a CDN would do wonders Peter.

    Also, I have found Optimole for images works better.

    One request, if possible would you please share a generatepress pro lisence key with me, that would be great.

    I am trying to use it in my niche blog.

    Thanks in Advance

    1. 1

      Shawn, I´ll gladly share a premium license with you. Please send me an email to [email protected] and tell me your URL, where you want to install it. Then I send you the download link for the premium plugin and I will authorize your website in the backend of my GP account.

      Thank you for your input too! IH is really cool. This is the first time, I experience such a positive and supportive spirit among people, who have never seen each other.

  7. 1

    The benchmark for a fast-loading website is about 2-3 seconds. After this period, you lose about 40% of visitors.

    Yea, this is certainly true, and underrated. People never think to optimize their site and accept slow speeds, but Google ranks sites on speed as well as quality, and if you can do both your going to feel the benfits of the algorithim, as it looks like you have.

    1. 1

      True. For years, I had a website that took 5-7 seconds to load, as I didn´t recognize how damaging this was. No idea how many subscribers/customers I lost, but I learned this lesson.

  8. 1

    Hey Peter. Thanks for taking a moment to share your findings creating a speedy Wordpress setup.

    I’d like a key to try the Generate Press theme. Please send a key to [email protected].

    We’re just launching CoreMark homes.com on a Wordpress platform and I haven’t done any optimization for performance.

    I’ve only had experience w magento sites so any performance optimization in Wordpress are are appreciated. Clicking around in the dark

    1. 1

      Hey Ryan, welcome to the club. I also joined IH just 2 days ago and I´m amazed by the community here. Never experienced something like this. Thanks to @csallen!

      I already authorized your domain coremarkhomes.com in my GP backend to use the GP premium theme for free and I will send you an email with the download link for the GP premium plugin and links to support pages.

  9. 1

    Can you give me a premium version of GeneratePress? My current website shop.ufaja.com claims to be headless, but the mobile Google score is only 50. I don't know if the premium version of GeneratePress is suitable for e-commerce sites. If it is fast, I want to migrate to wordpress

    1. 1

      Hey Lelinta, GeneratePress premium has 13 different E-commerce themes included. Check them out here: https://generatepress.com/site-library/. I send you an email for your free premium.

  10. 1

    Congrats. I'm always trying to find ways to make my site faster. If you have a suggestion, my site is https://3das.com

    Have you looked into serverless / static web site architecture? I believe there are ways to covert WordPress sites (mostly brochure-based) to static sites.

    1. 1

      Hi Brian, I made a GT metrix check for your site. The report says, that the loading time is 30s. But I´m not sure if your site is really that slow, because as I visited it, my impression was that it loads fast. Anyway, I would recommend checking this issue.

      Honestly, I have no idea what serverless/static websites are. Can you tell me more? Is there an advantage over WordPress?

      1. 1

        Thanks for the GT Metrix check. I'm using Plerdy (similar to HotJar) and it seems like that is causing the delay (although everything else has loaded).

        Take a look at https://www.strattic.com/. It has a good explanation on how serverless WordPress sites work. There are DIY solutions that are cheaper, but it's beyond what I can do & I've been looking for a developer to help me out with it. If you're interested in DIY, look up https://buddy.works/ and https://statichtmloutput.com/alternatives/. Once everything is set up, you can use a cheap hosting platform to host the static site.

  11. 1

    What do you think of AMP (Accelerated Mobile Pages)?

    1. 2

      Hey Marc, that´s a good question. I tried it one or two years ago and it caused trouble.

      So, I just gave it another chance. I installed the AMP plugin and the Generatepress AMP plugin on finmods.com, ... and (drumroll please) ... it still makes trouble.

      I get dozens of error messages in AMP and my Gumroad shop doesn´t work anymore. That's bad enough for me and I uninstalled AMP again.

      My website is now optimized for desktop traffic, which at the moment makes about 2/3 of my (still small) traffic. For mobile, my site speed is only average. Still looking for a way to solve this issue.

      What´s your experience with AMP?

      1. 1

        I am using the AMP extension for a blog and it gives good result.

        I guess that for a more complicated website like an e-commerce it can make trouble.

Trending on Indie Hackers
I built an AI that turns an idea into a live business in under 10 minutes. Here’s what 1,000 launches taught me User Avatar 77 comments I built a web-based vector editor from scratch and integrated an AI Agent. Need just ONE beta tester! User Avatar 70 comments Building Noodle, a keyboard-first REST client for the terminal User Avatar 31 comments "Looks Good to Me" Is Quietly Killing Your Feedback Loop User Avatar 28 comments Launched 580 landing pages in 1 week. Solo. No team. User Avatar 18 comments I built a competitor monitor for indie founders User Avatar 14 comments