Home > PHP, Programming > Wordpress Widget: Time spent on blog

Wordpress Widget: Time spent on blog

A free thing, isn't it awesome? This little widget shows the total time spent by your users on your blog, with a precision of about two seconds. Your users also get to see how much time they have spent themselves. A demo + download can be found here.

Tested on Internet Explorer 6 and Firefox 3 (RC1).

(before anyone asks: yes, it is based on my previous posts' code)

Iron PHP, Programming , , ,

  1. May 31st, 2008 at 13:55 | #1

    This is cool. Does this script work for Blogger blogs too? Please let us know.

    Thanks

    Falkor
    http://surff.blogspot.com

  2. Iron
    June 1st, 2008 at 10:16 | #2

    I doubt it works for blogspot/blogger blogs, since it is a PHP based plugin.

  3. November 6th, 2008 at 04:53 | #3

    Thank you for constantly updated, always a pleasure to read.

  4. May 19th, 2009 at 02:44 | #4

    As far as I can tell, the plugin is not optimized for high traffic sites and can kill the server with AJAX requests. Especially when the same user opens several pages.

    2 second precision and 5 open pages result in 2.5 requests/sec from the user. ~500 unique visitors, several open pages, keep-alive connections - server dies.

    Consider using indexes for SELECT/UPDATE (ip address is not indexed at all), using INT instead of VARCHAR for the IP address (use ip2long) and INSERT DELAYED instead of INSERT for MyISAM tables (MyISAM is a bad choise here).

  1. May 31st, 2008 at 18:53 | #1
Porn Misson, Crackers