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
Install script ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼0.78ms] Passed 4 tests
Analyzing server-side resources used by SportsPress for Basketball
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 43.14 ▲4.84 |
Dashboard /wp-admin | 3.42 ▲0.12 | 48.95 ▼0.13 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 47.69 ▼1.70 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 98.70 ▼6.11 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 40.22 ▲8.40 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 3.35 | 34.80 |
Server storage [IO: ▲0.20MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for SportsPress for Basketball
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲73 | 14.61 ▲0.06 | 1.73 ▼0.42 | 42.87 ▲5.13 |
Dashboard /wp-admin | 2,222 ▲44 | 5.57 ▼0.09 | 88.07 ▼16.44 | 44.80 ▲1.46 |
Posts /wp-admin/edit.php | 2,139 ▲39 | 2.06 ▲0.03 | 38.66 ▲1.57 | 42.07 ▲5.41 |
Add New Post /wp-admin/post-new.php | 1,552 ▲21 | 23.20 ▲0.00 | 616.31 ▼61.33 | 53.50 ▲2.52 |
Media Library /wp-admin/upload.php | 1,441 ▲41 | 4.25 ▲0.07 | 97.27 ▼4.96 | 45.55 ▲2.73 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 992 | 2.05 | 29.43 | 34.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
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
- 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-basketball/includes/class-tgm-plugin-activation.php:2109
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: players, stats, standings, data, statistics...
sportspress-for-basketball/sportspress-for-basketball.php Passed 13 tests
"SportsPress for Basketball" version 0.9.1'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 basketball features for SportsPress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin1,874 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 507 | 1,656 | 1,868 |
CSS | 1 | 0 | 0 | 3 |
JavaScript | 1 | 0 | 1 | 3 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 44.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 4.17 |
▷ 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 | 109 | |
▷ Static methods | 7 | 6.42% |
▷ Public methods | 84 | 77.06% |
▷ Protected methods | 23 | 21.10% |
▷ Private methods | 2 | 1.83% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin