84% wp-tournament-registration

Code Review | WP Tournament Registration

WordPress plugin WP Tournament Registration scored84%from 54 tests.

About plugin

  • Plugin page: wp-tournament-reg...
  • Plugin version: 1.2.5
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.4
  • WordPress version: 6.3.1
  • First release: Sep 29, 2020
  • Latest release: Nov 8, 2023
  • Number of updates: 56
  • Update frequency: every 20.3 days
  • Top authors: archaeopath (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,572 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼3.89ms] Passed 4 tests

An overview of server-side resources used by WP Tournament Registration
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1338.27 ▼1.81
Dashboard /wp-admin3.43 ▲0.1349.75 ▼2.80
Posts /wp-admin/edit.php3.48 ▲0.1251.47 ▼0.84
Add New Post /wp-admin/post-new.php6.01 ▲0.1287.22 ▼10.10
Media Library /wp-admin/upload.php3.35 ▲0.1236.24 ▲3.96

Server storage [IO: ▲1.12MB] [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: 151 new files
Database: 1 new table, 7 new options
New tables
wp_wptournreg_participants
New WordPress options
theysaidso_admin_options
can_compress_scripts
wptournreg_db_version
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for WP Tournament Registration
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.67 ▲0.461.70 ▼0.1537.26 ▼7.23
Dashboard /wp-admin2,189 ▲95.52 ▼0.1289.79 ▼11.3539.03 ▼4.94
Posts /wp-admin/edit.php2,100 ▼01.94 ▼0.0040.47 ▲2.0234.51 ▼0.36
Add New Post /wp-admin/post-new.php1,526 ▼023.16 ▼0.03631.23 ▼46.3261.23 ▲11.37
Media Library /wp-admin/upload.php1,403 ▲34.15 ▼0.0598.90 ▼1.4844.14 ▲2.04

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 19× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
    • > /wp-content/plugins/wp-tournament-registration/shortcodes/list.php
    • > /wp-content/plugins/wp-tournament-registration/db/scheme.php
    • > /wp-content/plugins/wp-tournament-registration/http/cache.php
    • > /wp-content/plugins/wp-tournament-registration/assets/load.php
    • > /wp-content/plugins/wp-tournament-registration/html/backlink.php
    • > /wp-content/plugins/wp-tournament-registration/db/update.php
    • > /wp-content/plugins/wp-tournament-registration/db/insert.php
    • > /wp-content/plugins/wp-tournament-registration/html/backbutton.php
    • > /wp-content/plugins/wp-tournament-registration/shortcodes/edit.php
    • > /wp-content/plugins/wp-tournament-registration/shortcodes/form.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: tournament, hobby sport, events, competitions, registration...

wp-tournament-registration/wp-tournament-registration.php Passed 13 tests

This is the main PHP file of "WP Tournament Registration" version 1.2.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
35 characters long description:
Simple tournament registration form

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
Success! There were no dangerous files found in this plugin12,027 lines of code in 115 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript676051,9519,966
LESS3130158727
PHP1931876714
Sass1420285
CSS211043221
PO File2334195
Markdown111012
SVG1007

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.44
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%
Functions21
▷ Named functions21100.00%
▷ Anonymous functions00.00%
Constants17
▷ Global constants17100.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
16 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/jquery.tablesorter/css/images/bootstrap-black-unsorted.png0.27KB0.28KB0.00%
assets/jquery.tablesorter/css/images/dropbox-asc.png0.20KB0.21KB0.00%
assets/jquery.tablesorter/css/images/metro-white-desc.png0.17KB0.22KB0.00%
assets/jquery.tablesorter/css/images/first.png0.63KB0.71KB0.00%
assets/jquery.tablesorter/css/images/metro-black-asc.png0.15KB0.21KB0.00%