83% brackets-ninja

Code Review | Brackets Ninja: Create Brackets & Tournaments and Easily Manage Them Online

WordPress plugin Brackets Ninja: Create Brackets & Tournaments and Easily Manage Them Online scored83%from 54 tests.

About plugin

  • Plugin page: brackets-ninja
  • Plugin version: 2.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.4.1
  • WordPress version: 6.3.1
  • First release: Mar 8, 2014
  • Latest release: May 12, 2020
  • Number of updates: 12
  • Update frequency: every 188.1 days
  • Top authors: CommonNinja (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active /10,560 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.65ms] Passed 4 tests

An overview of server-side resources used by Brackets Ninja: Create Brackets & Tournaments and Easily Manage Them Online
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.70 ▼3.62
Dashboard /wp-admin3.31 ▲0.0147.73 ▼5.03
Posts /wp-admin/edit.php3.36 ▲0.0050.08 ▼3.19
Add New Post /wp-admin/post-new.php5.89 ▲0.00103.01 ▼18.76
Media Library /wp-admin/upload.php3.23 ▲0.0041.60 ▲0.42

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Brackets Ninja: Create Brackets & Tournaments and Easily Manage Them Online
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.27 ▼0.081.76 ▼0.0944.64 ▲1.86
Dashboard /wp-admin2,195 ▲215.64 ▼0.0285.66 ▼6.0340.01 ▼2.54
Posts /wp-admin/edit.php2,100 ▼31.99 ▼0.0041.00 ▼2.0838.54 ▼0.65
Add New Post /wp-admin/post-new.php1,528 ▼022.65 ▼0.52670.61 ▲9.9550.06 ▼9.97
Media Library /wp-admin/upload.php1,400 ▼04.24 ▲0.1298.59 ▼12.3143.90 ▼0.01

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/brackets-ninja/bracketsninja.php:37

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 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
Attributes that require attention:
  • Screenshots: Please a description for screenshot #5 in brackets-ninja/assets to your readme.txt
  • Tags: There are too many tags (22 tag instead of maximum 10)
Please take inspiration from this readme.txt

brackets-ninja/bracketsninja.php 85% from 13 tests

"Brackets Ninja: Create Brackets & Tournaments and Easily Manage Them Online" version 2.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("brackets-ninja.php" instead of "bracketsninja.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 209 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected53 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript10135
PHP161518

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
js/bracketsninja.png3.43KB0.93KB▼ 72.84%