79% wp-event-tickets

Code Review | Event Registration and Tickets

WordPress plugin Event Registration and Tickets scored79%from 54 tests.

About plugin

  • Plugin page: wp-event-tickets
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-5.7.1
  • WordPress version: 6.3.1
  • First release: Feb 11, 2021
  • Latest release: May 12, 2021
  • Number of updates: 3
  • Update frequency: every 30.7 days
  • Top authors: wpeventpartners (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /2,240 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.61ms] Passed 4 tests

A check of server-side resources used by Event Registration and Tickets
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0237.42 ▼13.90
Dashboard /wp-admin3.32 ▲0.0251.10 ▲1.51
Posts /wp-admin/edit.php3.37 ▲0.0248.27 ▲0.05
Add New Post /wp-admin/post-new.php5.92 ▲0.0386.80 ▼14.09
Media Library /wp-admin/upload.php3.24 ▲0.0239.84 ▲1.52

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Event Registration and Tickets: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,908 ▲14713.46 ▼1.087.53 ▲6.0139.23 ▼3.00
Dashboard /wp-admin2,234 ▲545.60 ▼0.0988.86 ▲0.0940.56 ▼5.26
Posts /wp-admin/edit.php2,136 ▲362.00 ▲0.0137.32 ▼2.6437.28 ▼0.24
Add New Post /wp-admin/post-new.php1,552 ▲2523.26 ▲0.16690.00 ▲5.1356.07 ▲3.20
Media Library /wp-admin/upload.php1,436 ▲364.18 ▼0.04108.12 ▼8.0648.11 ▲2.22

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wp-event-tickets/admin/partials/wp-event-tickets-admin-display.php
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-event-tickets/admin/metabox/save-metabox.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/wp-event-tickets/public/partials/wp-event-tickets-public-display.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-event-tickets/admin/metabox/add-metabox.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: events, woocommerce, pricing table, registration, tickets

wp-event-tickets/wp-event-tickets.php Passed 13 tests

This is the main PHP file of "Event Registration and Tickets" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
101 characters long description:
Event Registration and Tickets is easy to use Woocommerce based ticketing for Events and Conferences.

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
No dangerous file extensions were detected414 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP14182529353
CSS2291255
JavaScript24546

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.28
Average class complexity2.71
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity1.43
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods28
▷ Static methods27.14%
▷ Public methods2382.14%
▷ Protected methods00.00%
▷ Private methods517.86%
Functions7
▷ Named functions7100.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
There are no PNG files in this plugin