Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲4.14MB] [CPU: ▲28.52ms] Passed 4 tests
This is a short check of server-side resources used by AnWP Sports Leagues - for basketball, hockey and others
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 7.52 ▲4.06 | 63.68 ▲24.02 |
Dashboard /wp-admin | 7.47 ▲4.17 | 71.66 ▲27.36 |
Posts /wp-admin/edit.php | 7.52 ▲4.16 | 79.12 ▲33.20 |
Add New Post /wp-admin/post-new.php | 10.19 ▲4.30 | 130.94 ▲46.47 |
Media Library /wp-admin/upload.php | 7.40 ▲4.17 | 69.78 ▲29.51 |
Games /wp-admin/edit.php?post_type=sl_game | 7.51 | 66.89 |
Documentation /wp-admin/admin.php?page=redirect_sl_docs | 7.12 | 46.91 |
All Tournaments /wp-admin/edit.php?post_type=sl_tournament | 7.51 | 73.05 |
All Teams /wp-admin/edit.php?post_type=sl_team | 7.49 | 60.01 |
Add New Player /wp-admin/post-new.php?post_type=sl_player | 7.55 | 78.49 |
All Officials /wp-admin/edit.php?post_type=sl_official | 7.49 | 64.40 |
Add New /wp-admin/post-new.php?post_type=sl_standing | 7.48 | 67.98 |
All Players /wp-admin/edit.php?post_type=sl_player | 7.49 | 60.13 |
Seasons /wp-admin/edit-tags.php?taxonomy=sl_season&post_type=sl_tournament | 7.52 | 59.56 |
Standings /wp-admin/edit.php?post_type=sl_standing | 7.49 | 72.27 |
Server storage [IO: ▲8.08MB] [DB: ▲0.02MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 375 new files
Database: 4 new tables, 17 new options
New tables |
---|
wp_sl_events |
wp_sl_games |
wp_sl_player_stats |
wp_sl_missing_players |
New WordPress options |
---|
widget_sl-widget-games |
widget_sl-widget-video |
theysaidso_admin_options |
sl_version |
widget_sl-widget-next-game |
widget_recent-posts |
widget_sl-widget-player |
widget_sl-widget-teams |
widget_theysaidso_widget |
widget_sl-widget-last-game |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for AnWP Sports Leagues - for basketball, hockey and others
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,638 ▲877 | 14.56 ▲0.08 | 23.40 ▲21.68 | 38.64 ▼3.26 |
Dashboard /wp-admin | 2,816 ▲635 | 4.96 ▼0.71 | 103.45 ▲7.40 | 80.18 ▲38.50 |
Posts /wp-admin/edit.php | 2,729 ▲629 | 2.70 ▲0.73 | 36.39 ▼2.66 | 38.37 ▼2.03 |
Add New Post /wp-admin/post-new.php | 1,930 ▲404 | 19.73 ▼3.40 | 545.80 ▼99.13 | 28.34 ▼27.93 |
Media Library /wp-admin/upload.php | 2,106 ▲712 | 4.49 ▲0.32 | 100.55 ▲2.18 | 64.42 ▲21.88 |
Games /wp-admin/edit.php?post_type=sl_game | 1,905 | 3.15 | 49.96 | 52.17 |
Documentation /wp-admin/admin.php?page=redirect_sl_docs | 10,741 | 6.80 | 230.35 | 127.97 |
All Tournaments /wp-admin/edit.php?post_type=sl_tournament | 1,792 | 2.99 | 44.39 | 33.32 |
All Teams /wp-admin/edit.php?post_type=sl_team | 1,777 | 2.66 | 34.52 | 34.24 |
Add New Player /wp-admin/post-new.php?post_type=sl_player | 2,611 | 4.81 | 70.23 | 85.35 |
All Officials /wp-admin/edit.php?post_type=sl_official | 1,764 | 2.68 | 33.56 | 33.83 |
Add New /wp-admin/post-new.php?post_type=sl_standing | 1,926 | 3.93 | 70.71 | 78.45 |
All Players /wp-admin/edit.php?post_type=sl_player | 1,810 | 2.66 | 34.12 | 33.84 |
Seasons /wp-admin/edit-tags.php?taxonomy=sl_season&post_type=sl_tournament | 1,884 | 2.38 | 29.50 | 33.73 |
Standings /wp-admin/edit.php?post_type=sl_standing | 1,716 | 2.66 | 33.57 | 32.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie tables detected upon uninstall: 4 tables
- wp_sl_games
- wp_sl_player_stats
- wp_sl_events
- wp_sl_missing_players
- The uninstall procedure has failed, leaving 17 options in the database
- widget_recent-comments
- widget_sl-widget-standing
- sl_db_version
- widget_sl-widget-next-game
- widget_theysaidso_widget
- widget_sl-widget-birthdays
- db_upgraded
- widget_sl-widget-games
- widget_sl-widget-players-stats
- widget_sl-widget-teams
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 33× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Sports_Leagues_Widget' not found in wp-content/plugins/sports-leagues/includes/widgets/class-sports-leagues-widget-games.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sports-leagues/includes/shortcodes/class-sports-leagues-shortcode-standing.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sports-leagues/includes/shortcodes/class-sports-leagues-shortcode-tournament-list.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sports-leagues/includes/blocks/class-sports-leagues-block-players-stats.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/sports-leagues/theme-support/layout-b.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sports-leagues/includes/blocks/class-sports-leagues-block-game-countdown.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sports-leagues/includes/shortcodes/class-sports-leagues-shortcode-teams.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/sports-leagues/theme-support/layout-a.php:6
- > PHP Fatal error
Uncaught Error: Class 'Sports_Leagues_Widget' not found in wp-content/plugins/sports-leagues/includes/widgets/class-sports-leagues-widget-video.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/sports-leagues/includes/cmb2-fields/class-anwp-sl-cmb2-field-select2.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: baseball, sports, sport, rugby, cricket...
sports-leagues/sports-leagues.php Passed 13 tests
The main file in "AnWP Sports Leagues - for basketball, hockey and others" v. 0.12.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
136 characters long description:
Full-featured solution for any team sports website. Manage players, games, teams, rosters, tournaments, standings and leagues with ease.
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
Good job! No executable or dangerous file extensions detected101,128 lines of code in 333 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 27 | 3,711 | 329 | 46,525 |
PHP | 177 | 6,322 | 10,627 | 29,967 |
JavaScript | 35 | 4,145 | 4,319 | 22,601 |
Markdown | 5 | 262 | 0 | 691 |
JSON | 8 | 0 | 0 | 541 |
Sass | 2 | 10 | 0 | 506 |
SVG | 79 | 0 | 0 | 297 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 52.16 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 398.00 |
Average method complexity | 5.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 93.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 51 | |
▷ Abstract classes | 1 | 1.96% |
▷ Concrete classes | 50 | 98.04% |
▷ Final classes | 1 | 2.00% |
Methods | 608 | |
▷ Static methods | 13 | 2.14% |
▷ Public methods | 520 | 85.53% |
▷ Protected methods | 62 | 10.20% |
▷ Private methods | 26 | 4.28% |
Functions | 41 | |
▷ Named functions | 11 | 26.83% |
▷ Anonymous functions | 30 | 73.17% |
Constants | 7 | |
▷ Global constants | 1 | 14.29% |
▷ Class constants | 6 | 85.71% |
▷ Public constants | 6 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
31 PNG files occupy 0.92MB with 0.33MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/datatables/DataTables-1.13.2/images/sort_asc_disabled.png | 0.14KB | 0.25KB | 0.00% |
admin/img/tutorial/2019-04-02_13-20-10.png | 31.92KB | 12.00KB | ▼ 62.40% |
public/img/empty_logo.png | 2.11KB | 1.92KB | ▼ 8.97% |
admin/img/tutorial/step_6.png | 56.39KB | 25.04KB | ▼ 55.59% |
admin/img/cmb2-icon.png | 3.87KB | 1.77KB | ▼ 54.30% |