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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.94MB] [CPU: ▲2.75ms] Passed 4 tests
An overview of server-side resources used by Team Rosters
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.02 ▲0.56 | 45.98 ▲6.93 |
Dashboard /wp-admin | 4.39 ▲1.04 | 61.09 ▼1.30 |
Posts /wp-admin/edit.php | 4.45 ▲1.09 | 61.95 ▲11.48 |
Add New Post /wp-admin/post-new.php | 6.97 ▲1.08 | 102.54 ▲2.54 |
Media Library /wp-admin/upload.php | 4.29 ▲1.06 | 46.07 ▲2.82 |
Team Rosters /wp-admin/admin.php?page=team-rosters-page | 4.28 | 48.09 |
Teams /wp-admin/edit-tags.php?taxonomy=mstw_tr_team&post_type=mstw_tr_player | 4.31 | 43.95 |
CSV Import /wp-admin/admin.php?page=mstw-tr-csv-import | 4.29 | 47.48 |
Edit Rosters /wp-admin/admin.php?page=manage-team-rosters | 4.29 | 46.89 |
Settings /wp-admin/admin.php?page=mstw-tr-settings | 4.52 | 47.43 |
Add Players to Rosters /wp-admin/admin.php?page=add-players-screen | 4.29 | 48.45 |
Manage Players /wp-admin/edit.php?post_type=mstw_tr_player | 4.36 | 54.44 |
Server storage [IO: ▲0.78MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 39 new files
Database: no new tables, 9 new options
New WordPress options |
---|
can_compress_scripts |
mstw_tr_options |
mstw_team_rosters_activated |
widget_theysaidso_widget |
widget_recent-comments |
mstw_tr_ss_team_links |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Team Rosters
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,066 ▲305 | 15.21 ▲1.06 | 7.56 ▲5.62 | 41.02 ▼0.61 |
Dashboard /wp-admin | 2,363 ▲185 | 6.16 ▲0.50 | 130.40 ▲26.39 | 121.41 ▲74.66 |
Posts /wp-admin/edit.php | 2,319 ▲219 | 3.35 ▲1.33 | 46.26 ▲4.08 | 71.76 ▲36.33 |
Add New Post /wp-admin/post-new.php | 1,574 ▲48 | 23.29 ▼0.11 | 601.50 ▼49.61 | 65.31 ▲9.12 |
Media Library /wp-admin/upload.php | 1,453 ▲56 | 4.09 ▼0.12 | 84.38 ▼26.39 | 83.68 ▲36.20 |
Team Rosters /wp-admin/admin.php?page=team-rosters-page | 1,072 | 3.05 | 41.22 | 72.99 |
Teams /wp-admin/edit-tags.php?taxonomy=mstw_tr_team&post_type=mstw_tr_player | 1,494 | 3.19 | 49.81 | 75.16 |
CSV Import /wp-admin/admin.php?page=mstw-tr-csv-import | 1,244 | 3.06 | 38.90 | 62.56 |
Edit Rosters /wp-admin/admin.php?page=manage-team-rosters | 1,081 | 3.07 | 38.58 | 63.55 |
Settings /wp-admin/admin.php?page=mstw-tr-settings | 1,926 | 3.43 | 43.73 | 81.53 |
Add Players to Rosters /wp-admin/admin.php?page=add-players-screen | 1,094 | 3.02 | 41.68 | 61.24 |
Manage Players /wp-admin/edit.php?post_type=mstw_tr_player | 1,496 | 3.36 | 45.58 | 57.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 9 options in the database
- mstw_tr_ss_team_links
- mstw_team_rosters_activated
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- mstw_tr_options
- theysaidso_admin_options
- can_compress_scripts
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)
Everything seems fine, however this is by no means an exhaustive test
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 take a closer look at the following
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/team-rosters/mstw-team-rosters.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/team-rosters/includes/mstw-tr-admin.php:52
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/team-rosters/theme-templates/taxonomy-team.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/team-rosters/includes/mstw-tr-player-cpt-admin.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/team-rosters/theme-templates/single-player.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: rosters, sports team roster, sports, member list, teams...
team-rosters/mstw-team-rosters.php 85% from 13 tests
The main PHP file in "Team Rosters" ver. 4.6 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Domain Path: The domain path folder does not exist ("/lang")
- Main file name: The principal plugin file should be the same as the plugin slug ("team-rosters.php" instead of "mstw-team-rosters.php")
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
No dangerous file extensions were detected8,094 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 2,121 | 4,728 | 7,064 |
CSS | 2 | 170 | 168 | 704 |
JavaScript | 11 | 132 | 280 | 326 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 61.40 |
▷ Minimum class complexity | 29.00 |
▷ Maximum class complexity | 102.00 |
Average method complexity | 4.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 95 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 89 | 93.68% |
▷ Protected methods | 6 | 6.32% |
▷ Private methods | 0 | 0.00% |
Functions | 150 | |
▷ Named functions | 150 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 9 | 100.00% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.27MB with 0.26MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/mstw-admin-menu-icon.png | 51.45KB | 0.27KB | ▼ 99.47% |
images/default-images/default-logo.png | 57.04KB | 1.63KB | ▼ 97.15% |
images/mstw-logo-32x32.png | 52.27KB | 0.48KB | ▼ 99.09% |
images/mstw-logo-16x16.png | 51.45KB | 0.27KB | ▼ 99.47% |
images/default-images/default-photo.png | 63.39KB | 4.79KB | ▼ 92.44% |