Ever wanted to know exactly how many times your browser is querying the server? Or how long it takes for you page to load? Even Yslow cannot detect these queries!
Just add the script below to your functions.php file in your WordPress installation and the queries will appear in the bottom left or your browser as long as your logged in (and only if you logged in).
[php]
<?
php if (is_user_logged_in()) {
?>
<div id="speed-test" style="padding:10px;background:#F66;color:#fff;font-weight:bold; position:fixed;bottom:0;">
<?php echo get_num_queries(); ?> queries in <?php timer_stop(1); ?> seconds.
</div>
<?php } ?>
[/php]
If you like this script or need help installing it please leave a comment.
1 Response to: Script to help diagnose WordPress speed
thank you for this !
keep the good work