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.
Related
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.
I noticed that on a wordpress site I'm going to take over the following scripts are found on multiple pages:
When the page is displayed here is what I see:
This seems incredibly scammy, does anyone know what this is?
I am going to delete all of those and restrict access to the website in the meantime
Thank you
One of two things likely happened. Either you are serving flash and have a really old version on your computer - OR - your website has been compromised and injected with some sort of malware.
Are the unusual scripts showing up in the content or the theme files? If they are showing up on the content, that means someone has added these scripts to the database, and it will require a bit of cleanup (or a restore to a previous version). If the scripts are showing up in actual .php files, then someone has gained access to the file system on the server.
You should re-install WordPress entirely to ensure all core files are clean, and then go through plugins and themes to ensure all malicious code has been removed.
Also, it would be good to find out how this happened, to attempt to stop it from happening again.
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 ?
I'd like to add a installation of a Wordpress site to version control. After researching a little bit, I found some files/folders that should be ignore, like sitemap.xml and cache folders.
Every single one of them say I shouldn't ignore wp-content/plugins/, which is a reasonable advice at first. The question is: How should I deal with plugins that alter the database?
I can see two scenarios:
If the plugin has to add some tables on installation, this trigger would be lost since it would already be "installed" after uploading the files to the server.
If I must access the installation screen on production, then there's no reason to version control these files.
I would suggest to take a look at this great presentation. It's the most complete I saw yet.
http://stevegrunwell.github.io/wordpress-git
You should have your plugins directory in there too since you do want to track plugin files. As for the database, that's another subject completely. Take a look at the development of VersionPress, it should be out at the end of the year.
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.