Get my FREE ebook:
"SEO FOR BLOGS: The Ultimate Guide"
Limited Time Offer!

How To Display Your Pages Loading Times And Number Of Queries

Every webmaster should take good care of their pages loading times, especially since Google announced that loading times influence the ranks of your pages in the search engines’s result pages.

Displaying the loading times of your pages and the number of queries couldn’t be easier. Simply paste the following piece of code on your pages:

1
<?php echo get_num_queries(); ?> queries in <?php timer_stop(1); ?> seconds.

The get_num_queries() function is used to display the total number of queries used to generate the content of the given page. The timer_stop(1) is used to display the loading time of the page in seconds.

If you enjoyed this article, Get email updates
(It's Free)
Sté Kerwer
Post written by: Sté Kerwer
Bonjour from France. My name is Stéphane Kerwer and Dukeo.com is my blog. I do most of the heavy lifting in here but from time to time, you may see some guest posts. If you wish to receive updates about Dukeo, subscribe to RSS Feed, follow Dukeo on twitter or become a fan on Facebook.
10 Comments
  1. Anon
    Anon

    It seems that, once again, Google is trying to make our lives just a litte bit harder. Thanks for helping to make it a little easier for us. :)

    • Liz
      Liz

      Google can be so stupid sometimes!! >:( I’m definitely using this.

  2. Sarah
    Sarah

    Ugh! there’s just so much to keep in mind with search engine stuff, I didn’t even know that that was something that they are taking into account. It sounds like this is going to be very useful, thanks so much!

    • Dana
      Dana

      I feel like a lot of that just goes over my head. I usually just apply whatever is posted here and trust that it works! lol

      • Sarah
        Sarah

        That’s always a good method ha ha! It’s never let me down. I trust that the codes here are going to be very helpful because they have been in the past! I need all the SEO help I can get!

  3. Chris
    Chris

    Very cool! Thanks a million, I’m going to apply this right now!

  4. already I set up it in my blog and works amazingly!!!
    thanks for sharing.

  5. Mitch
    Mitch

    Alright! I’m definitely doing this one. Thanks for posting this!

  6. Samie
    Samie

    I’m going to apply this, cross my fingers and hope that my search engine rankings go up because of it. I know that it will take more than that, but I’m definitely hoping this will help. :)

arrow