Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.85ms] Passed 4 tests
This is a short check of server-side resources used by Bad Tournament
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.27 ▼2.34 |
Dashboard /wp-admin | 3.34 ▼0.01 | 46.67 ▼17.83 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 47.36 ▲1.29 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 92.41 ▲0.72 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.67 ▲0.06 |
Table /wp-admin/admin.php?page=bad_tournament&admin_view=table | 3.32 | 127.18 |
Matches /wp-admin/admin.php?page=bad_tournament&admin_view=matches | 3.20 | 32.56 |
Players /wp-admin/admin.php?page=bad_tournament&admin_view=players | 3.20 | 29.25 |
Options /wp-admin/admin.php?page=bad_tournament&admin_view=export | 3.20 | 30.70 |
Bad Tournament /wp-admin/admin.php?page=bad_tournament | 3.20 | 26.45 |
Clubs /wp-admin/admin.php?page=bad_tournament&admin_view=clubs | 3.20 | 27.83 |
Server storage [IO: ▲0.45MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 54 new files
Database: 5 new tables, 8 new options
New tables |
---|
wp_bvg_players_tournament |
wp_bvg_matches |
wp_bvg_clubs |
wp_bvg_players_double |
wp_bvg_players |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
bad_tournament_installed |
widget_recent-comments |
theysaidso_admin_options |
recovery_mode_email_last_sent |
Browser metrics Passed 4 tests
Bad Tournament: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,850 ▲104 | 13.54 ▼0.83 | 1.81 ▲0.06 | 38.75 ▼0.87 |
Dashboard /wp-admin | 2,259 ▲67 | 4.87 ▼0.11 | 98.92 ▼12.91 | 83.06 ▲44.86 |
Posts /wp-admin/edit.php | 2,145 ▲56 | 1.98 ▼0.01 | 39.23 ▲3.16 | 34.24 ▼0.02 |
Add New Post /wp-admin/post-new.php | 1,634 ▲101 | 18.32 ▼4.57 | 690.95 ▲13.48 | 46.35 ▼10.49 |
Media Library /wp-admin/upload.php | 1,441 ▲50 | 4.21 ▼0.07 | 98.11 ▲1.03 | 72.33 ▲29.12 |
Table /wp-admin/admin.php?page=bad_tournament&admin_view=table | 788 | 1.53 | 6.88 | 18.18 |
Matches /wp-admin/admin.php?page=bad_tournament&admin_view=matches | 724 | 1.53 | 6.69 | 16.80 |
Players /wp-admin/admin.php?page=bad_tournament&admin_view=players | 724 | 1.35 | 7.05 | 20.44 |
Options /wp-admin/admin.php?page=bad_tournament&admin_view=export | 849 | 1.94 | 32.63 | 25.61 |
Bad Tournament /wp-admin/admin.php?page=bad_tournament | 724 | 1.14 | 7.20 | 16.24 |
Clubs /wp-admin/admin.php?page=bad_tournament&admin_view=clubs | 724 | 1.14 | 6.26 | 15.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_bvg_players_double
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- recovery_mode_email_last_sent
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=bad_tournament&admin_view=clubs
- > Warning in wp-content/plugins/bad-tournament/admin/index.php+11
require_once(wp-content/plugins/bad-tournament/admin/badt_functions.php): failed to open stream: No such file or directory
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=bad_tournament&admin_view=clubs
- > Compile error in wp-content/plugins/bad-tournament/admin/index.php+11
require_once(): Failed opening required 'wp-content/plugins/bad-tournament/admin/badt_functions.php' (include_path='.:/usr/share/php')
- > GET request to /wp-admin/admin.php?page=bad_tournament&admin_view=export
- > Warning in wp-content/plugins/bad-tournament/bad-tournament.php+155
include(wp-content/plugins/bad-tournament/admin/index-export.php): failed to open stream: No such file or directory
- > GET request to /wp-admin/admin.php?page=bad_tournament&admin_view=export
- > Warning in wp-content/plugins/bad-tournament/bad-tournament.php+155
include(): Failed opening 'wp-content/plugins/bad-tournament/admin/index-export.php' for inclusion (include_path='.:/usr/share/php')
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=bad_tournament
- > Notice in wp-content/plugins/bad-tournament/bad-tournament.php+154
Undefined index: admin_view
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 120× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: html_ajax in wp-content/plugins/bad-tournament/admin/action/player-info.php on line 11
- > PHP Notice
Undefined index: match_id in wp-content/plugins/bad-tournament/admin/action/change-player-match.php on line 9
- > PHP Notice
Undefined variable: html in wp-content/plugins/bad-tournament/admin/index_html/header.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/bad-tournament/admin/action/tournament-select.php:258
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/bad-tournament/admin/index_html/player-config.php on line 10
- > PHP Notice
Undefined variable: all_players in wp-content/plugins/bad-tournament/admin/index_html/player-config.php on line 34
- > PHP Notice
Trying to get property 'localization' of non-object in wp-content/plugins/bad-tournament/shortcodes/sc_html/tournament-summary.php on line 11
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/bad-tournament/admin/index_html/player-config.php on line 100
- > PHP Fatal error
Uncaught Error: Call to undefined function shortcode_atts() in wp-content/plugins/bad-tournament/shortcodes/shortcode-matches.php:13
- > PHP Notice
Undefined index: pl_id in wp-content/plugins/bad-tournament/admin/action/player-edit-field.php on line 9
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: tournament, table tennis, tennis, club, shortcode...
bad-tournament/bad-tournament.php Passed 13 tests
The main PHP script in "Bad Tournament" version 1.4 is automatically included on every request by WordPress
51 characters long description:
Badminton / Tennis / Table tennis Tournament Plugin
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 detected7,288 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 33 | 1,008 | 702 | 3,872 |
JavaScript | 3 | 302 | 367 | 2,375 |
CSS | 3 | 58 | 23 | 739 |
PO File | 1 | 140 | 163 | 302 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 24.00 |
▷ Minimum class complexity | 24.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 23 | |
▷ Named functions | 15 | 65.22% |
▷ Anonymous functions | 8 | 34.78% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
8 compressed PNG files occupy 0.06MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icons/background_spinner_ldo.png | 52.23KB | 34.27KB | ▼ 34.39% |
icons/bad-tournament-warning-icon.png | 1.12KB | 1.44KB | 0.00% |
icons/bad-tournament-ok-icon.png | 1.32KB | 1.49KB | 0.00% |
icons/bad-tournament-close-icon.png | 0.89KB | 0.77KB | ▼ 14.04% |
icons/bad-tournament-plus-icon.png | 0.74KB | 0.74KB | 0.00% |