• Installed this on a test site and noticed it tells me which server responded. Very handy when running sites on multiple servers. Because of this I installed it on a few live sites.
    I quickly found 1 site who’s redis cache hadn’t been configured correctly just by looking at the dashboard, so big thanks for that.
    The one bit I would love you to add is the number of DB queries in the footer.

    I’ve run

    function performance( $visible = false ) {
    
        $stat = sprintf(  '%d queries in %.3f seconds, using %.2fMB memory',
            get_num_queries(),
            timer_stop( 0, 3 ),
            memory_get_peak_usage() / 1024 / 1024
            );
    
        echo $visible ? $stat : "<!-- {$stat} -->" ;
    }
    add_action( 'admin_footer_text', 'performance', 20 );
    

    previously for this info and it’s been a big help seeing number of queries and time to generate the different pages.
    No idea where I found that code, I’ve had it in functions.php for years but full credit to someone else (whoever they are) for it.

  • The topic ‘Nice Little Plugin, would like Number of Queries added ;)’ is closed to new replies.