90% simple-tournament-brackets

Code Review | Simple Tournament Brackets

WordPress plugin Simple Tournament Brackets scored90%from 54 tests.

About plugin

  • Plugin page: simple-tournament...
  • Plugin version: 1.1.2
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.4.1
  • WordPress version: 6.3.1
  • First release: May 19, 2022
  • Latest release: Nov 17, 2023
  • Number of updates: 13
  • Update frequency: every 42.1 days
  • Top authors: tournamatch (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /2,327 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2043.16 ▲9.64
Dashboard /wp-admin3.63 ▲0.3350.64 ▲5.22
Posts /wp-admin/edit.php3.73 ▲0.3755.52 ▲3.29
Add New Post /wp-admin/post-new.php6.29 ▲0.4097.71 ▲14.31
Media Library /wp-admin/upload.php3.55 ▲0.3242.05 ▲7.87
Tournaments /wp-admin/options-general.php?page=simple-tournament-brackets3.5237.39
All Tournaments /wp-admin/edit.php?post_type=stb-tournament3.5946.30
Add New /wp-admin/post-new.php?post_type=stb-tournament3.6050.43
Start Tournament /wp-admin/admin.php?page=seed_tournament3.5038.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲7514.19 ▼0.091.59 ▼0.1739.37 ▲1.05
Dashboard /wp-admin2,243 ▲655.62 ▼0.0185.49 ▼31.2040.02 ▼6.46
Posts /wp-admin/edit.php2,148 ▲451.98 ▲0.0440.90 ▲1.3941.79 ▲6.76
Add New Post /wp-admin/post-new.php1,554 ▲523.24 ▲4.35623.79 ▼72.6453.45 ▼6.83
Media Library /wp-admin/upload.php1,445 ▲514.19 ▼0.0397.42 ▼0.1341.07 ▼3.15
Tournaments /wp-admin/options-general.php?page=simple-tournament-brackets9262.0526.8829.94
All Tournaments /wp-admin/edit.php?post_type=stb-tournament1,1411.9032.9129.80
Add New /wp-admin/post-new.php?post_type=stb-tournament1,4902.5848.8256.51
Start Tournament /wp-admin/admin.php?page=seed_tournament7021.126.4712.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:
LanguageFilesBlank linesComment linesLines of code
PHP5161346880
JavaScript281101398
CSS2343240

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 code0.38
Average class complexity31.00
▷ Minimum class complexity5.00
▷ Maximum class complexity61.00
Average method complexity4.04
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods30
▷ Static methods00.00%
▷ Public methods2790.00%
▷ Protected methods00.00%
▷ Private methods310.00%
Functions18
▷ Named functions316.67%
▷ Anonymous functions1583.33%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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