How to reduce ttfb time in wordpress sites? - wordpress

How to reduce ttfb time ?
my wordpress site has very long ttfb time.
i tested result several time and result absolutely confuse me sometimes is lower than 200ms sometimes more than 5s !
what is the problem ?
network configuration or server side scripts ? or something else ?

It is not really a Wordpress specific problem as all websites should try to have a ttfb time as little as possible.
Generally speaking when you use a tool like Google page Speed or PingDom (to name a few), you should get some advices on how to improve your ttfb time.
Like using a cache system, compress and regroup JS/CSS files, reduce images size, using a CDN, etc...
Now on Wordpress ecosystem, you have a lot of plugins what can help you with that (especially if you're not a developper).
Here is a list of some I know and have already used that may help you:
W3 Total Cache (caching plugin) - A good free solution for setting a cache system on your WP (realivelly complicated to handle though)
WP Rocket (caching plugin) - an excellent non-free solution. Work pretty well (much easier to handle than W3 Total Cache). Affordable.
Imagify (image compression plugin) - this plugin re-compress and optimize you medias. It is developped by the same company as WP Rocket, you need to create an account on there service to use it. And they have a free plan.
In any case, if you're not a developper, I encourage you to get help from one because some caching options can produce unwanted effects like a JS component that doesn't work anymore of stuff like that so you need to test if your website still works each time you make a change.
Note: long ttfb time can also be related to the server itself (mutualized one for example).
Hope it help.

Related

How do I speed up a WordPress website in terms of SEO?

I Choose WordPress for blogs and news related. But my website load speed is very low, It takes higher time related to SEO friendliness This is my site althyper.com
I need To reduce time to make it SEO friendly Please give some suggestions
Thank you in advance
Follow the instructions on https://pagespeed.web.dev/report?url=https%3A%2F%2Falthyper.com%2F
For example, to "Serve images in next-gen formats" I use a plugin called WebP Converter for Media. Also consider using plugin called Hummingbird for caching and compressing. But it seems you already get score of 100 for desktop. That's pretty good.
This is a loaded question. Did you create the website yourself? If so, you should be thinking about optimisation while you're developing.
If not, then you're going to have to rely on a combination of plugins, reliable hosting and common sense.
Some things to consider:
Find a plugin that offloads all local assets (images, JS files etc) to a CDN, and also minifies CSS and JS (WP Rocket might be the way to go).
Use a theme that supports lazy loading.
Use fast, reliable hosting (WP Engine for example).
Keep your database lean - don't keep thousands of revisions if you don't need them.
Disable all unnecessary plugins.
Edit your wp-config.php file to allow adequate PHP memory allowance, For example:
define('WP_MEMORY_LIMIT', '96M');
This should improve things. Take some benchmarks here, here and here before you do any of this so you have before/after values to compare.
Good luck.

How to improve stylesheet.min.css loading time in WordPress?

Recently have made the website and used WP Fastest Cache and Clearfy plugins to optimize loading speed.
The waterfall indexes become much better, but still are problem with stylesheet.min.css, it still is too long.
How I can to reduce it's time?
Website waterfall image:
I cant see your website so just few recommendations.
you can use gzip compression if your server support it
you can try use some CDN service to speed up delivery of your files
you can try to remove unnecessary parts of you stylesheet.min.css
(off topic you can try to lower the number of your website requests - 146 is quite a lot)

How to reduce the number of requests from Wordpress website

Actually I have done with the Wordpress website optimization through wp-optimize, Smush and wp-fastest-cache plugins and also optimizes images.
So my website speed reduced from 20+ seconds to 12-14 seconds almost.
But, I have checked with gtmetrix.com and pingdom tool, the number of requests from our website is still as it is (i.e. about 260+) and which is so harmful for SEO perspective.
I have to reduced those number of requests from our website and also increased speed from 14 seconds to 7 seconds.
So, what type of plugins or some custom activities I need to do for reducing number of requests from our website.
Please suggest.
Consider abandoning any use of plugins that perform these functions. Everything you are getting with compression plugins, is a simple job you can do yourself, lightening the processes and allowing Wordpress to be leaner and more secure.
As far as excessive requests are concerned, the same principle as stated above applies. The use of third-party plugins, involves a massive expenditure of useless resources and calls to scripts that are often redundant on all pages. The work to be done is to exclude all requests for various scripts in unnecessary pages.
Let's take a trivial example. By installing the Woocommerce plugin that everyone uses, they don't realize that the plugin in question preloads all the additional files it needs on each page and not on the pages that are strictly necessary. Like for example the js that allows the product gallery, it is also loaded into the homepage where it does not exist.
So be patient, check every additional request and exclude it if not necessary using the simple native Wordpress functions.
Forgive my bad English, but I hope I made myself understood.

wordpress page speed not working for desktop version

I did all the things Like image optimization, rendering for page speed optimization. I checked my mobile page speed increasing but desktop page speed not increasing it's still 22 again and again. I want to know why I am facing this problem. My website is www.sagorkhan.com. Can anyone please help me?
enter image description here
There are many factors that could affect your page speed and actually I see you've done a good job so far but you may go a litter farther.
I've tested your site with google page speed, pingdom tool, gtmetrix, webpagetest and here is my conclusion:
I guess your problem is about how to reduce server response time. While testing your site, it took more than 3+ seconds (6 on webpagetest) to completely load which may be considered a huge time. Reduce the server response time is not an easy task and could be a real challenge but here is a few tips:
1. Images optimization:
You said that you've done image optimization but still, your site have some huge images, one of them for example, is about 1MB which is can really affect the server response time. These images can be easily optimized, just go to google page speed and after you test your site scroll down and find: Download optimized image, JavaScript, and CSS resources for this page. Download the zip file and try to replace the old images with optimized ones using any FTP client, FileZilla is more then good for that.
Note that you can find the images locations under Optimize images section in case you don't know the location. Repeat that step again to make sure all your images are optimized.
Also I'd recommend some plugins like wp-smushit for optimize and compress all of your images and Regenerate Thumbnails to fix Serve scaled images issue. tinypng is good online alternative too if you like to do it manually.
2. Optimize CSS Delivery
That's not easy actually because it may requires to optimize the code and structure of your theme but you can give Autoptimize or W3 Total cache a try. Both support combining and minifying all enqueued JS, and CSS files.
3. CDNs:
CDN can really accelerate your site and greatly reducing your page loading time. Now, there are tons of good CDNs providers but I would recommend CloudFlare as a start since its free and easy to use and their free plan is enough and does work really great.
4. Caching
WordPress caching is a must if you care about performance, I don't see any sign of caching plugins except your HTML, JavaScript, css files is minified already which is good but not enough. I would recommend W3 Total Cache or WP Super Cache.
5. Web Hosting
If you're hosing your site in a shared host, don't hope too much to get perfect page speed even if you done all the required optimization. I'd definitely recommend upgrading to a VPS since its kinda cheap (unmanaged servers can be cheaper then shared host) and not that hard to setup and secure, A small VPS server can have a significant impact on page load speed.
You are resizing massive images using HTML/CSS when you should be resizing them individually using Photoshop or a similar image editing tool. You have a lot of render blocking js, specifically they're the YouTube scripts you're running.
Another big issue is the sheer amount of stylesheet and js files you're loading -- 19 js and 13 css. Try combining your js files together as much as you can, as well as your css files ... you're going to want to minify them as well.
You're loading many components from various sources, adding more http request overhead. If it's possible, you should consider hosting your own copies of some files.
Take a look at the output from https://gtmetrix.com/reports/sagorkhan.com/cBTMzOjD ... that should get you on the road to optimizing. Make sure you take your time reading the pagespeed and yslow tabs.

Wordpress Site takes almost a minute to load

I have been working on this wordpress site for a company and it takes almost a minute to load and I am not exactly sure why. The site itself is not that big and I am just sort of lost as to where to look. They use godaddy as hosting so I can't troubleshoot the site on staging because it always breaks the main site upon transfer. I am also not proficient with php, and as previously stated just sort of lost as to where to look. Any advise would be greatly apreciated.
the site is https://prestige-ballroom.com/
TTFB is too big. Try install plugin for caching content, I would recommend WP Super Cache.
You're loading over 7mb of data on the homepage. Compress everything and reduce file sizes as much as possible. You're using full size PNGs for some thumbnails, for instance. A few of those are > 1mb on their own, e.g. this one.
You'll be able to drastically speed up the full load time of the site by doing so.
However, the real core of the issue here – the reason the site feels so slow – is due to your TTFB, as Alex has said.
Take a look at this breakdown just for that image I linked above:
More than half of the time spent downloading that image was just waiting for the first byte to be returned by the server. I think it's time to get off of GoDaddy.
Here's an even more egregious example:
That's a JS file only a few kilobytes in size, but the download doesn't even begin for over a full second.

Resources