Lightening web page load for crawlers - wordpress

On a shared host, I'm experiencing high CPU / page load times. Wincachegrind and Firebug showed that the bottlenecks are:
- db queries (time)
- images loading (time)
- Wordpress plugins / filters (CPU)
I have installed WP Supecache, however I have noticed that the problem has been shifted elsewhere: as the site has a great number of posts (> 50,000) the time & CPU consuming task has been shifted to WP Supercache generating static files, on crawlers access.
Ironically, the site has very little user access daily (about 1,000), while suffering large crawler access daily (Google webmasters shows a MAX:23,669/Average:11,712/MIN:4,069 pages stats).
I was thinking about helping the crawling page phase, avoiding loading some elements/parts of the page when being crawled. For example, images and "related posts", not "strategic" for the indexing process....could "lazy loading" of those parts help?
Or? What steps would you take further on, assuming:
- the users traffic to the site is very small,
not justifying stepping to costly dedicated/CDN solutions
- Efforts have been taken to minimize plugin impact
- Page design has been improved using CSS sprites, source minifying,
using consistent host names, etc, etc pushing page score
to higher limits (Yslow, pagespeed)
I believe the next step would be to use Wordpress as the backend, creating a lower level coded frontend (PHP + MYSQL)....
Comments appreciated

I have switched to a dynamic page whose content is loaded with jQuery.
This turned down page load time to a 1/3 !!!
Great!

Related

How to reduce ttfb time in wordpress sites?

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.

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 test site is slow despite good scores on several page speed sites

I am developing a website for a car rental company and am using a subdomain for testing. The site is very slow on all browsers (and on the backend) despite high score on Pingdom, PageSpeed Insights, and GTmetrix. I'm not new to WordPress and page speed and have been able to achieve speed with the use of plugins and the right hosting.
I am using the Avada theme with the following plugins (I have already removed each plugin individually to see if any one of them was the culprit):
Autoptimize
JCH Optimize
Ninja Forms
Justified Image Grid
W3 Total Cache (used with maxCDN)
WP Migrate DB
WP-Optimize
wpMandrill
Our hosting provider is HostGator but I want to use Pagely.
Here is our Site
I just tested it out on pingdom and scored a 91/100.
Also, pages with very little content, such as our contact page, run slow as well.
FYI, this is a test site so you might find random pics of my dog in strange locations.
If you are using Google Chrome, open an incongnito page and open developer tools, click on network and then load your site. Now sort by time(latency). You will notice JCH Optimize, Autoptimize and WP-Optimize are taking up a lot of load time. Disable these plugins one by one to see if it makes any difference.
Also - I don't think you need three different plugins to optimize your site. One should be enough.
Hope this helps.

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.

Resources