72% event-tickets

Code Review | Event Tickets and Registration

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

About plugin

  • Plugin page: event-tickets
  • Plugin version: 5.7.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.2-6.4.1
  • WordPress version: 6.3.1
  • First release: Dec 2, 2015
  • Latest release: Nov 16, 2023
  • Number of updates: 583
  • Update frequency: every 5.0 days
  • Top authors: bordoni (35.68%)ModernTribe (18.01%)barry.hughes (13.89%)zbtirrell (10.12%)borkweb (9.26%)

Code review

54 tests

User reviews

154 reviews

Install metrics

70,000+ active /3,160,999 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲12.12MB] [CPU: ▲98.91ms] 50% from 4 tests

A check of server-side resources used by Event Tickets and Registration
Please have a look at the following items
  • RAM: Total memory usage must be kept under 10MB (currently 15.57MB on /wp-admin/admin.php?page=tec-tickets-troubleshooting)
  • Extra RAM: Extra memory usage must be kept under 5MB (currently 12.12MB on /wp-admin/admin.php?page=tec-tickets-troubleshooting)
PageMemory (MB)CPU Time (ms)
Home /15.14 ▲11.68126.54 ▲84.96
Dashboard /wp-admin15.59 ▲12.28159.50 ▲108.30
Posts /wp-admin/edit.php15.64 ▲12.28155.40 ▲107.45
Add New Post /wp-admin/post-new.php19.09 ▲13.20199.46 ▲103.31
Media Library /wp-admin/upload.php15.46 ▲12.23129.81 ▲99.91
Troubleshooting /wp-admin/admin.php?page=tec-troubleshooting15.57150.09
Home /wp-admin/admin.php?page=tec-tickets15.51120.27
Help /wp-admin/admin.php?page=tec-tickets-help15.52139.03
Settings /wp-admin/admin.php?page=tec-tickets-settings16.02138.74
Attendee list /wp-admin/admin.php?page=tickets-attendees16.06132.65
Event Add-Ons /wp-admin/admin.php?page=tribe-app-shop15.51126.79
Troubleshooting /wp-admin/admin.php?page=tec-tickets-troubleshooting15.57149.29

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 2,663 new files
Database: no new tables, 12 new options
New WordPress options
stellarwp_telemetry_last_send
tribe_events_calendar_options
tribe_last_updated_option
can_compress_scripts
stellarwp_telemetry
widget_recent-comments
db_upgraded
tec_timed_tribe_supports_async_process
widget_recent-posts
widget_theysaidso_widget
...

Browser metrics Passed 4 tests

Checking browser requirements for Event Tickets and Registration
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /1,822 ▼92510.59 ▼3.601.65 ▼0.1238.47 ▼5.48
Dashboard /wp-admin2,253 ▲855.59 ▼0.01130.01 ▲33.0062.05 ▲20.73
Posts /wp-admin/edit.php2,176 ▲732.34 ▲0.3841.64 ▲0.9734.54 ▼4.12
Add New Post /wp-admin/post-new.php1,762 ▲23624.63 ▲1.29925.73 ▲311.3129.39 ▼21.86
Media Library /wp-admin/upload.php1,475 ▲754.27 ▲0.09107.32 ▼0.8842.45 ▼1.26
Troubleshooting /wp-admin/admin.php?page=tec-troubleshooting1,5092.0637.3263.31
Home /wp-admin/admin.php?page=tec-tickets1,0641.9131.0733.17
Help /wp-admin/admin.php?page=tec-tickets-help2,1862.0636.8891.87
Settings /wp-admin/admin.php?page=tec-tickets-settings1,2702.6739.8067.87
Attendee list /wp-admin/admin.php?page=tickets-attendees1,2572.3035.9530.76
Event Add-Ons /wp-admin/admin.php?page=tribe-app-shop2,9982.0433.25117.74
Troubleshooting /wp-admin/admin.php?page=tec-tickets-troubleshooting1,5542.1336.4758.32

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
  • The uninstall procedure has failed, leaving 12 options in the database
    • stellarwp_telemetry_event-tickets_show_optin
    • widget_recent-comments
    • stellarwp_telemetry
    • tec_timed_tribe_supports_async_process
    • db_upgraded
    • widget_recent-posts
    • tribe_last_updated_option
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • stellarwp_telemetry_last_send
    • ...

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
    • > GET request to /wp-admin/admin.php?page=tickets-attendees
    • > Warning in wp-content/plugins/event-tickets/src/Tribe/Status/Manager.php+422
    array_key_exists(): The first argument should be either a string or an integer

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 58× GET requests to PHP files return non-empty strings (only 10 are shown):
    • > /wp-content/plugins/event-tickets/src/admin-views/editor/metabox.php
    • > /wp-content/plugins/event-tickets/common/src/Tribe/Settings_Tab.php
    • > /wp-content/plugins/event-tickets/common/src/Tribe/Templates.php
    • > /wp-content/plugins/event-tickets/src/admin-views/commerce/reports/orders/search-options.php
    • > /wp-content/plugins/event-tickets/src/views/emails/template-parts/header/head/meta.php
    • > /wp-content/plugins/event-tickets/src/views/tickets/orders-rsvp.php
    • > /wp-content/plugins/event-tickets/src/template-tags/tickets.php
    • > /wp-content/plugins/event-tickets/common/src/Tribe/JSON_LD/Abstract.php
    • > /wp-content/plugins/event-tickets/src/views/v2/tickets/commerce/fields/tribe-commerce.php
    • > /wp-content/plugins/event-tickets/common/src/Tribe/Support.php
  • 1148× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'TEC\\Common\\Contracts\\Service_Provider' not found in wp-content/plugins/event-tickets/src/Tickets/Site_Health/Provider.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'Tribe__Tickets__Tickets' not found in wp-content/plugins/event-tickets/src/Tribe/RSVP.php:3
    • > PHP Notice
      Undefined variable: ticket in wp-content/plugins/event-tickets/src/views/v2/tickets/item/content/description.php on line 49
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_x() in wp-content/plugins/event-tickets/src/views/v2/tickets/footer/quantity.php:41
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/event-tickets/src/views/v2/commerce/checkout/header/title.php:31
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/event-tickets/src/admin-views/settings/tickets-commerce/paypal/connect/inactive.php:26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function tribe() in wp-content/plugins/event-tickets/src/admin-views/editor/panel/list.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/event-tickets/src/admin-views/commerce/metabox/sku.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function the_permalink() in wp-content/plugins/event-tickets/src/views/registration/summary/title.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Tribe__Tickets__Abstract_Attendance_Totals' not found in wp-content/plugins/event-tickets/src/Tickets/Commerce/Reports/Attendance_Totals.php:21

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 an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: event registration, ticket sales, tickets, registration, attendee management...

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

The entry point to "Event Tickets and Registration" version 5.7.0 is a PHP file that has certain tags in its header comment area
95 characters long description:
Event Tickets allows you to sell basic tickets and collect RSVPs from any post, page, or event.

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
Good job! No executable or dangerous file extensions detected199,265 lines of code in 2,209 files:
LanguageFilesBlank linesComment linesLines of code
PHP1,58328,87995,621107,044
JavaScript40616,98222,99876,317
CSS923,5294,35814,432
JSON500785
Markdown61520434
SVG11701253

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity12.24
▷ Minimum class complexity1.00
▷ Maximum class complexity347.00
Average method complexity2.56
▷ Minimum method complexity1.00
▷ Maximum method complexity68.00
Code structure
Namespaces138
Interfaces71
Traits34
Classes825
▷ Abstract classes647.76%
▷ Concrete classes76192.24%
▷ Final classes20.26%
Methods6,936
▷ Static methods76010.96%
▷ Public methods5,88884.89%
▷ Protected methods82711.92%
▷ Private methods2213.19%
Functions369
▷ Named functions20054.20%
▷ Anonymous functions16945.80%
Constants323
▷ Global constants5015.48%
▷ Class constants27384.52%
▷ Public constants26396.34%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
61 PNG files occupy 1.37MB with 0.30MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
common/src/resources/images/shop/stellar-ithemes-logo.png3.55KB1.58KB▼ 55.44%
common/vendor/jquery/images/ui-bg_glass_65_ffffff_1x400.png0.10KB0.10KB▼ 5.71%
common/src/resources/images/icons/faq.png1.02KB0.57KB▼ 44.65%
common/vendor/jquery/images/ui-icons_454545_256x240.png4.27KB4.11KB▼ 3.78%
common/vendor/tribe-select2/select2.png0.60KB0.99KB0.00%