How to check performance of WordPress dashboard

From a very high level, off the top of my head these are the main things that contribute to how long it takes to load a page in the dashboard in WordPress: Application processing: PHP/Apache doing work Database processing: PHP calling MySQL and the time for queries to run External services – calling external API’s … Read more

Remove unused CSS and JS

Google Page Speed tells you that cached files slow down your page not because cached files are slower than non-cached ones. It’s because (for example) file: https://whcl.ir/wp-content/cache/min/1/aad770152f8bd8d0197b0ef0ecc3052b.css is a combination of all your CSS files and it is the only one, so it contains all your theme, plugins and WP CSS code. When files are … Read more

How to test site speed?

I usually use the timer_stop() function via the WordPress ‘shutdown’ hook, like this: // Grab the page load time upon WordPress shutdown. function page_load_time() { echo ‘<p>Page load time: ‘.timer_stop(0, 5).’ seconds.</p>’; } add_action( ‘shutdown’, ‘page_load_time’ );

Bandwidth usage increased in WordPress 3.5

Based on the information provided its nearly impossible to tell whether or not WordPress is the cause of your problem. However its almost certain that its not. That amount of bandwidth is highly excessive for it to be contained to a “problem* caused by the WordPress core itself. You could attempt to inspect the amount … Read more

Conditionally include files in functions.php?

Use WordPress’ conditional tags, global variables, defines, class checks and the like. For instance like so: <?php // load helper functions – always require_once get_stylesheet_directory() . ‘/inc/helper-functions.php’; // load admin functions – for back-end only if ( is_admin() ) require_once get_stylesheet_directory() . ‘/inc/admin-functions.php’; // load WooCommerce functions – when WooCommerce is active if ( in_array( … Read more

Site loading extremely slowly

Well I looked at the website using FireFox I hit F12 and went to the Network tab. Hit the refresh button within the tab. This is the result I got a bunch of your CSS and images are taking a really long time to load. https://developer.mozilla.org/en-US/docs/Tools/Network_Monitor#Performance_analysis

does wordpress serve static files?

Usually: no. When WordPress is running on apache with mod_rewrite enabled, it’ll use # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress To make sure that static files will NOT be served through WP. A plugin might … Read more

Wordress importing scripts

Option 2. Option 1 is just flat out incorrect, not a valid alternative. The proper methods for loading CSS and JavaScript in WordPress are documented here. Also, there’s no meaningful performance difference between the two.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)