Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.40MB] [CPU: ▼2.22ms] Passed 4 tests
This is a short check of server-side resources used by SportsPress for Ice Hockey
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.89 ▲0.42 | 43.58 ▲3.49 |
Dashboard /wp-admin | 3.74 ▲0.44 | 50.11 ▲4.43 |
Posts /wp-admin/edit.php | 3.80 ▲0.44 | 50.62 ▲0.02 |
Add New Post /wp-admin/post-new.php | 6.26 ▲0.37 | 89.73 ▼15.98 |
Media Library /wp-admin/upload.php | 3.61 ▲0.37 | 40.83 ▲3.58 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 3.67 | 35.75 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by SportsPress for Ice Hockey
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲96 | 13.29 ▼1.11 | 1.71 ▼0.09 | 37.91 ▼7.34 |
Dashboard /wp-admin | 2,237 ▲85 | 4.88 ▼0.76 | 110.63 ▲1.99 | 42.11 ▼1.72 |
Posts /wp-admin/edit.php | 2,128 ▲36 | 2.05 ▲0.03 | 39.94 ▼0.82 | 37.42 ▼1.16 |
Add New Post /wp-admin/post-new.php | 1,555 ▲20 | 23.47 ▲0.36 | 658.00 ▲34.42 | 60.01 ▲13.96 |
Media Library /wp-admin/upload.php | 1,430 ▲39 | 4.22 ▲0.02 | 99.37 ▼7.13 | 46.47 ▲0.81 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 962 | 2.08 | 28.92 | 29.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/sportspress-for-ice-hockey/includes/class-tgm-plugin-activation.php:2109
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% 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 to be fixed:
- Tags: There are too many tags (13 tag instead of maximum 10)
sportspress-for-ice-hockey/sportspress-for-ice-hockey.php Passed 13 tests
"SportsPress for Ice Hockey" version 0.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
47 characters long description:
A suite of ice hockey features for SportsPress.
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
Everything looks great! No dangerous files found in this plugin1,858 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 503 | 1,652 | 1,855 |
CSS | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 43.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 4.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 108 | |
▷ Static methods | 7 | 6.48% |
▷ Public methods | 83 | 76.85% |
▷ Protected methods | 23 | 21.30% |
▷ Private methods | 2 | 1.85% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 3 | 50.00% |
▷ Class constants | 3 | 50.00% |
▷ Public constants | 3 | 100.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
There are no PNG files in this plugin