78% ticketboxvn-shortcode

Code Review | Ticketbox.vn shortcode

WordPress plugin Ticketbox.vn shortcode scored78%from 54 tests.

About plugin

  • Plugin page: ticketboxvn-short...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.8.1
  • WordPress version: 6.3.1
  • First release: Apr 7, 2014
  • Latest release: Apr 7, 2014
  • Number of updates: 2
  • Update frequency: every 4.5 days
  • Top authors: JoshKay (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /679 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼10.66ms] Passed 4 tests

A check of server-side resources used by Ticketbox.vn shortcode
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0137.00 ▼3.66
Dashboard /wp-admin3.33 ▼0.0145.40 ▼18.00
Posts /wp-admin/edit.php3.38 ▲0.0244.16 ▼2.23
Add New Post /wp-admin/post-new.php5.91 ▲0.0281.32 ▼18.74
Media Library /wp-admin/upload.php3.25 ▲0.0236.06 ▲3.31
TicketBox Settings /wp-admin/options-general.php?page=ticketbox-admin3.1927.16

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Ticketbox.vn shortcode
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.20 ▼1.061.59 ▼0.1739.28 ▼4.13
Dashboard /wp-admin2,210 ▲185.91 ▲0.8799.54 ▼12.9738.09 ▼3.12
Posts /wp-admin/edit.php2,096 ▲72.01 ▲0.0134.00 ▼4.2131.67 ▼1.67
Add New Post /wp-admin/post-new.php1,517 ▼1117.65 ▼0.62674.19 ▲76.8756.72 ▼8.28
Media Library /wp-admin/upload.php1,386 ▲44.15 ▼0.14101.45 ▲6.5844.22 ▼1.23
TicketBox Settings /wp-admin/options-general.php?page=ticketbox-admin7782.2125.4925.77

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=ticketbox-admin
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=ticketbox-admin
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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 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/ticketboxvn-shortcode/ticketbox-shortcode.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: ticketbox, shortcode, tickets, stable

ticketboxvn-shortcode/ticketbox-shortcode.php 92% from 13 tests

The entry point to "Ticketbox.vn shortcode" version 1.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ticketboxvn-shortcode.php" instead of "ticketbox-shortcode.php")

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
There were no executable files found in this plugin112 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.29
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin