Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲5.68MB] [CPU: ▲16.50ms] 75% from 4 tests
Analyzing server-side resources used by Sports Bench Lite
It is recommended to improve the following
- Extra RAM: Try to keep extra memory usage under 5MB (currently 5.68MB on /wp-admin/edit-tags.php?taxonomy=sports-bench-post-players)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.85 ▲6.35 | 67.29 ▲25.74 |
Dashboard /wp-admin | 9.71 ▲6.37 | 79.75 ▲31.25 |
Posts /wp-admin/edit.php | 9.82 ▲6.42 | 91.43 ▲39.26 |
Add New Post /wp-admin/post-new.php | 9.57 ▲3.64 | 66.12 ▼30.27 |
Media Library /wp-admin/upload.php | 9.63 ▲6.36 | 77.91 ▲39.87 |
Add New /wp-admin/admin.php?page=sports-bench-add-game-form | 9.61 | 66.73 |
Teams /wp-admin/edit-tags.php?taxonomy=sports-bench-post-teams | 9.62 | 63.89 |
Add New /wp-admin/admin.php?page=sports-bench-add-player-form | 9.61 | 67.80 |
All Players /wp-admin/admin.php?page=sports-bench-players | 9.60 | 63.42 |
/wp-admin/admin.php?page=sports-bench-edit-game-form | 9.61 | 69.15 |
/wp-admin/admin.php?page=sports-bench-edit-player-form | 9.61 | 71.04 |
Divisions/Conferences /wp-admin/admin.php?page=sports-bench-divisions | 9.60 | 62.48 |
/wp-admin/admin.php?page=sports-bench-edit-team-form | 9.61 | 77.56 |
All Teams /wp-admin/admin.php?page=sports-bench-teams | 9.60 | 65.62 |
Players /wp-admin/edit-tags.php?taxonomy=sports-bench-post-players | 9.62 | 62.30 |
Server storage [IO: ▲11.40MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 215 new files
Database: 6 new tables, 11 new options
New tables |
---|
wp_sb_teams |
wp_sb_game_stats |
wp_sb_divisions |
wp_sb_games |
wp_sb_players |
wp_sb_game_info |
New WordPress options |
---|
widget_sports_bench_scoreboard_widget |
can_compress_scripts |
sports-bench-sport |
widget_sports_bench_standings_widget |
widget_sports_bench_stats_widget |
sports_bench_version |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Sports Bench Lite
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,267 ▲506 | 13.74 ▼0.61 | 7.90 ▲6.05 | 38.48 ▼2.53 |
Dashboard /wp-admin | 2,465 ▲288 | 5.67 ▲0.06 | 91.24 ▲2.93 | 44.46 ▼1.08 |
Posts /wp-admin/edit.php | 2,334 ▲234 | 2.08 ▲0.06 | 37.63 ▼1.69 | 34.24 ▼1.97 |
Add New Post /wp-admin/post-new.php | 2,166 ▲638 | 18.46 ▼4.59 | 699.28 ▼13.58 | 55.68 ▲2.06 |
Media Library /wp-admin/upload.php | 1,599 ▲196 | 4.26 ▲0.11 | 101.84 ▼8.41 | 40.13 ▼4.18 |
Add New /wp-admin/admin.php?page=sports-bench-add-game-form | 3,658 | 2.75 | 62.41 | 142.90 |
Teams /wp-admin/edit-tags.php?taxonomy=sports-bench-post-teams | 1,473 | 2.34 | 31.46 | 30.99 |
Add New /wp-admin/admin.php?page=sports-bench-add-player-form | 1,299 | 2.70 | 41.22 | 35.93 |
All Players /wp-admin/admin.php?page=sports-bench-players | 1,126 | 2.22 | 29.76 | 34.41 |
/wp-admin/admin.php?page=sports-bench-edit-game-form | 3,657 | 2.74 | 45.31 | 65.51 |
/wp-admin/admin.php?page=sports-bench-edit-player-form | 1,298 | 2.68 | 46.82 | 40.96 |
Divisions/Conferences /wp-admin/admin.php?page=sports-bench-divisions | 1,222 | 2.47 | 44.07 | 37.02 |
/wp-admin/admin.php?page=sports-bench-edit-team-form | 1,549 | 2.51 | 51.96 | 60.49 |
All Teams /wp-admin/admin.php?page=sports-bench-teams | 1,124 | 2.22 | 30.44 | 33.99 |
Players /wp-admin/edit-tags.php?taxonomy=sports-bench-post-players | 1,473 | 2.34 | 35.11 | 32.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie tables were found after uninstall: 6 tables
- wp_sb_teams
- wp_sb_game_stats
- wp_sb_divisions
- wp_sb_game_info
- wp_sb_players
- wp_sb_games
- Zombie WordPress options were found after uninstall: 11 options
- widget_sports_bench_stats_widget
- can_compress_scripts
- sports-bench-sport
- widget_recent-comments
- widget_theysaidso_widget
- widget_sports_bench_scoreboard_widget
- db_upgraded
- sports_bench_version
- theysaidso_admin_options
- widget_sports_bench_standings_widget
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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
- 74× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Sports_Bench\\Classes\\Screens\\Screen' not found in wp-content/plugins/sports-bench-lite/includes/classes/screens/admin/class-games-screen.php:33
- > PHP Fatal error
Uncaught Error: Class 'Sports_Bench\\Classes\\Base\\Teams' not found in wp-content/plugins/sports-bench-lite/includes/classes/sports/volleyball/class-volleyball-teams.php:31
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/sports-bench-lite/includes/classes/rest-api/class-team-rest-api.php:32
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/sports-bench-lite/public/partials/widgets/stats-widget.php:26
- > PHP Fatal error
Uncaught Error: Class 'Sports_Bench\\Classes\\Base\\Teams' not found in wp-content/plugins/sports-bench-lite/includes/classes/sports/basketball/class-basketball-teams.php:31
- > PHP Fatal error
Uncaught Error: Class 'Sports_Bench\\Classes\\Screens\\Admin\\PlayersScreen' not found in wp-content/plugins/sports-bench-lite/admin/partials/players/add-edit-player.php:24
- > PHP Fatal error
Uncaught Error: Class 'Sports_Bench\\Classes\\Screens\\Admin\\DivisionsScreen' not found in wp-content/plugins/sports-bench-lite/admin/partials/divisions/divisions-listing.php:23
- > PHP Fatal error
Uncaught Error: Class 'Sports_Bench\\Classes\\Screens\\Admin\\GamesScreen' not found in wp-content/plugins/sports-bench-lite/admin/partials/games/add-edit-game.php:25
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/sports-bench-lite/includes/classes/rest-api/class-division-rest-api.php:34
- > PHP Fatal error
Uncaught Error: Class 'Sports_Bench\\Classes\\Base\\Game' not found in wp-content/plugins/sports-bench-lite/includes/classes/sports/hockey/class-hockey-game.php:32
- > 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 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
No plugin tags provided
sports-bench-lite/sports-bench-lite.php 92% from 13 tests
The main PHP script in "Sports Bench Lite" version 2.2 is automatically included on every request by WordPress
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 937 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected65,573 lines of code in 194 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 130 | 4,545 | 14,652 | 44,728 |
PO File | 6 | 7,062 | 36,222 | 20,676 |
Markdown | 3 | 31 | 0 | 103 |
CSS | 33 | 10 | 38 | 44 |
JavaScript | 22 | 0 | 22 | 22 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 223)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 36.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 284.00 |
Average method complexity | 4.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 223.00 |
Code structure | ||
---|---|---|
Namespaces | 17 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 95 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 95 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 962 | |
▷ Static methods | 4 | 0.42% |
▷ Public methods | 908 | 94.39% |
▷ Protected methods | 6 | 0.62% |
▷ Private methods | 48 | 4.99% |
Functions | 86 | |
▷ Named functions | 84 | 97.67% |
▷ Anonymous functions | 2 | 2.33% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.03MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/sb-logo-light-blue.png | 26.76KB | 27.08KB | 0.00% |