84% bracketcloud

Code Review | BracketCloud

WordPress plugin BracketCloud scored84%from 54 tests.

About plugin

  • Plugin page: bracketcloud
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-4.1
  • WordPress version: 6.3.1
  • First release: Aug 19, 2013
  • Latest release: Dec 31, 2014
  • Number of updates: 11
  • Update frequency: every 45.5 days
  • Top authors: drupaljoe (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,494 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

This is a short check of server-side resources used by BracketCloud
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.0038.91 ▼3.06
Dashboard /wp-admin3.57 ▲0.0150.23 ▼5.20
Posts /wp-admin/edit.php3.68 ▲0.0052.58 ▼10.17
Add New Post /wp-admin/post-new.php6.15 ▲0.0087.83 ▼28.52
Media Library /wp-admin/upload.php3.49 ▲0.0038.85 ▼10.56

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

BracketCloud: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.30 ▼0.261.55 ▼0.1242.10 ▲1.06
Dashboard /wp-admin2,195 ▲155.65 ▲0.0498.58 ▲3.1542.38 ▼3.65
Posts /wp-admin/edit.php2,103 ▲32.03 ▲0.0239.85 ▼1.6534.81 ▼1.43
Add New Post /wp-admin/post-new.php1,548 ▲1723.18 ▲0.03627.17 ▲18.6957.65 ▼0.01
Media Library /wp-admin/upload.php1,397 ▼04.20 ▼0.21104.14 ▼9.9643.41 ▼4.36

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/bracketcloud/bracketcloud.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: bracketcloud, tournament, round robin, bracket

bracketcloud/bracketcloud.php Passed 13 tests

This is the main PHP file of "BracketCloud" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
78 characters long description:
Implements a shortcode for embedding BracketCloud tournaments in post content.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin11 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14911

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
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
PNG images were not found in this plugin