Extreamly Slow Wordpress Site - wordpress

I having a Wordpress site which take more than 5 sec to load out, and is extremely slow performance.
I tried everything i can to speed it up but still no luck.
Any recommended solution for me ?
Here is my Website URL
Stormbodykits.com

A quick look at the Network tab in Dev tools show that this is not limited to PHP/WordPress but is equally effecting all static content such as images, JavaScript and CSS. This is a hosting issue, either too small of a virtual host or overly saturated shared hosting. If your hosting the site yourself you may need to upgrade your upload speeds through your ISP. Long story short, WordPress is not generating this content. The time is being spent fetching from disk (or memory in some cases) and then sending the resources to user. The most likely bottleneck in this scenario is the network when looking at full seconds rather than milliseconds, especially on a site serving only a few connected users at a given time.

Related

Two WordPress sites on a particular host, loading way slower than other WP sites on other hosts

I maintain 12 WordPress sites which run on several different hosts. Two of them are very slow loaders in particular, taking up to 30 seconds to load. The person who actually hosts those two for my client uses the same hosting company I use for my four sites. My sites load well, and they are more involved sites. I'm on a VPS setup. He is using a reseller setup for his care.
All the sites I maintain are using the Genesis Framework, and run very well on all the hosts, but these two have sporadic loading times and I cannot seem to get a clear answer from him why those two sites are having trouble being quick. I've installed database optimizers to run at 6 a.m. each day. These are not complicated sites, with just pictures and text. No extensive javascript use. Just pictures and text.
Here is my question... is there something about the initial connection to the site that would be an issue. To use an analogy, it's like trying to go into a house, but the door knobs are greased and you can't get a good grip to do it, but all my other sites have clean dry knobs. Is there something that could happen when there is a site trying to make a connection by DNS that could cause a delay?
What makes this also more confusing is that when I try to do GTMetrix scores, it seems like it's taking a while for the site to get fetched, yet the site scores are coming up at 86% (B), which is pretty good. How am I getting an 86%/B rating when the site is taking so long to connect?
Any thoughts or insights would be appreciated. I feel like I'm getting no satisfactory answers from the host guy, and the client is getting antsy.
Some ways that I used to speed up my sites:
Disabling or limiting the frequency of WP Heartbeat.
Use CloudFlare CDN.
Turn the whole into static HTML (If not e-commerce sites). Good plugin to use WP2Static

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.

What are my (other) options to reduce resource usage on shared hosting?

I got a message from our shared hosting company (InMotion) informing me our resource usage is too high. We have a WordPress-powered website. To give you an idea of our website, based on Google Analytics, we get 8,343 unique sessions per month. According to our webhost, we used 8660.71 MB of bandwith in January.
One day, InMotion told me there was a spike in CPU usage, and included an excerpt of my access logs which they say indicated "some heavy WordPress Admin activity". They said "We are not exactly sure what this admin user was attempting to accomplish, however this activity does seem to have inflated your account's CPU usage." They included the ID of the item that was uploaded and caused the spike. It was the only file I uploaded that day. It was a 7 kB PNG file; I uploaded it once, deleted it and uploaded it a second time.
I do not understand the complexities of resource usage, so to me, it seems stange that uploading a 7kB twice can bring about spikes and be considered heavy activities.
When I asked more about the Ressource Usage graph, they replied this : "The numbers are percentages. 100% means you're right at the top of what we consider normal CPU usage on a shared platform. Anything above that is VPS territory. If you zoom in on the graph, you'll see that for the most part you're right at 100%, but you occasionally have spikes over. Going through the logs, your CPU usage is mostly from the Wordpress Dashboard, so disabling the heartbeat feature should reduce your usage the most."
They also told me there was unusual activity to the wp-admin/admin-ajax.php.
At our hosting company's request, I did the following:
Disabled WordPress' heartbeat / autosave features
Installed a caching plugin (WP Fastest Cache)
Installed P3 Plugin Performance Plugin to see which plugins were using most resources
I deactivated 2 plugins that were highest in ressource usage : Scroll Back To Top and Simple Page Tester.
But even with these changes, there are still "spikes" in our resource usage and we are receiving warnings. Our host is recommending we either upgrade to VPS hosting or use a CDN service like CloudFlare or MAXCDN.
So my questions are as follow :
How can I tell what is really causing excessive ressource usage?
Are there other ways to reduce resource usage caused by WordPress?
Are CloudFlare or MAXCDN good for this type of situation?
Thank you for taking the time to read. Any help or tips will be appreciated!
Your usage is not at all surprising. If you get 8,343 unique sessions per month and you used 8660.71 MB, then each visitor is taking an average of about 1MB.
Just loading your home page is about 0.525MB, so if people browse your site (plus with admin traffic) it's easy to see how you might use that much.
Yes, a CDN like CloudFlare or MAXCDN would be really good for your situation. Your page is loading a lot of CSS, Javascript and images that could all be moved to a CDN. This would significantly reduce your host bandwidth usage and probably lower your page load time as an additional benefit.

Site is abnormally slow

My site is running on Wordpress and uses Woocommerce to display most of the content. See my site here, I have a lot of images that could be part of the problem...
Google PageSpeed says I'm 0/100 for mobile speed and 11/100 for desktop speed, with a 44.5 server response time..
GTmetrix gives me an F for my speed, recommending I serve scaled images, leverage browser caching, add expired headers, make fewer http requests, and more.
I'm trying to interpret all of these poor scores, and would like some help on how to dramatically speed up my site.
Does anyone have any tips, or know what I can do to help increase the speed and improve my scores on these sites?
That site is certainly slow, however the load times appear to be primarily from the server (I'm seeing about a 3-5s load time before the server responds with content for the home page). This has nothing to do with how many images you are loading, it probably means you have a really slow plugin or piece of code.
I'm not sure how technical you are, but I'd recommend profiling your code. An easier solution may be to disable your plugins one-by-one until your site suddenly loads faster. Then re-enable every plugin except the last one to be disabled, and verify your site still loads fast. If it does, then the disabled plugin is likely the issue.

How to Scale Wordpress on Shared Hosting to Survive a Traffic Surge

So just like any other indie developer, I ran a small personal Wordpress blog on a HostGator shared plan to show case projects and notes.
Now, let's say you have an article that is randomly picked up on HackerNews or Digg, how do you config your Wordpress or the Shared Hosting to survive the sudden surge in visitors and page hits?
I have looked into a few things like: making that article a static page, turn on caching so the page can serve without querying MySQL. Would love to hear from your experience.
I would start with a caching plugin like W3 Total Cache. It has the same effect as the first technique you mentioned, but it does it automatically.
If you want better performance for a few pennies more a month, try Amazon Cloudfront. It is a little more setup, but the benefits are well worth it. I set up my DNS to point to Cloudfront, so all traffic hits their edge servers first. Then I set up my server as origin.domain.com and make sure that cache control headers are set (e.g. max-age=3600). When visitors come to my site, they hit the Cloudfront edge server nearest them (there are 22 locations worldwide), and if the page is cached, my server never gets hit. If not, 1 request is made, and for the next hour, all requests are served from the cache on the edge server.
As has been already mentioned, a caching plugin is a must. A CDN helps also for media and static files like js and css, and then your theme is also a crucial factor in your site's performance. Keep it clean, minimize queries, and try to avoid frameworks and the overhead they introduce.
I don't use a cdn, but I have a virtual server where I use Nginx to listen on port 80. It also serves the easy stuff like images, text files, stylesheets, etc. Anything more difficult (wordpress content), it passes on to Apache which listens on a different port. Apache is an awesome webserver but it is a beast as far as resources go. If you have 20 items on a page that need loading, and you can have something svelte like Nginx handle 19 of them, it helps tremendously.
Here is an old optimization article I wrote about a year ago - that might help a bit more also: http://trioniclabs.com/2011/12/my-take-on-wordpress-optimization/
Good luck.
I also host with HostGator, and have addressed performance issues with many of my sites.
My advice:
Find a different shared host. Since EIG bought HostGator last year, the performance of their shared accounts has fallen off a cliff. MySQL performance is poor, and support wait times are growing.
Previous to 2013 I had high traffic WP blogs that ran with no issues. The new hardware and policies however have taken even my small/simple WP sites down to very low performance levels.
If you stay with HG...
Disable wp-cron: Here's a good help doc: https://support.hostgator.com/articles/specialized-help/technical/wordpress/how-to-replace-wordpress-cron-with-a-real-cron-job
Install and use a caching plugin, using mod_rewrite caching (not PHP caching)
A CDN will help the site load faster, and if you host the assets on a different provider, it can help reduce the load on the server.
Honestly, if there's even a remote chance of getting massive traffic, upgrade to a scalable VPS, or a web host that handles traffic surges like WPEngine.

Resources