Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- The plugin cannot be installed
- > User deprecated in wp-includes/functions.php+5453
Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
Server metrics [RAM: ▲0.34MB] [CPU: ▼5.31ms] Passed 4 tests
Analyzing server-side resources used by Bridge Tournament
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.83 ▲0.37 | 41.22 ▲0.53 |
Dashboard /wp-admin | 3.69 ▲0.34 | 50.47 ▼17.58 |
Posts /wp-admin/edit.php | 3.74 ▲0.38 | 54.09 ▲4.47 |
Add New Post /wp-admin/post-new.php | 6.21 ▲0.32 | 91.26 ▼8.67 |
Media Library /wp-admin/upload.php | 3.55 ▲0.32 | 44.74 ▲7.40 |
New Tournament /wp-admin/admin.php?page=create_tournament | 3.52 | 37.45 |
Players list /wp-admin/tools.php?page=my-custom-submenu-page | 3.49 | 36.46 |
New Player /wp-admin/admin.php?page=add_player | 3.53 | 34.32 |
BT Options /wp-admin/admin.php?page=bt-menu-options | 3.52 | 36.41 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 39 new files
Database: 4 new tables, 9 new options
New tables |
---|
wp_bt_player |
wp_bt_tournament |
wp_bt_partners |
wp_bt_registration |
New WordPress options |
---|
bt_remove_tables |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
bt_admin_privileges |
bt_join_message |
Browser metrics Passed 4 tests
Bridge Tournament: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,963 ▲202 | 13.55 ▼0.73 | 9.73 ▲8.06 | 41.26 ▼0.02 |
Dashboard /wp-admin | 2,255 ▲78 | 5.65 ▼0.01 | 85.79 ▼8.53 | 66.48 ▲23.76 |
Posts /wp-admin/edit.php | 2,157 ▲54 | 2.06 ▲0.11 | 34.53 ▼5.83 | 34.47 ▼2.46 |
Add New Post /wp-admin/post-new.php | 1,575 ▲47 | 22.98 ▼0.21 | 679.70 ▼4.93 | 44.49 ▼6.32 |
Media Library /wp-admin/upload.php | 1,454 ▲57 | 4.27 ▲0.09 | 109.86 ▲2.97 | 90.40 ▲45.62 |
New Tournament /wp-admin/admin.php?page=create_tournament | 935 | 1.83 | 25.64 | 34.77 |
Players list /wp-admin/tools.php?page=my-custom-submenu-page | 837 | 1.74 | 23.79 | 28.10 |
New Player /wp-admin/admin.php?page=add_player | 885 | 1.76 | 23.89 | 26.39 |
BT Options /wp-admin/admin.php?page=bt-menu-options | 1,013 | 1.78 | 24.58 | 42.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > User deprecated in wp-includes/functions.php+5453
Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/tools.php?page=my-custom-submenu-page
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'custom_player_display' not found or invalid function name
SRP 0% 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
The following issues need your attention
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/bridge-tournament/uninstall.php
- > /wp-content/plugins/bridge-tournament/templates/bt-error.php
- 22× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/bridge-tournament/templates/past-tournaments.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function site_url() in wp-content/plugins/bridge-tournament/templates/results-display.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/bridge-tournament/templates/bt-page-template.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function site_url() in wp-content/plugins/bridge-tournament/templates/tournament-add.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function site_url() in wp-content/plugins/bridge-tournament/templates/results-update.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/bridge-tournament/templates/tournament_admin_view.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/bridge-tournament/templates/available.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function site_url() in wp-content/plugins/bridge-tournament/templates/player-contact-form.php:12
- > PHP Notice
Undefined variable: error_html in wp-content/plugins/bridge-tournament/templates/bt-error.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/bridge-tournament/templates/player-list.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (Plugin welcome page), #2 (Tournament creation page), #3 (Result display)
bridge-tournament/bridge-tournament.php Passed 13 tests
The main file in "Bridge Tournament" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
93 characters long description:
This plugin is deisgned to help bridge tournament organizers to manage games and tournaments.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected2,797 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 27 | 469 | 787 | 2,389 |
PO File | 1 | 150 | 232 | 312 |
CSS | 2 | 3 | 1 | 96 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 37.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 72.00 |
Average method complexity | 2.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 89 | |
▷ Static methods | 2 | 2.25% |
▷ Public methods | 89 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 38 | |
▷ Named functions | 38 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 compressed PNG files occupy 0.00MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/bt-icon-32.png | 0.96KB | 0.71KB | ▼ 25.99% |
img/bt-icon-16.png | 0.72KB | 0.82KB | 0.00% |
img/bt-icon.png | 0.54KB | 0.66KB | 0.00% |
img/bt-icon-base.png | 0.53KB | 0.66KB | 0.00% |