Might be too early. But I thought I’d let you know. This is the error it throws:
Uncaught ArgumentCountError: pi() expects exactly 0 arguments, 1 given in /var/www/vhosts/hosting145025.af99c.netcup.net/httpdocs/wp-content/plugins/wpperformancetester/benchmark.php:69
]]>Do not want to update this plugin?
]]>Hello,
I have an error message when running the test on one of my website, what could be the reason ?
Thank you,
]]>When I install this plugin, when I try to enable I receive:
Parse error: syntax error, unexpected end of file in /home/elasticsites/public_html/elasticsites.com.pl/wp-content/plugins/mywebtonet-performancestats/mywebtonet-performancestats.php on line 783
]]>We were testing the plugin out, and found that you’re using the file_get_contents()
function to request URLS.
The following errors fire:
/XXXXXX/wp-content/plugins/mywebtonet-performancestats/mywebtonet-performancestats.php on line 654
PHP Warning: file_get_contents(https://static.webhosting.dk/1mbfile): failed to open stream: no suitable wrapper could be found in /XXXXXX/wp-content/plugins/mywebtonet-performancestats/mywebtonet-performancestats.php on line 654
PHP Warning: file_get_contents(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /XXXXXX/wp-content/plugins/mywebtonet-performancestats/mywebtonet-performancestats.php on line 655
PHP Warning: file_get_contents(https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.js): failed to open stream: no suitable wrapper could be found in /XXXXXX/wp-content/plugins/mywebtonet-performancestats/mywebtonet-performancestats.php on line 655
PHP Warning: file_get_contents(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /XXXXXX/wp-content/plugins/mywebtonet-performancestats/mywebtonet-performancestats.php on line 658
PHP Warning: file_get_contents(https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.js): failed to open stream: no suitable wrapper could be found in /XXXXXX/wp-content/plugins/mywebtonet-performancestats/mywebtonet-performancestats.php on line 658
PHP Warning: file_get_contents(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /XXXXXX/wp-content/plugins/mywebtonet-performancestats/mywebtonet-performancestats.php on line 659
PHP Warning: file_get_contents(https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.js): failed to open stream: no suitable wrapper could be found in /XXXXXX/wp-content/plugins/mywebtonet-performancestats/mywebtonet-performancestats.php on line 659
PHP Warning: file_get_contents(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /XXXXXX/wp-content/plugins/mywebtonet-performancestats/mywebtonet-performancestats.php on line 660
PHP Warning: file_get_contents(https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.js): failed to open stream: no suitable wrapper could be found in /XXXXXX/wp-content/plugins/mywebtonet-performancestats/mywebtonet-performancestats.php on line 660
PHP Warning: file_get_contents(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /XXXXXX/wp-content/plugins/mywebtonet-performancestats/mywebtonet-performancestats.php on line 661
PHP Warning: file_get_contents(https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.js): failed to open stream: no suitable wrapper could be found in /XXXXXX/wp-content/plugins/mywebtonet-performancestats/mywebtonet-performancestats.php on line 661
PHP Warning: file_get_contents(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /XXXXXX/wp-content/plugins/mywebtonet-performancestats/mywebtonet-performancestats.php on line 662
PHP Warning: file_get_contents(https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.js): failed to open stream: no suitable wrapper could be found in /XXXXXX/wp-content/plugins/mywebtonet-performancestats/mywebtonet-performancestats.php on line 662
PHP Warning: file_get_contents(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /XXXXXX/wp-content/plugins/mywebtonet-performancestats/mywebtonet-performancestats.php on line 663
PHP Warning: file_get_contents(https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.js): failed to open stream: no suitable wrapper could be found in /XXXXXX/wp-content/plugins/mywebtonet-performancestats/mywebtonet-performancestats.php on line 663
PHP Warning: file_get_contents(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /XXXXXX/wp-content/plugins/mywebtonet-performancestats/mywebtonet-performancestats.php on line 671
PHP Warning: file_get_contents(https://static.webhosting.dk/1mbfile): failed to open stream: no suitable wrapper could be found in /XXXXXX/wp-content/plugins/mywebtonet-performancestats/mywebtonet-performancestats.php on line 671
Sorry to be blunt, but using file_get_contents()
to retrieve URLs is a bad coding practice for both compatibility and security.
Security:
You are potentially putting user websites at risk by using the file_get_contents()
function to retrieve URLS. This is quite possibly the single worst way to retrieve remote files/URLS. For best security, servers should set allow_url_fopen
and allow_url_include
options to Off (or 0) in their php.ini
settings, which will prevent scripts from retrieving or including remote URLS using insecure methods, thus reducing the risk of various exploits.
Also, since you are requesting insecure URLs (non-https), this opens sites using your plugin up to Man in the Middle attacks. Not only does SSL/TLS encrypt the data, but it also provides verification the the requested site is legit, and not an imposter. Any time a plugin or script requests data from an external site, it needs to be done via HTTPS. If you want to give the user the option to use either HTTPS or HTTP, then you need to set the default to secure, and only switch to insecure if the user has made a specific choice, and should provide a security warning if the insecure option is chosen.
Compatibility:
As mentioned above, many sites set allow_url_fopen
and allow_url_include
to Off in their php.ini
settings for security reasons. Best security practices require this If you depend on the file_get_contents()
function, your plugin won’t be very compatible.
Even using CURL would even be preferred to file_get_contents()
, but calling CURL directly is not a WordPress coding best practice, and therefore not recommended. Plugin developers should be using the WordPress HTTP API for retrieving remote URLs, as it provides a secure framework, and takes care of potential compatibility issues. More info on the HTTP API in the developer docs.
Additionally the following error fired:
PHP Notice: Undefined variable: headertext in /XXXXXX/wp-content/plugins/mywebtonet-performancestats/mywebtonet-performancestats.php on line 363
While an undefined variable is technically not a major issue, it’s still best practice to initialize all variables, to prevent unexpected results.
Please fix these glaring issues.
]]>I have an intermittent performance problem on my shared hosting: sometimes a page load takes tens of seconds or even minutes. But only sometimes.
I though I could try to use this plugin (which I already use) to trace the moments in the day when this massive slowdown.
I could then tell the provider:
-when it happens
-if it’s due to the webserver or the dbserver
To do this I should be able to call the plugin from an external scheduler, unathenticated.
The list of tests is already collectiong enough data I would say.
Do you think is feasible?
Of course I could rip open the plugin, scavenge the tests I need and write my own procedure ?? But I was wondering If something like I needed was already half done or envisioned.
Thank you!
https://www.ads-software.com/plugins/mywebtonet-performancestats/
]]>Hello,
I did the test and everything run without problems but I have bad performance for Query test (200 times). Result :
MySQL test:
Time to perform: Query test (200 times) : 5.77 seconds (35/sec)
Time to perform: select BENCHMARK(500000000, EXTRACT(YEAR FROM NOW())) : 4.32 seconds
Time to perform: select BENCHMARK(10000000,ENCODE(‘hello’,’goodbye’)) : 1.14 seconds
Time to perform: select BENCHMARK(25000000,1+1*2); : 0.54 seconds
Total time (all MySQL tests) : 11.77 seconds
Do you have preconisation on how to optimize my MySQL server ?
Thank you in advance.
https://www.ads-software.com/plugins/mywebtonet-performancestats/
]]>The plugin fires bugs since WordPress 4.3:
“Warning: file_get_contents(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /var/www/web65/html/wp-content/plugins/mywebtonet-performancestats/mywebtonet-performancestats.php on line 635
Warning: file_get_contents(https://static.webhosting.dk/1mbfile): failed to open stream: no suitable wrapper could be found in /var/www/web65/html/wp-content/plugins/mywebtonet-performancestats/mywebtonet-performancestats.php on line 635
Warning: file_get_contents(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /var/www/web65/html/wp-content/plugins/mywebtonet-performancestats/mywebtonet-performancestats.php on line 636
Warning: file_get_contents(https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.js): failed to open stream: no suitable wrapper could be found in /var/www/web65/html/wp-content/plugins/mywebtonet-performancestats/mywebtonet-performancestats.php on line 636
Warning: file_get_contents(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /var/www/web65/html/wp-content/plugins/mywebtonet-performancestats/mywebtonet-performancestats.php on line 639
Warning: file_get_contents(https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.js): failed to open stream: no suitable wrapper could be found in /var/www/web65/html/wp-content/plugins/mywebtonet-performancestats/mywebtonet-performancestats.php on line 639
Warning: file_get_contents(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /var/www/web65/html/wp-content/plugins/mywebtonet-performancestats/mywebtonet-performancestats.php on line 640
Warning: file_get_contents(https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.js): failed to open stream: no suitable wrapper could be found in /var/www/web65/html/wp-content/plugins/mywebtonet-performancestats/mywebtonet-performancestats.php on line 640″ etc.
Also, results are much longer /slower then before.
Will this be fixed soon?
Brgds
Steffen
https://www.ads-software.com/plugins/mywebtonet-performancestats/
]]>Hey there,
Just thought I’d paste these results below to see if anyone has thoughts on why they seem to not be even in the ball park ??
I’m running an Ubuntu 14.04VM with 4 core, 8 gb ram, LAMP, 8gb swapfile, compression all around and the database is local with only 4 Mb of data.
Oh – and the first clue that there is a problem is I have my memory limit set at 2048mb – not 256mb as is reported. Doing speed tests from external systems the average load time is 1.7s and doing a search in the database directly is immediate.
Thanks!
PHP host information Linux jlghitlink 3.16.0-31-generic #41~14.04.1-Ubuntu SMP Wed Feb 11 19:30:13 UTC 2015 x86_64
PHP version 5.5.9-1ubuntu4.7
PHP memory limit 256M
PHP post_max_size 512M
PHP upload_max_size 256M
PHP max_execution_time -1 seconds
Webserver Apache/2.4.7 (Ubuntu)
Loaded webserver modules core mod_so mod_watchdog http_core mod_log_config mod_logio mod_version mod_unixd mod_access_compat mod_alias mod_auth_basic mod_authn_core mod_authn_file mod_authz_core mod_authz_host mod_authz_user mod_autoindex mod_deflate mod_dir mod_env mod_filter mod_mime prefork mod_negotiation mod_php5 mod_rewrite mod_setenvif mod_status
Platform Linux
Gateway interface CGI/1.1
Path to files /var/www/html/wp-admin
MySQL version 5.5.41-0ubuntu0.14.04.1
Server load now: 0.36
Server load avg. 5 minutes: 0.32
Server load avg. 15 minutes: 0.83
MySQL test:
Time to perform: Query test (200 times) :135.64 seconds (1/sec)
Time to perform: select BENCHMARK(500000000, EXTRACT(YEAR FROM NOW())) : 18.89 seconds
Time to perform: select BENCHMARK(10000000,ENCODE(‘hello’,’goodbye’)) : 5.95 seconds
Time to perform: select BENCHMARK(25000000,1+1*2); : 2.23 seconds
Total time (all MySQL tests) :162.71 seconds
PHP test:
Time to perform: Math test : 1.25 seconds
Time to perform: StringManipulation test : 2.83 seconds
Time to perform: test Loop test : 1.54 seconds
Time to perform: test IfElse : 2.50 seconds
Total time (all PHP tests) : 8.12 seconds
Network test:
Network test 1: Fetch data from nearest google CDN point : 26.22 Mbps
Network test 2: Fetch data from our servers in Europe at https://www.mywebtonet.com : 3.15 Mbps
All tests:
Total time (all MySQL + PHP tests) :170.83 seconds
https://www.ads-software.com/plugins/mywebtonet-performancestats/
]]>Hi, the following errors show up when running in strict mode, which I thought (??) was a requirement these days for a plugin.
Not to rag on you particularly, but the code in this plugin does not meet WP coding standards and kinda raises my eyebrows that it was added to the repository, given the words WP has spilled about standards over the years. The included HTML, in particular, is pretty grim.
The DoHeader()
function at line 480 is wild. I haven’t seen ns4 tests since the mid-1990s. You’re also adding another body
tag in this function, and it seems nearly every HTML tag has deprecated attributes. I commented out line 384 to avoid calling the function, as it seems to serve no purpose in any case. I get the impression that this plugin is a wrapper around some extremely ancient HTML code?
Plugin does not clean up after itself on deactivation/delete: Plugins that create custom DB tables should remove those tables when plugin is deleted.
mywebtonet-performancestats.php
line 71:
You don’t seem to have included your logo in the plugin itself, this creates a broken graphic.
line 110:
The closing tag should be </tr>
not </font>
(“font???”)
lines 171, 340:
$headertext
is not defined and throws an error.
lines 228 – 232:
I believe you meant to use a “C-style” comment /*
on line 227, and close it again on 232 */
. As it is, these lines throw WP database errors if the table doesn’t exist.
lines 399, 430:
On windows servers, the array $load
is never set–the calls to array values on this line throw errors.
line 567:
Needs an “isset” test, like this:
if ( ! isset( $mysqlerror ) )
line 634:
I think you meant to use a c-style comment here around the “dummytext” get contents calls.
line 662:
String concatenation should use a dot.
Fixing some of the above got the plugin to run properly in strict mode. But…my IDE (phpstorm) still gives me 236 warnings…mostly deprecated HTML. Maybe consider updating the HTML?
https://www.ads-software.com/plugins/mywebtonet-performancestats/
]]>Parse error: syntax error, unexpected $end in wp-content\plugins\mywebtonet-performancestats\mywebtonet-performancestats.php on line 673
https://www.ads-software.com/plugins/mywebtonet-performancestats/
]]>When clicking “Performance test” as directed, nothing happens.
Anyone have a fix for this? Thanks.
https://www.ads-software.com/plugins/mywebtonet-performancestats/
]]>Trying to run the plugin, which worked fine before latest update, now produces a PHP error:
Fatal error: Call to undefined function apache_get_version() in […]/wp-content/plugins/mywebtonet-performancestats/mywebtonet-performancestats.php on line 317
https://www.ads-software.com/plugins/mywebtonet-performancestats/
]]>Do you have a page where we could see gathered datas ?
https://www.ads-software.com/plugins/mywebtonet-performancestats/
]]>Use it as a simple test and compare with your friends stats from their provider.
Do you plan to add any insights, info or tips related to analyzing the results of this test? After running this test for the first time, I discovered I had been running without a php.ini file…and then the test showed taking twice as long after I had added one. So, do you have any suggestions as to PHP optimization or does this plugin only suggest moving to a different provider?
https://www.ads-software.com/plugins/mywebtonet-performancestats/
]]>