Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▲6.25ms] Passed 4 tests
Server-side resources used by wp Hosting Performance Check
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 46.30 ▲2.71 |
Dashboard /wp-admin | 3.48 ▲0.17 | 54.83 ▲4.11 |
Posts /wp-admin/edit.php | 3.59 ▲0.24 | 58.97 ▲9.78 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.19 | 105.12 ▲8.39 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 51.75 ▲15.50 |
Top 10 Slow Urls /wp-admin/admin.php?page=wphpc_slowurls | 3.38 | 37.57 |
Last 7 Days Graph /wp-admin/admin.php?page=7daysgraph | 3.60 | 43.56 |
Hosting Compare /wp-admin/admin.php?page=wphpc_compare | 3.41 | 34.10 |
Settings /wp-admin/admin.php?page=wphpc_settings | 3.36 | 40.79 |
Hosting Check /wp-admin/admin.php?page=wphpc_graphs | 3.60 | 40.99 |
Sysinfo /wp-admin/admin.php?page=wphpc_sysinfo | 3.62 | 42.71 |
Load Test /wp-admin/admin.php?page=wphpc_loadtest_page | 3.43 | 44.32 |
country /wp-admin/admin.php?page=wphpc_country | 3.37 | 36.21 |
Last 30 Days Graph /wp-admin/admin.php?page=30daysgraph | 3.60 | 44.70 |
Bot Analysis /wp-admin/admin.php?page=wphpc_page_bots | 3.41 | 41.12 |
Server storage [IO: ▲1.54MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 357 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_webpages_data |
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
wp Hosting Performance Check: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,026 ▲280 | 13.77 ▼0.63 | 9.71 ▲7.86 | 44.86 ▲1.09 |
Dashboard /wp-admin | 2,342 ▲163 | 4.98 ▲0.12 | 112.36 ▲0.69 | 41.95 ▼4.76 |
Posts /wp-admin/edit.php | 2,210 ▲118 | 2.42 ▲0.43 | 40.80 ▲1.61 | 39.41 ▲0.77 |
Add New Post /wp-admin/post-new.php | 1,628 ▲95 | 17.55 ▼5.80 | 706.08 ▲71.06 | 39.77 ▼13.21 |
Media Library /wp-admin/upload.php | 1,527 ▲142 | 4.35 ▲0.19 | 130.62 ▲9.85 | 51.76 ▼2.29 |
Top 10 Slow Urls /wp-admin/admin.php?page=wphpc_slowurls | 991 | 1.88 | 25.59 | 56.34 |
Last 7 Days Graph /wp-admin/admin.php?page=7daysgraph | 1,466 | 2.60 | 67.08 | 70.14 |
Hosting Compare /wp-admin/admin.php?page=wphpc_compare | 928 | 1.86 | 26.14 | 26.34 |
Settings /wp-admin/admin.php?page=wphpc_settings | 1,346 | 1.88 | 27.39 | 26.37 |
Hosting Check /wp-admin/admin.php?page=wphpc_graphs | 1,449 | 2.53 | 66.34 | 64.75 |
Sysinfo /wp-admin/admin.php?page=wphpc_sysinfo | 1,290 | 2.07 | 41.20 | 37.14 |
Load Test /wp-admin/admin.php?page=wphpc_loadtest_page | 1,195 | 1.88 | 25.57 | 30.05 |
country /wp-admin/admin.php?page=wphpc_country | 955 | 2.01 | 27.17 | 27.79 |
Last 30 Days Graph /wp-admin/admin.php?page=30daysgraph | 1,466 | 2.59 | 68.81 | 66.23 |
Bot Analysis /wp-admin/admin.php?page=wphpc_page_bots | 1,039 | 2.10 | 28.65 | 42.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_webpages_data
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wphpc_slowurls
- > Notice in wp-content/plugins/wp-hosting-performance-check/top10.php+28
Undefined variable: country
- 9 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wphpc_settings
- > Notice in wp-content/plugins/wp-hosting-performance-check/wp_host_check.php+392
Trying to access array offset on value of type bool
- 99967 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wphpc_sysinfo
- > Deprecated in wp-content/plugins/wp-hosting-performance-check/benchmark.php+104
Invalid characters passed for attempted conversion, these have been ignored
- > GET request to /wp-admin/admin.php?page=wphpc_sysinfo
- > Notice in wp-content/plugins/wp-hosting-performance-check/sysinfo.php+110
A non well formed numeric value encountered
- > GET request to /wp-admin/admin.php?page=wphpc_sysinfo
- > Warning in wp-content/plugins/wp-hosting-performance-check/sysinfo.php+116
count(): Parameter must be an array or an object that implements Countable
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 6× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-hosting-performance-check/test.php
- > /wp-content/plugins/wp-hosting-performance-check/enctest.php
- > /wp-content/plugins/wp-hosting-performance-check/comparo2.php
- > /wp-content/plugins/wp-hosting-performance-check/top10.php
- > /wp-content/plugins/wp-hosting-performance-check/advertise.php
- > /wp-content/plugins/wp-hosting-performance-check/piegraph.php
- 5× PHP files trigger server errors when accessed directly:
- > PHP Notice
Undefined variable: private_key in wp-content/plugins/wp-hosting-performance-check/enctest.php on line 23
- > PHP Warning
Use of undefined constant WPHPC__PLUGIN_URL - assumed 'WPHPC__PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-hosting-performance-check/advertise.php on line 5
- > PHP Warning
openssl_private_decrypt(): key parameter is not a valid private key in wp-content/plugins/wp-hosting-performance-check/enctest.php on line 23
- > PHP Notice
Undefined variable: wphpc_piedata in wp-content/plugins/wp-hosting-performance-check/piegraph.php on line 14
- > PHP Warning
openssl_public_encrypt(): key parameter is not a valid public key in wp-content/plugins/wp-hosting-performance-check/enctest.php on line 17
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
10 plugin tags: speed, bot, graph, benchmark, version...
wp-hosting-performance-check/wp_host_check.php 92% from 13 tests
The principal PHP file in "wp Hosting Performance Check" v. 2.18.8 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("wp-hosting-performance-check.php" instead of "wp_host_check.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected11,041 lines of code in 101 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 64 | 70 | 3 | 4,776 |
CSS | 4 | 602 | 53 | 3,431 |
PHP | 33 | 893 | 276 | 2,834 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 4 | 100.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 66 | |
▷ Named functions | 66 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
250 compressed PNG files occupy 0.16MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
iso/fj.png | 0.60KB | 0.74KB | 0.00% |
iso/de.png | 0.53KB | 0.72KB | 0.00% |
iso/gr.png | 0.48KB | 0.70KB | 0.00% |
iso/ky.png | 0.63KB | 0.70KB | 0.00% |
iso/gy.png | 0.63KB | 0.74KB | 0.00% |