70% ticketing-system

Code Review | ticketing online

WordPress plugin ticketing online scored 70% from 54 tests.

About plugin

  • Plugin page: ticketing-system
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.5
  • WordPress version: 6.3.1
  • First release: May 2, 2018
  • Latest release: May 2, 2018
  • Number of updates: 9
  • Update frequency: every 0.6 days
  • Top authors: ticketself (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 715 total downloads

Benchmarks

Plugin footprint 82% 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.10MB] [CPU: ▲211.70ms] 75% from 4 tests

A check of server-side resources used by ticketing online
It is recommended to improve the following
  • Extra CPU: Extra CPU usage must be kept under 200.00ms (currently 211.70ms on /wp-admin/options-general.php?page=wp-ticketing)
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0841.93 ▼3.92
Dashboard /wp-admin3.46 ▲0.15323.42 ▲268.70
Posts /wp-admin/edit.php3.51 ▲0.15343.32 ▲293.63
Add New Post /wp-admin/post-new.php6.00 ▲0.11395.92 ▲296.15
Media Library /wp-admin/upload.php3.32 ▲0.09326.67 ▲288.38
ticketing Online /wp-admin/options-general.php?page=wp-ticketing3.29326.65

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 8 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options
wpticketing-password
can_compress_scripts
widget_recent-posts
wpticketing-email

Browser metrics Passed 4 tests

Checking browser requirements for ticketing online
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,906 ▲11713.63 ▲0.345.20 ▲3.2342.89 ▼5.16
Dashboard /wp-admin2,226 ▲204.86 ▼1.01110.06 ▼1.9647.39 ▲4.99
Posts /wp-admin/edit.php2,112 ▲231.99 ▼0.0040.31 ▲3.7835.10 ▲1.47
Add New Post /wp-admin/post-new.php1,548 ▲622.92 ▲4.66673.76 ▲60.4460.71 ▲9.58
Media Library /wp-admin/upload.php1,411 ▲264.24 ▲0.0297.95 ▼3.7144.74 ▼1.32
ticketing Online /wp-admin/options-general.php?page=wp-ticketing8442.0325.9232.19

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 8 options
    • wpticketing-password
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • wpticketing-email
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
Please fix the following items
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/ticketing-system/public/partials/wp-ticketing-public-display.php
    • > /wp-content/plugins/ticketing-system/public/partials/wp-reservas-public-display.php
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_load_alloptions() in wp-content/plugins/ticketing-system/admin/partials/wp-ticketing-admin-display.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_load_alloptions() in wp-content/plugins/ticketing-system/admin/partials/wp-reservas-admin-display.php:17

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
    • > GET request to /wp-admin/options-general.php?page=wp-ticketing
    • > Network (severe)
    wp-content/plugins/ticketing-system/admin/css/wp-ticketing-admin.css?ver=1.0.0 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/options-general.php?page=wp-ticketing
    • > Network (severe)
    wp-content/plugins/ticketing-system/admin/js/wp-ticketing-admin.js?ver=1.0.0 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 76% from 29 tests

readme.txt 75% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Requires php: Version format is invalid
  • Screenshots: Add images for these screenshots: #1 (https://www.ticketself.com/static/integrations/wordpress/screenshots/1.png), #2 (https://www.ticketself.com/static/integrations/wordpress/screenshots/2.png)
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
  • Contributors: Plugin contributors field is missing
The official readme.txt is a good inspiration

ticketing-system/wp-ticketing.php 77% from 13 tests

"ticketing online" version 1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 163 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("ticketing-system.php" instead of "wp-ticketing.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin568 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP202361,020562
JavaScript24546
CSS2080

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity2.31
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.31
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods55
▷ Static methods35.45%
▷ Public methods4581.82%
▷ Protected methods00.00%
▷ Private methods1018.18%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
5 PNG files occupy 0.21MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-772x250.png141.06KB99.39KB▼ 29.54%
assets/icon-128x128.png15.54KB10.29KB▼ 33.75%
admin/partials/assets/default/img/logo.png5.89KB2.88KB▼ 51.06%
assets/icon-256x256.png50.77KB36.59KB▼ 27.92%
assets/default/img/logo.png5.89KB2.88KB▼ 51.06%