Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- The plugin did not install without errors
- > Warning in wp-content/plugins/bracketpress/bracketpress.php+31
constant(): Couldn't find constant BRACKETPRESS_DEBUG
Server metrics [RAM: ▼1.65MB] [CPU: ▼186.60ms] Passed 4 tests
Analyzing server-side resources used by BracketPress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.98 ▼0.85 | 5.29 ▼29.82 |
Dashboard /wp-admin | 2.00 ▼1.05 | 6.30 ▼37.42 |
Posts /wp-admin/edit.php | 2.00 ▼1.10 | 5.63 ▼36.55 |
Add New Post /wp-admin/post-new.php | 2.00 ▼3.43 | 5.44 ▼642.60 |
Media Library /wp-admin/upload.php | 2.00 ▼1.00 | 5.44 ▼28.41 |
Team Data /wp-admin/edit.php?post_type=brackets&page=bracketpress_teams | 2.01 | 5.83 |
Add Ons /wp-admin/edit.php?post_type=brackets&page=bracketpress_addons | 2.01 | 5.66 |
Settings & Scoring /wp-admin/edit.php?post_type=brackets&page=bracketpress | 2.01 | 6.21 |
Add New /wp-admin/post-new.php?post_type=brackets | 2.00 | 6.10 |
Brackets /wp-admin/edit.php?post_type=brackets | 2.01 | 10.19 |
Server storage [IO: ▲0.20MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 31 new files
Database: 3 new tables, 10 new options
New tables |
---|
wp_bracketpress_match |
wp_bracketpress_team |
wp_bracketpress_location |
New WordPress options |
---|
bracketpress_regionname_4 |
widget_mynewwidget |
bracketpress_region_2 |
bracketpress_regionname_1 |
bracketpress_region_4 |
bracketpress_regionname_2 |
bracketpress_options |
bracketpress_region_3 |
bracketpress_region_1 |
bracketpress_regionname_3 |
Browser metrics Passed 4 tests
A check of browser resources used by BracketPress
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,757 ▲185 | 15.90 ▲0.14 | 7.81 ▲0.01 | 51.94 ▼0.50 |
Dashboard /wp-admin | 3,042 ▲111 | 6.00 ▲0.02 | 138.35 ▼3.49 | 114.72 ▲0.41 |
Posts /wp-admin/edit.php | 2,789 ▲50 | 2.72 ▲0.01 | 62.12 ▲1.04 | 92.03 ▼3.73 |
Add New Post /wp-admin/post-new.php | 1,532 ▼83 | 18.55 ▼3.36 | 361.51 ▲93.02 | 112.12 ▲3.68 |
Media Library /wp-admin/upload.php | 1,860 ▲53 | 5.03 ▼0.02 | 142.55 ▼17.54 | 117.08 ▼11.79 |
Team Data /wp-admin/edit.php?post_type=brackets&page=bracketpress_teams | 9,299 | 2.09 | 59.47 | 71.12 |
Add Ons /wp-admin/edit.php?post_type=brackets&page=bracketpress_addons | 1,098 | 2.10 | 53.72 | 62.12 |
Settings & Scoring /wp-admin/edit.php?post_type=brackets&page=bracketpress | 1,313 | 2.08 | 52.99 | 80.94 |
Add New /wp-admin/post-new.php?post_type=brackets | 3,325 | 9.06 | 204.51 | 153.20 |
Brackets /wp-admin/edit.php?post_type=brackets | 2,443 | 2.71 | 61.84 | 82.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Warning in wp-content/plugins/bracketpress/bracketpress.php+31
constant(): Couldn't find constant BRACKETPRESS_DEBUG
- The plugin did not uninstall successfully, leaving 3 tables in the database
- wp_bracketpress_match
- wp_bracketpress_location
- wp_bracketpress_team
- Zombie WordPress options were found after uninstall: 10 options
- bracketpress_region_2
- bracketpress_region_1
- bracketpress_regionname_4
- bracketpress_region_4
- bracketpress_regionname_1
- bracketpress_regionname_2
- bracketpress_regionname_3
- bracketpress_options
- bracketpress_region_3
- widget_mynewwidget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- 6 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=brackets
- > POST request to /wp-admin/admin-ajax.php
- > Warning in wp-content/plugins/bracketpress/bracketpress.php+31
constant(): Couldn't find constant BRACKETPRESS_DEBUG
- 6 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=brackets
- > POST request to /wp-admin/admin-ajax.php
- > Deprecated in wp-content/plugins/bracketpress/lib/bracketpress-widgets.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; MyNewWidget has a deprecated constructor
- > GET request to /wp-admin/edit.php?post_type=brackets&page=bracketpress_teams
- > Notice in wp-content/plugins/bracketpress/templates/teams.php+37
Undefined index: changeposition
- > GET request to /wp-admin/edit.php?post_type=brackets&page=bracketpress_teams
- > Notice in wp-content/plugins/bracketpress/templates/teams.php+189
Undefined variable: rowcount
- > GET request to /wp-admin/edit.php?post_type=brackets&page=bracketpress
- > User deprecated in wp-includes/functions.php+5221
screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/edit.php?post_type=brackets&page=bracketpress
- > User deprecated in wp-includes/functions.php+5221
get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/edit.php?post_type=brackets&page=bracketpress
- > Notice in wp-content/plugins/bracketpress/includes/admin/settings.php+80
Undefined index: date_brackets_close
- 9 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=brackets&page=bracketpress
- > Warning in wp-content/plugins/bracketpress/includes/admin/settings.php+132
Use of undefined constant size - assumed 'size' (this will throw an Error in a future version of PHP)
- 9 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=brackets&page=bracketpress
- > Warning in wp-content/plugins/bracketpress/includes/admin/settings.php+132
Use of undefined constant type - assumed 'type' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/edit.php?post_type=brackets&page=bracketpress
- > Notice in wp-content/plugins/bracketpress/includes/admin/settings.php+80
Undefined index: time_brackets_close
- > GET request to /wp-admin/edit.php?post_type=brackets&page=bracketpress
- > Notice in wp-content/plugins/bracketpress/includes/admin/settings.php+80
Undefined index: points_first_round
- > GET request to /wp-admin/edit.php?post_type=brackets&page=bracketpress
- > Notice in wp-content/plugins/bracketpress/includes/admin/settings.php+80
Undefined index: points_second_round
- > GET request to /wp-admin/edit.php?post_type=brackets&page=bracketpress
- > Notice in wp-content/plugins/bracketpress/includes/admin/settings.php+80
Undefined index: points_third_round
- > GET request to /wp-admin/edit.php?post_type=brackets&page=bracketpress
- > Notice in wp-content/plugins/bracketpress/includes/admin/settings.php+80
Undefined index: points_fourth_round
- > GET request to /wp-admin/edit.php?post_type=brackets&page=bracketpress
- > Notice in wp-content/plugins/bracketpress/includes/admin/settings.php+80
Undefined index: points_fifth_round
- > GET request to /wp-admin/edit.php?post_type=brackets&page=bracketpress
- > Notice in wp-content/plugins/bracketpress/includes/admin/settings.php+80
Undefined index: points_sixth_round
- > GET request to /wp-admin/edit.php?post_type=brackets&page=bracketpress
- > Notice in wp-content/plugins/bracketpress/includes/admin/settings.php+80
Undefined index: template
- > GET request to /wp-admin/edit.php?post_type=brackets&page=bracketpress
- > Notice in wp-content/plugins/bracketpress/includes/admin/settings.php+80
Undefined index: edit_title
- > GET request to /wp-admin/edit.php?post_type=brackets&page=bracketpress
- > Notice in wp-content/plugins/bracketpress/includes/admin/settings.php+80
Undefined index: show_bracketpress_logo
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/bracketpress/templates/addons.php
- 12× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bracketpress/templates/bracket_edit.php:50
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bracketpress/lib/bracketpress-widgets.php:3
- > PHP Warning
Use of undefined constant BRACKETPRESS_CSS_URL - assumed 'BRACKETPRESS_CSS_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/bracketpress/templates/locations.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/bracketpress/lib/functions.php:96
- > PHP Warning
Use of undefined constant BRACKETPRESS_CSS_URL - assumed 'BRACKETPRESS_CSS_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/bracketpress/templates/locations.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/bracketpress/lib/bracketpress-shortcodes.php:28
- > PHP Warning
Use of undefined constant BRACKETPRESS_CSS_URL - assumed 'BRACKETPRESS_CSS_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/bracketpress/templates/locations.php on line 2
- > PHP Notice
Undefined index: changeposition in wp-content/plugins/bracketpress/templates/teams.php on line 37
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/bracketpress/templates/teams.php:50
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/bracketpress/bracketpress-config.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were 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
10 plugin tags: tournament, gambling, bracket, sports, march madness...
bracketpress/bracketpress.php Passed 13 tests
"BracketPress" version 1.7.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
40 characters long description:
Run and score a tournament bracket pool.
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
There were no executable files found in this plugin3,710 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 711 | 651 | 2,308 |
CSS | 3 | 62 | 64 | 1,060 |
JavaScript | 1 | 108 | 27 | 342 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 15.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 2.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 1 | 11.11% |
Methods | 94 | |
▷ Static methods | 17 | 18.09% |
▷ Public methods | 84 | 89.36% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 10.64% |
Functions | 25 | |
▷ Named functions | 25 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 23 | |
▷ Global constants | 23 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
media/images/region_key.png | 9.73KB | 4.06KB | ▼ 58.25% |
media/images/Button-Add-icon.png | 1.36KB | 1.29KB | ▼ 5.46% |