Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▼0.32MB] [CPU: ▼18.13ms] Passed 4 tests
Analyzing server-side resources used by Runners Log
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.84 ▲0.38 | 41.50 ▼3.30 |
Dashboard /wp-admin | 3.67 ▲0.33 | 47.33 ▼9.76 |
Posts /wp-admin/edit.php | 3.79 ▲0.43 | 47.95 ▲3.09 |
Add New Post /wp-admin/post-new.php | 3.52 ▼2.36 | 34.56 ▼60.89 |
Media Library /wp-admin/upload.php | 3.60 ▲0.37 | 36.89 ▲1.42 |
V02max Calculator /wp-admin/admin.php?page=runners-log-v02max | 3.61 | 33.78 |
Coverter Toolbox /wp-admin/admin.php?page=runners-log-converter-toolbox | 3.67 | 32.84 |
Race Time Calc. /wp-admin/admin.php?page=runners-log-vdot-race-time | 3.76 | 31.92 |
HR Training Zones /wp-admin/admin.php?page=runners-log-training-zones | 3.62 | 33.16 |
Training Pace Calc. /wp-admin/admin.php?page=runners-log-vdot-training-pace | 3.82 | 32.14 |
Runners Log /wp-admin/admin.php?page=runners-log | 3.69 | 31.15 |
Weight Change Effect /wp-admin/admin.php?page=runners-log-weight-change-effect | 3.67 | 33.61 |
Body Mass Index /wp-admin/admin.php?page=runners-log-body-mass-index | 3.57 | 34.25 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 30 new files
Database: 1 new table, 34 new options
New tables |
---|
wp_gear |
New WordPress options |
---|
runnerslog_show_speed |
runnerslog_show_time |
runnerslog_show_speedperdistance |
runnerslog_cadence |
widget_recent-comments |
widget_theysaidso_widget |
runnerslog_show_distance2011 |
runnerslog_show_distance2016 |
runnerslog_show_distance2017 |
runnerslog_show_cadence |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Runners Log
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,890 ▲119 | 13.58 ▼0.79 | 6.32 ▲4.29 | 41.95 ▼1.37 |
Dashboard /wp-admin | 2,267 ▲79 | 5.03 ▲0.14 | 110.34 ▼7.57 | 41.74 ▼5.86 |
Posts /wp-admin/edit.php | 2,158 ▲69 | 2.39 ▲0.42 | 35.23 ▼2.81 | 33.50 ▼3.05 |
Add New Post /wp-admin/post-new.php | 6,333 ▲4,805 | 21.82 ▼1.51 | 864.34 ▲228.80 | 66.07 ▲15.19 |
Media Library /wp-admin/upload.php | 1,456 ▲74 | 4.35 ▲0.15 | 97.92 ▼3.81 | 46.76 ▲1.30 |
V02max Calculator /wp-admin/admin.php?page=runners-log-v02max | 1,595 | 1.95 | 27.55 | 39.47 |
Coverter Toolbox /wp-admin/admin.php?page=runners-log-converter-toolbox | 1,065 | 2.08 | 27.81 | 31.72 |
Race Time Calc. /wp-admin/admin.php?page=runners-log-vdot-race-time | 888 | 1.96 | 27.96 | 32.13 |
HR Training Zones /wp-admin/admin.php?page=runners-log-training-zones | 845 | 1.96 | 24.68 | 26.32 |
Training Pace Calc. /wp-admin/admin.php?page=runners-log-vdot-training-pace | 988 | 1.97 | 26.22 | 28.85 |
Runners Log /wp-admin/admin.php?page=runners-log | 1,427 | 1.96 | 27.66 | 30.72 |
Weight Change Effect /wp-admin/admin.php?page=runners-log-weight-change-effect | 896 | 1.97 | 26.49 | 30.68 |
Body Mass Index /wp-admin/admin.php?page=runners-log-body-mass-index | 872 | 1.95 | 25.24 | 27.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 33 options
- runnerslog_show_cadence
- runnerslog_show_garminmap
- runnerslog_show_speedperdistance
- runnerslog_show_distance2012
- runnerslog_show_distance2011
- theysaidso_admin_options
- runnerslog_show_distance2018
- can_compress_scripts
- runnerslog_show_distance2010
- runnerslog_show_distance2013
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=runners-log-weight-change-effect
- > Notice in wp-content/plugins/runners-log/Includes/runnerslog_weight_change_effect.php+19
Undefined index: runnerslog_op_hidden
- 19 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=runners-log-body-mass-index
- > Warning in wp-content/plugins/runners-log/Includes/runnerslog_body_mass_index.php+49
Use of undefined constant meters - assumed 'meters' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/admin.php?page=runners-log-v02max
- > Warning in wp-content/plugins/runners-log/Includes/runnerslog_v02max.php+57
Use of undefined constant male - assumed 'male' (this will throw an Error in a future version of PHP)
- 31 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=runners-log-weight-change-effect
- > Warning in wp-content/plugins/runners-log/Includes/runnerslog_weight_change_effect.php+63
Use of undefined constant RUNNERSLOG - assumed 'RUNNERSLOG' (this will throw an Error in a future version of PHP)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=runners-log-weight-change-effect
- > Notice in wp-content/plugins/runners-log/Includes/runnerslog_weight_change_effect.php+88
Undefined offset: 1
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=runners-log-weight-change-effect
- > Notice in wp-content/plugins/runners-log/Includes/runnerslog_weight_change_effect.php+88
Undefined offset: 2
- 9 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=runners-log-weight-change-effect
- > Notice in wp-content/plugins/runners-log/Includes/runnerslog_weight_change_effect.php+211
Undefined variable: velocity
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=runners-log-body-mass-index
- > Notice in wp-content/plugins/runners-log/Includes/runnerslog_body_mass_index.php+44
Undefined variable: bmi
SRP 0% 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
Please fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/runners-log/runnerslog.php
- 16× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/runners-log/Includes/runnerslog_weather_settings.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/runners-log/runnerslog_admin.php:79
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/runners-log/runnerslog_tag.php:43
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/runners-log/Includes/runnerslog_converter_toolbox.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/runners-log/runnerslog_gchart.php:498
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/runners-log/Includes/runnerslog_weight_change_effect.php:2
- > PHP Notice
Undefined index: runnerslog_op_hidden in wp-content/plugins/runners-log/runnerslog_admin.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/runners-log/runnerslog_metabox.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/runners-log/Includes/runnerslog_training_zones.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/runners-log/Includes/runnerslog_v02max.php:2
- > PHP Fatal error
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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 18 tag instead of maximum 10
runners-log/runnerslog.php 85% from 13 tests
The entry point to "Runners Log" version 3.9.2 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 169 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("runners-log.php" instead of "runnerslog.php")
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
Good job! No executable or dangerous file extensions detected4,719 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 435 | 416 | 4,718 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 42.00 |
▷ Minimum class complexity | 42.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 11.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.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 | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 49 | |
▷ Named functions | 49 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 5 | 83.33% |
▷ Class constants | 1 | 16.67% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
10 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
Images/cross.png | 0.57KB | 0.49KB | ▼ 13.70% |
Images/plus16.png | 0.26KB | 0.32KB | 0.00% |
Images/tick.png | 0.36KB | 0.22KB | ▼ 38.04% |
Images/ico16.png | 4.37KB | 0.89KB | ▼ 79.72% |
Images/alert.png | 0.51KB | 0.67KB | 0.00% |