Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.31MB] [CPU: ▲6.51ms] Passed 4 tests
Server-side resources used by Simple Tournament Brackets
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.20 | 43.16 ▲9.64 |
Dashboard /wp-admin | 3.63 ▲0.33 | 50.64 ▲5.22 |
Posts /wp-admin/edit.php | 3.73 ▲0.37 | 55.52 ▲3.29 |
Add New Post /wp-admin/post-new.php | 6.29 ▲0.40 | 97.71 ▲14.31 |
Media Library /wp-admin/upload.php | 3.55 ▲0.32 | 42.05 ▲7.87 |
Tournaments /wp-admin/options-general.php?page=simple-tournament-brackets | 3.52 | 37.39 |
All Tournaments /wp-admin/edit.php?post_type=stb-tournament | 3.59 | 46.30 |
Add New /wp-admin/post-new.php?post_type=stb-tournament | 3.60 | 50.43 |
Start Tournament /wp-admin/admin.php?page=seed_tournament | 3.50 | 38.04 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Simple Tournament Brackets
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲75 | 14.19 ▼0.09 | 1.59 ▼0.17 | 39.37 ▲1.05 |
Dashboard /wp-admin | 2,243 ▲65 | 5.62 ▼0.01 | 85.49 ▼31.20 | 40.02 ▼6.46 |
Posts /wp-admin/edit.php | 2,148 ▲45 | 1.98 ▲0.04 | 40.90 ▲1.39 | 41.79 ▲6.76 |
Add New Post /wp-admin/post-new.php | 1,554 ▲5 | 23.24 ▲4.35 | 623.79 ▼72.64 | 53.45 ▼6.83 |
Media Library /wp-admin/upload.php | 1,445 ▲51 | 4.19 ▼0.03 | 97.42 ▼0.13 | 41.07 ▼3.15 |
Tournaments /wp-admin/options-general.php?page=simple-tournament-brackets | 926 | 2.05 | 26.88 | 29.94 |
All Tournaments /wp-admin/edit.php?post_type=stb-tournament | 1,141 | 1.90 | 32.91 | 29.80 |
Add New /wp-admin/post-new.php?post_type=stb-tournament | 1,490 | 2.58 | 48.82 | 56.51 |
Start Tournament /wp-admin/admin.php?page=seed_tournament | 702 | 1.12 | 6.47 | 12.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
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
4 plugin tags: bracket, tournament, esports, bracket-generator
simple-tournament-brackets/simple-tournament-brackets.php Passed 13 tests
"Simple Tournament Brackets" version 1.1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
71 characters long description:
Manage tournaments with a simple easy to use interface on your website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin1,518 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 161 | 346 | 880 |
JavaScript | 2 | 81 | 101 | 398 |
CSS | 2 | 34 | 3 | 240 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 31.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 61.00 |
Average method complexity | 4.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 27 | 90.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 10.00% |
Functions | 18 | |
▷ Named functions | 3 | 16.67% |
▷ Anonymous functions | 15 | 83.33% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected