Benchmarks
Plugin footprint 47% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▲4.73ms] 75% from 4 tests
Analyzing server-side resources used by Super Host Speed Benchmark
Please fix the following
- CPU: You should keep total CPU usage under 500.00ms (currently 9,331.65ms on /wp-admin/tools.php?page=speedbenchmark)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 46.21 ▲9.28 |
Dashboard /wp-admin | 3.35 ▲0.05 | 54.00 ▲5.48 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 58.09 ▲7.80 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 104.33 ▲4.12 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 34.66 ▲1.50 |
Speed Benchmark /wp-admin/tools.php?page=speedbenchmark | 3.25 | 9,331.65 |
Super Host Speed Benchmark /wp-admin/options-general.php?page=super-host-speed-benchmark | 3.22 | 31.22 |
Server storage [IO: ▲0.57MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_speedtest202 |
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Super Host Speed Benchmark: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲98 | 13.31 ▼0.94 | 2.13 ▲0.33 | 50.56 ▲8.51 |
Dashboard /wp-admin | 2,214 ▲26 | 5.83 ▼0.01 | 126.88 ▲29.81 | 45.24 ▲0.48 |
Posts /wp-admin/edit.php | 2,097 ▲5 | 2.00 ▼0.18 | 44.86 ▼3.78 | 43.86 ▲1.89 |
Add New Post /wp-admin/post-new.php | 1,540 ▼2 | 23.29 ▲5.05 | 797.03 ▲193.70 | 57.70 ▲6.31 |
Media Library /wp-admin/upload.php | 1,393 ▲8 | 4.28 ▲0.08 | 116.17 ▲9.92 | 48.11 ▲3.04 |
Speed Benchmark /wp-admin/tools.php?page=speedbenchmark | 1,006 | 2.16 | 63.92 | 55.46 |
Super Host Speed Benchmark /wp-admin/options-general.php?page=super-host-speed-benchmark | 794 | 2.06 | 24.70 | 26.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'shsb_uninstall' not found or invalid function name
- Zombie tables detected upon uninstall: 1 table
- wp_speedtest202
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- 6 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=super-host-speed-benchmark
- > Notice in wp-content/plugins/super-host-speed-benchmark/shsb.php+93
Trying to access array offset on value of type bool
- > GET request to /wp-admin/tools.php?page=speedbenchmark
- > Warning in wp-content/plugins/super-host-speed-benchmark/shsb.php+253
file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
- > GET request to /wp-admin/tools.php?page=speedbenchmark
- > Warning in wp-content/plugins/super-host-speed-benchmark/shsb.php+253
file_get_contents(https://superhostspeed.com/benchmark.php?score=34.214&h=&o=&host=ubuntu&ip=127.0.0.1&httphost=wp.com&version=0.6.7&w=6361&r=27853&ttfb=0.028275): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/super-host-speed-benchmark/shsb.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% 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
6 plugin tags: benchmark, speed benchmark, slow, speed test, performance...
super-host-speed-benchmark/shsb.php 85% from 13 tests
The principal PHP file in "Super Host Speed Benchmark" v. 0.6.7 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("super-host-speed-benchmark.php" instead of "shsb.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 366 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin268 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 138 | 42 | 267 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.41MB with 0.23MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.PNG | 9.02KB | 5.28KB | ▼ 41.47% |
assets/banner-772x250.png | 414.75KB | 135.79KB | ▼ 67.26% |