Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- The plugin did not install without errors
- > Notice in wp-content/plugins/wodhopper/wodhopper.php+51
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.82MB] [CPU: ▼190.13ms] Passed 4 tests
Analyzing server-side resources used by WODHOPPER
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.79 ▼1.05 | 6.17 ▼32.73 |
Dashboard /wp-admin | 1.82 ▼1.23 | 6.52 ▼42.06 |
Posts /wp-admin/edit.php | 1.83 ▼1.28 | 7.18 ▼41.52 |
Add New Post /wp-admin/post-new.php | 1.83 ▼3.61 | 7.22 ▼644.21 |
Media Library /wp-admin/upload.php | 1.83 ▼1.18 | 6.85 ▼29.52 |
WODHOPPER /wp-admin/options-general.php?page=wodhopper | 1.83 | 7.77 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by WODHOPPER
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,736 ▲164 | 16.10 ▲0.59 | 9.78 ▼3.01 | 49.20 ▼7.50 |
Dashboard /wp-admin | 2,972 ▲41 | 5.94 ▲0.02 | 140.68 ▼30.74 | 115.45 ▼1.37 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.72 ▲0.02 | 73.43 ▼1.57 | 92.33 ▲1.57 |
Add New Post /wp-admin/post-new.php | 1,501 ▼182 | 18.84 ▲0.03 | 427.70 ▲7.53 | 114.19 ▼7.04 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.06 ▲0.04 | 154.24 ▲7.77 | 125.96 ▲6.59 |
WODHOPPER /wp-admin/options-general.php?page=wodhopper | 1,164 | 2.06 | 63.05 | 82.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/wodhopper/wodhopper.php+51
Trying to access array offset on value of type bool
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wodhopper
- > Notice in wp-content/plugins/wodhopper/util/wodhopper_settings_fields.php+128
Trying to access array offset on value of type bool
SRP 50% 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
Please fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wodhopper/util/wodhopper_options.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wodhopper/util/wodhopper_options.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: scoreboard, affiliate, embed, crossfit, wod
wodhopper/wodhopper.php Passed 13 tests
The main file in "WODHOPPER" v. 1.0.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
87 characters long description:
Allows WODHOPPER embedding,configuration and management from your WordPress admin blog.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected378 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 86 | 263 | 308 |
JavaScript | 1 | 2 | 12 | 38 |
CSS | 1 | 4 | 6 | 32 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
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 | 21 | |
▷ Named functions | 21 | 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
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.14MB with 0.08MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772x250.png | 133.14KB | 43.24KB | ▼ 67.53% |
assets/css/images/wodhopper_scoreboard_image.png | 3.84KB | 1.48KB | ▼ 61.42% |
mce/wodhopper_scoreboard/scoreboard.png | 2.46KB | 1.36KB | ▼ 44.70% |