bbPress

Simple, fast, elegant

bbPress Plugin Browser »

bbPress Benchmark (0.2.2)

Download

Version: 0.2.2

Last Updated: 2008-9-5

Requires bbPress Version: 0.8 or higher

Compatible up to: 0.9

Author Homepage »

Plugin Homepage »

Donate to this plugin »

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(4)

Your Rating

Author: _ck_

Now you can find out a bit more detail than just "11 Queries, 0.500 seconds" at the bottom of your bbPress pages. bb-Benchmark prints simple benchmarks and mysql diagnostics, hidden in page footers for administrators. Simply do a "view source" on any bbpress page to see hidden results at bottom (visible to administrators only). Output includes current server load, page render vs mysql query time, slowest query and a list of all queries used.


  1. meitershaker

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Member

    hi, how to give the possibility of all users to see the report in the source code, please?

    bye

    Posted: 1 year ago #
  2. _ck_

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Moderator

    While that is possible to do, I strongly recommend against it for security reasons as there can accidentally be information you don't want the average person to see in there.

    If you insist, you can change this line:
    if (bb_current_user_can( 'administrate' ) ) :
    to something like
    if (1 || bb_current_user_can( 'administrate' ) ) :
    which will make it always execute.

    Again, I strongly recommend you do NOT do that.

    Posted: 1 year ago #

RSS feed for this topic

Add a Comment

You must log in to post.

Code is Poetry.