Wordpress website loading extremely slow - wordpress

I have a question. I have this website, the ftp looks like this:
The main website is inside the httpdocs folder. But outside that folder there are like 3 different copies of the website inside the httpdocs folder. Will having so many copies of the main website OUTSIDE the httpdocs folder affect the speed of my website INSIDE the httpdocs folder. I think it would if it were inside the httpdocs folder but in this case its outside of it, will it affect my websites speed?
**incase you're wondering why i have the copies its because 1 is a backup and one is development environment.

No, it should not. First of all check if your server CPU & RAM is not overflowing
But there is so much to do to fix wp speed:
Install caching plugin - I would recommend W3cache or WProcket cache. You can find optimal settings online.
minify CSS/JS - you can do it using the caching plugin
Install autoptimize and "above the fold" plugins for mainpage optimization
optimize images - save for web, combine into sprites, use base64
install CDN - cloudflare is free but maxcdn have better parameters.
Use GTMETRIX to monitor your progress
update your .htaccess file
install p3 performance plugin to check which plugins are slowing you down
check if your theme is not causing to much slowing - maybe you can combine css/js files
see if you not using too much external files.
Reduce number of requests and number of dom elements - use DOM Monster extension in chrome
I will follow this question. update me with your progress and I can give more tips here

Test your server in https://www.webpagetest.org/ and check for which file it take longer time. i don;t think it make any problem out side of htdocs folder

Just check the WP-Content folder and check there size of images, try to decrease the size of images.
and check the RAM of Server is it free or fully loaded ?

Related

How can I optimize a WordPress website except minifying files and compressing images?

I am trying to optimize a WordPress website. I already minified some js and CSS files. I already tried compressing images and videos and trying to eliminate render-blocking files but the website speed is just the same.
The issue that I found on the website is that it has files that are too long and even I enabled caching, some files are not being cached.
Any information or website that will be helpful to optimize the website?
First of all, take a backup of your site manually
Go to public_html and compress all the files
After that export a copy of the database by phpMyAdmin
Then you can perform the following steps:
Clean the database where there is a lot of data that could be cached You can do this with several plugins (I recommend :WP-Optimize - Cache, Clean, Compress)
After you clean and optimize the database, deactivate this plugin and install the WP Fastest Cache plugin
Include the following options (note that you must turn off any other speed booster plug-ins because including more than one speed plugin can cause negative interference):
-cach system
-preload
-logged-in Users
-Minify HTML
-Gzip
-Drowser caching
-Disable Emojis
*Notice:
preload
Enable – This tells the plugin to preload your pages. Upon firing, you'll get a popup asking you which pages to cache.
Check all the categories – Particularly Home
page, Posts, Categories, Pages
Leave the “pages per minute” at 4
You may need to reduce this number depending on your hosting provider limits.
Leave the “Restart After Completed” option unchecked.*
After you do that, compress the images with any compression plugin (i use smush)
Then go and test your site here https://gtmetrix.com/
This article https://gtmetrix.com/wordpress-optimization-guide.html
I have benefited a lot from it on my personal site and it has reached 96% speed because of these tips
You need to follow the following instructions:
take a backup of your file.
Install a cache plugin like as [https://wp-rocket.me/[1]
minify css,html,js of your wordpress file
This plugin is working fine.

Reduce the WP setup size

I have to reduce my WP setup size, to reduce the site loading time. I have already deleted log files, backup folders, cache files, old setup folder and some other unnecessary files and folders also. I also tried some plug-ins to optimize the site, like Media Cleaner, WP-Optimize, etc. But still I have to further reduce the size, cause its facing issue while uploading the setup on Github. Do you know, how it can be reduced further...?
First of all you need to check what are the heaviest directories and files in your Wordpress installation.
Are you trying to upload your website to GitHub Pages?
If so, you need to check their limitations regarding the usage.
GitHub Pages sites are subject to the following usage limits:
GitHub Pages source repositories have a recommended limit of 1GB. For
more information, see "What is my disk quota?"
Published GitHub Pages sites may be no larger than 1 GB.
https://docs.github.com/en/pages/getting-started-with-github-pages/about-github-pages
In this case you might try to reduce your uploads directory by optimizing images and removing unused Image Media Sizes. There are many ways how to do it. You might take a look at this plugin Stop Generating Unnecessary Thumbnails
This might help you to upload your website to GitHub.
Regarding the site loading time - this is a different thing, which is related to using cache plugins, such as WP Fastest Cache or WP Super Cache, and etc., and applying other optimizing techniques.

Wordpress old/updated/deleted CSS files are being served minified and I cant delete them. Why?

Backstory
We are using a LAMP stack (bitnami) to run a multisite Wordpress instance. This is the second time I have ran into a file that will not update when we push an update (We use git and pull the latest changes to the bitnami server).
We have noticed that when deleting (renaming for that matter) the file, it can still be retrieved by performing a GET on the resource (or the url in a browser). Also, if we were trying to make changes the changes do not come with the file - it is still the old file. Interestingly enough, the file is minified, which because of issues with this in the past we do not use any plugins that minify our CSS. So there should be no reason for it to be minified.
We have WP Total Cache - clearing all caches is successful but does not stop this from happening. (We used to use WP Super Cache, when this bug happened we decided to change plugins to WP Total Cache and purged the cache and it fixed the problem - but it is back and that no longer works).
I have also seen the trick where we can use a "?ver=###" query param on the url. This works but this would prevent us from using CloudFront for our files (currently disabled for all this testing so its not the problem either). Also I am not convinced it is a long term solution - or a solution at all since these minified files are being created and shouldnt be in the first place.
Additional information
It may not be helpful, but the files we have noticed this with are in a theme folder that is not technically an active theme. We just use the folder for additional resources that we have created ourselves. We reference them in the head of some pages.
Example:
/wp-content/themes/active-theme <- The active theme
/wp-content/themes/resources <- Our custom resources
Questions:
Where is this file being stored?
How can I delete it?
How can I prevent this from wasting our time ever again?
I found that the issue was with the bitnami server itself. The Apache2 module PageSpeed was causing the served files to be minified and cached resulting in the pages never updating no matter what we did on wordpress.
Apache:
To disable PageSpeed, comment out the following lines in your httpd.conf (/opt/bitnami/apache2/conf/httpd.conf)
#Include conf/pagespeed.conf
#Include conf/pagespeed_libraries.conf
Solution found here

WP Super Cache to create a static version of the full site

I'm working on a WP project where the live site can't use WP (for security reasons). My solution was to build the site on a local server using WP, then export a static snapshot of the site (using WP Super Cache) that can be uploaded to the live server.
I have a gulp script to package the entire site:
Get the static files generated by WP Super Cache
Copy all assets (images, uploads, etc).
Copy other necessary files like .htaccess.
Problem
When using WP Super Cache I've noticed pages are missing from Super Cache. For example, my site has 82 pages but my cache contains only 65.
What are the settings in WP Super Cache so the entire site is cached into the WP Super Cache directory?
Or, is there another plugin better suited for caching all the pages?
I wouldn't use a caching plugin (or any other plugin) for this as they are not made for this purpose and would need (extensive) modification not only now, but also down the road when the plugin gets updates.
I did exactly what you are planning, on a larger scale of a couple of thousand Wordpress sites. I deployed those sites statically - also for security reasons - with a PHP script that does essentially this:
Get a static version with wget (you will need some parameters for recursion, attachment rewriting etc.)
Modify anything you need in the html files (you could use sed for this).
Copy assets (depending on your needs and on the wget configuration)
With a tool like grunt you could even run more tasks, like minification, uglification and image compression once you finished creating the static copy.

wordpress mu image speed problem

I have an mu install with the typical blogs.dir folder storing files for each blog. When loading these images however they take forever to appear, but they eventually do. It seems that wpmu uses php to serve each image which is ludicrous. When using images from the same domain but in a root folder, the images are displayed quickly.
Is there a workaround the blogs.php for rendering files?
Could there be something else wrong in the settings of my install?
Hard coding the Rewrite Rule instead of using blogs.php is a temporary workaround with huge speed differences. This can only work if you already know the blog ID's.

Resources