Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼6.55ms] Passed 4 tests
Analyzing server-side resources used by MSTW Bracket Builder
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 37.06 ▼4.34 |
Dashboard /wp-admin | 3.36 ▲0.05 | 46.36 ▼8.53 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 49.83 ▲0.71 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 81.18 ▼14.04 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.70 ▲2.29 |
Bracket Builder /wp-admin/admin.php?page=mstw-bb-bracket-builder | 3.25 | 32.44 |
Tournaments /wp-admin/edit.php?post_type=mstw_bb_tourney | 3.33 | 40.41 |
Edit Tournament /wp-admin/admin.php?page=mstw-bb-edit-tournament | 3.24 | 33.47 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
MSTW Bracket Builder: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲95 | 13.20 ▼1.43 | 1.78 ▼0.30 | 42.72 ▼1.37 |
Dashboard /wp-admin | 2,234 ▲43 | 4.87 ▼1.03 | 96.29 ▼9.26 | 77.58 ▲34.88 |
Posts /wp-admin/edit.php | 2,123 ▲34 | 1.97 ▼0.01 | 39.33 ▲2.02 | 33.02 ▼1.93 |
Add New Post /wp-admin/post-new.php | 1,691 ▲163 | 22.54 ▼0.82 | 673.23 ▼11.19 | 54.31 ▲2.70 |
Media Library /wp-admin/upload.php | 1,419 ▲28 | 4.13 ▼0.09 | 100.31 ▲0.99 | 45.11 ▲4.33 |
Bracket Builder /wp-admin/admin.php?page=mstw-bb-bracket-builder | 866 | 2.03 | 24.13 | 29.69 |
Tournaments /wp-admin/edit.php?post_type=mstw_bb_tourney | 1,116 | 2.20 | 34.53 | 32.04 |
Edit Tournament /wp-admin/admin.php?page=mstw-bb-edit-tournament | 914 | 2.22 | 27.04 | 25.39 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=mstw-bb-edit-tournament
- > Notice in wp-content/plugins/mstw-bracket-builder/includes/mstw-bb-bracket-builder-class.php+197
Trying to get property 'ID' of non-object
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
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mstw-bracket-builder/mstw-bracket-builder.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/mstw-bracket-builder/includes/mstw-bb-admin.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/mstw-bracket-builder/includes/mstw-bb-tourney-table-class.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mstw-bracket-builder/includes/mstw-bb-tourney-cpt-admin.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/mstw-bracket-builder/includes/mstw-bb-tourney-bracket-class.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/mstw-bracket-builder/templates/single-tourney.php:24
- > 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 on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: knockout round, sports tournament, tournament manager, bracket, ncaa basketball tournament...
mstw-bracket-builder/mstw-bracket-builder.php Passed 13 tests
The main file in "MSTW Bracket Builder" v. 1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
45 characters long description:
Builds brackets for 4 to 64 team tournaments.
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
Success! There were no dangerous files found in this plugin4,313 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 877 | 1,382 | 1,841 |
CSS | 4 | 151 | 131 | 1,508 |
JavaScript | 2 | 224 | 80 | 964 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 32.75 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 67.00 |
Average method complexity | 3.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 63 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 63 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 36 | |
▷ Named functions | 36 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.15MB with 0.15MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/mstw-logo-16x16.png | 51.45KB | 0.27KB | ▼ 99.47% |
images/mstw-logo-32x32.png | 52.27KB | 0.48KB | ▼ 99.09% |
images/mstw-admin-menu-icon.png | 51.45KB | 0.27KB | ▼ 99.47% |