Benchmarks
Plugin footprint 83% 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: ▲0.20MB] [CPU: ▼3.61ms] Passed 4 tests
A check of server-side resources used by MSTW League Manager
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 40.60 ▼2.00 |
Dashboard /wp-admin | 3.54 ▲0.23 | 49.18 ▲2.47 |
Posts /wp-admin/edit.php | 3.66 ▲0.30 | 49.76 ▲5.30 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 84.73 ▼16.10 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 35.04 ▲1.19 |
Update Games /wp-admin/admin.php?page=mstw-lm-update-games | 3.45 | 36.19 |
CSV Import /wp-admin/admin.php?page=mstw-lm-csv-import | 3.44 | 35.52 |
Add Games /wp-admin/admin.php?page=mstw-lm-add-games | 3.45 | 34.78 |
Venues /wp-admin/edit.php?post_type=mstw_lm_venue | 3.52 | 39.89 |
League Manager /wp-admin/admin.php?page=league-manager-page | 3.44 | 33.15 |
Update Records /wp-admin/admin.php?page=mstw-lm-update-records | 3.44 | 36.93 |
Seasons /wp-admin/admin.php?page=mstw-lm-seasons | 3.41 | 33.29 |
Leagues /wp-admin/edit-tags.php?taxonomy=mstw_lm_league&post_type=mstw_lm_game | 3.47 | 38.81 |
Teams /wp-admin/edit.php?post_type=mstw_lm_team | 3.52 | 37.46 |
Manage Games /wp-admin/edit.php?post_type=mstw_lm_game | 3.52 | 40.68 |
Server storage [IO: ▲1.51MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 68 new files
Database: no new tables, 7 new options
New WordPress options |
---|
mstw_league_manager_activated |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for MSTW League Manager
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,113 ▲356 | 15.41 ▲1.19 | 7.52 ▲5.48 | 41.96 ▼1.56 |
Dashboard /wp-admin | 2,401 ▲210 | 6.46 ▲1.58 | 117.13 ▲9.18 | 103.47 ▲62.06 |
Posts /wp-admin/edit.php | 2,335 ▲246 | 3.48 ▲1.47 | 47.85 ▲13.86 | 73.29 ▲41.52 |
Add New Post /wp-admin/post-new.php | 1,590 ▲57 | 23.36 ▲0.10 | 641.15 ▼39.25 | 30.43 ▼20.41 |
Media Library /wp-admin/upload.php | 1,471 ▲80 | 4.11 ▼0.15 | 79.03 ▼17.63 | 81.64 ▲34.36 |
Update Games /wp-admin/admin.php?page=mstw-lm-update-games | 1,196 | 3.24 | 42.43 | 67.34 |
CSV Import /wp-admin/admin.php?page=mstw-lm-csv-import | 1,290 | 3.09 | 38.39 | 70.69 |
Add Games /wp-admin/admin.php?page=mstw-lm-add-games | 1,124 | 3.19 | 41.75 | 64.89 |
Venues /wp-admin/edit.php?post_type=mstw_lm_venue | 1,380 | 3.44 | 45.89 | 67.71 |
League Manager /wp-admin/admin.php?page=league-manager-page | 1,164 | 3.16 | 41.63 | 65.24 |
Update Records /wp-admin/admin.php?page=mstw-lm-update-records | 1,104 | 3.08 | 39.57 | 57.99 |
Seasons /wp-admin/admin.php?page=mstw-lm-seasons | 1,155 | 3.05 | 42.00 | 63.95 |
Leagues /wp-admin/edit-tags.php?taxonomy=mstw_lm_league&post_type=mstw_lm_game | 1,793 | 3.31 | 39.74 | 68.18 |
Teams /wp-admin/edit.php?post_type=mstw_lm_team | 1,406 | 3.35 | 42.87 | 71.23 |
Manage Games /wp-admin/edit.php?post_type=mstw_lm_game | 1,478 | 3.42 | 44.61 | 72.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- mstw_league_manager_activated
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=mstw-lm-seasons
- > Notice in wp-content/plugins/mstw-league-manager/includes/mstw-lm-seasons-admin.php+194
Undefined variable: current_league
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
- 16× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mstw-league-manager/includes/mstw-lm-team-cpt-admin.php:44
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/mstw-league-manager/includes/mstw-lm-schedule-table.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/mstw-league-manager/templates/taxonomy-league.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/mstw-league-manager/includes/mstw-lm-venue-table.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/mstw-league-manager/mstw-league-manager.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mstw-league-manager/includes/mstw-lm-venue-cpt-admin.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/mstw-league-manager/includes/mstw-lm-admin.php:38
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/mstw-league-manager/includes/mstw-lm-team-schedule.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mstw-league-manager/includes/mstw-lm-game-cpt-admin.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/mstw-league-manager/includes/mstw-lm-standings-table.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser 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
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
mstw-league-manager/mstw-league-manager.php Passed 13 tests
The main PHP script in "MSTW League Manager" version 2.10 is automatically included on every request by WordPress
73 characters long description:
Manages multiple sports leagues. Displays league schedules and standings.
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
Success! There were no dangerous files found in this plugin17,585 lines of code in 50 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 29 | 4,699 | 8,314 | 13,690 |
CSS | 4 | 293 | 235 | 2,318 |
JavaScript | 17 | 548 | 615 | 1,577 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 76.83 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 138.00 |
Average method complexity | 5.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 208 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 202 | 97.12% |
▷ Protected methods | 6 | 2.88% |
▷ Private methods | 0 | 0.00% |
Functions | 238 | |
▷ Named functions | 238 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 1 | 33.33% |
▷ Class constants | 2 | 66.67% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
16 PNG files occupy 0.38MB with 0.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/ui-icons_cc0000_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
images/lmt-header-bkgd.png | 49.90KB | 0.30KB | ▼ 99.40% |
images/lm-header-bkgd.png | 49.90KB | 0.30KB | ▼ 99.40% |
images/mstw-logo-32x32.png | 52.27KB | 0.48KB | ▼ 99.09% |
images/mstw-video-icon.png | 48.65KB | 16.96KB | ▼ 65.13% |