84% ticketor

Code Review | Ticketor

WordPress plugin Ticketor scored84%from 54 tests.

About plugin

  • Plugin page: ticketor
  • Plugin version: 4.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.3.0
  • WordPress version: 6.3.1
  • First release: Nov 23, 2016
  • Latest release: Dec 7, 2019
  • Number of updates: 10
  • Update frequency: every 110.9 days
  • Top authors: salarbehdad (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /2,192 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Ticketor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.75 ▼1.60
Dashboard /wp-admin3.31 ▲0.0050.73 ▲0.53
Posts /wp-admin/edit.php3.36 ▲0.0048.58 ▼2.53
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.85 ▼13.54
Media Library /wp-admin/upload.php3.23 ▲0.0041.05 ▼9.08

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Ticketor: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.38 ▼0.281.80 ▼0.3441.66 ▼3.21
Dashboard /wp-admin2,192 ▲215.60 ▼0.0990.47 ▲0.4038.92 ▼6.98
Posts /wp-admin/edit.php2,097 ▼32.04 ▲0.0139.15 ▲2.2034.50 ▼1.86
Add New Post /wp-admin/post-new.php1,526 ▼517.47 ▼5.70682.90 ▼26.3258.98 ▲4.38
Media Library /wp-admin/upload.php1,397 ▼04.28 ▲0.01105.21 ▼5.8745.41 ▼6.24

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
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/ticketor/ticketor.php:52

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)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: seating chart, event ticketing, box-office, selling tickets, e-ticket scanning...

ticketor/ticketor.php 92% from 13 tests

The main file in "Ticketor" v. 4.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 532 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin46 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP19946

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.60
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 1.19MB with 0.81MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png25.51KB13.40KB▼ 47.46%
screenshot-2.png205.08KB44.02KB▼ 78.53%
screenshot-3.png987.60KB209.92KB▼ 78.74%