Display page loading time and queries in WordPress

If your WordPress website is being too slow, one of the first things you should do it to find out the loading time and the number of queries. This can be simply done by adding the following template tags in your template: <?php echo get_num_queries(); ?> queries in <?php timer_stop(1); ?> seconds.



No comments yet.

Write a comment

You must be logged in to write a comment.

« »