Hello, if anyone would like to test the plugin, please follow the link, which is only visible to registered users. There the plugin for PHP 7.4+ has been revived.
]]>Hello,
WP Page Load Stats – Insights into website performance for webmasters and visitors. – An update for PHP 7.4+ would be the icing on the cake! – and to make it even better.
]]>where does this plugin pull the memory stats from? I’m troubleshooting why my site is so slow. I’m showing this info on our home page below. Where is this 40 MB coming from. My php limit is set to 256?
5137 queries in 22.769 seconds.
Average load time of 10.0503 (122 runs).
147 out of 40 MB (368%) memory used.
Peak memory usage 183 MB.
https://libmaneducation.com/phpinfo.php
Any insight would be great.
]]>Nice plugin, works great.
Noticed one bug though: if PHP memory limit is in gigabytes – the plugin doesn’t ‘understand’ it.
E.g. – https://imgur.com/a/Cy1MF. The memory limit is set to 3G actually.
Hi,
Nice plugin.
Pressing the x button does not remove the box, which I thought it would.
It would be nice if you could close it.
Thank you.
]]>Having just installed the plugin, I was wondering if someone could define a statement like this:
Average load time of 0.772 (4 runs)
This timing really isn’t close to any of the 4 page load tests I have put the page through. Is this 0.772 (assuming millisecond) the Time To First Byte (TTFB) for this page? And does the “4 runs” mean the page was loaded 4 times? Or simulated 4 times?
Just curious.
Thanks.
]]>Would be helpful if it has a comparison so I’d understand what the numbers mean. I don’t really know what a good load time is for my sites. I’ve been working on load times but the stats alone won’t help me. I’m mainly taking advice and hoping it’s working.
]]>Line 108, add the following :
if ( current_user_can( 'manage_options' ) ) {
/* A user with admin privileges */'
BEFORE the closing PHP tag.
At the NEXT opening PHP tag add the following
}
.
For ease of use, I have done the following:
if ( current_user_can( 'manage_options' ) ) {
/* A user with admin privileges */
?>
<div id="wp_pls">
<ul>
<li><?php printf( __( '%s queries in %s seconds.', 'wp_pls' ), $query_count, $timer_stop ); ?></li>
<li><?php printf( __( 'Average load time of %s (%s runs).', 'wp_pls' ), $average_load_time, sizeof( $load_times ) ); ?></li>
<li><?php printf( __( '%s out of %s MB (%s) memory used.', 'wp_pls' ), $memory_usage, $memory_limit, round( ( $memory_usage / $memory_limit ), 2 ) * 100 . '%' ); ?></li>
<li><?php printf( __( 'Peak memory usage %s MB.', 'wp_pls' ), $memory_peak_usage ); ?></li>
</ul>
<div class="actions">
<a href="void(0);">×</a>
<a>">-</a>
</div>
</div>
<?php
} //Nick Edit - The above checks if user is an admin. If they are, shows the stats, if not, it won't.
]]>
Hi,
Congrats to your nice plugin !
My question: the plugin itself makes another more queries to display the stats on the frontend?
Thanks
]]>This is handy but it shouldn’t be visible to everyone. Would it hurt to wrap the load time display in if ( is_user_logged_in() && current_user_can('manage_options') )
?