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)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 15.14 ▲11.68 | 126.54 ▲84.96 |
Dashboard /wp-admin | 15.59 ▲12.28 | 159.50 ▲108.30 |
Posts /wp-admin/edit.php | 15.64 ▲12.28 | 155.40 ▲107.45 |
Add New Post /wp-admin/post-new.php | 19.09 ▲13.20 | 199.46 ▲103.31 |
Media Library /wp-admin/upload.php | 15.46 ▲12.23 | 129.81 ▲99.91 |
Troubleshooting /wp-admin/admin.php?page=tec-troubleshooting | 15.57 | 150.09 |
Home /wp-admin/admin.php?page=tec-tickets | 15.51 | 120.27 |
Help /wp-admin/admin.php?page=tec-tickets-help | 15.52 | 139.03 |
Settings /wp-admin/admin.php?page=tec-tickets-settings | 16.02 | 138.74 |
Attendee list /wp-admin/admin.php?page=tickets-attendees | 16.06 | 132.65 |
Event Add-Ons /wp-admin/admin.php?page=tribe-app-shop | 15.51 | 126.79 |
Troubleshooting /wp-admin/admin.php?page=tec-tickets-troubleshooting | 15.57 | 149.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 1,822 ▼925 | 10.59 ▼3.60 | 1.65 ▼0.12 | 38.47 ▼5.48 |
Dashboard /wp-admin | 2,253 ▲85 | 5.59 ▼0.01 | 130.01 ▲33.00 | 62.05 ▲20.73 |
Posts /wp-admin/edit.php | 2,176 ▲73 | 2.34 ▲0.38 | 41.64 ▲0.97 | 34.54 ▼4.12 |
Add New Post /wp-admin/post-new.php | 1,762 ▲236 | 24.63 ▲1.29 | 925.73 ▲311.31 | 29.39 ▼21.86 |
Media Library /wp-admin/upload.php | 1,475 ▲75 | 4.27 ▲0.09 | 107.32 ▼0.88 | 42.45 ▼1.26 |
Troubleshooting /wp-admin/admin.php?page=tec-troubleshooting | 1,509 | 2.06 | 37.32 | 63.31 |
Home /wp-admin/admin.php?page=tec-tickets | 1,064 | 1.91 | 31.07 | 33.17 |
Help /wp-admin/admin.php?page=tec-tickets-help | 2,186 | 2.06 | 36.88 | 91.87 |
Settings /wp-admin/admin.php?page=tec-tickets-settings | 1,270 | 2.67 | 39.80 | 67.87 |
Attendee list /wp-admin/admin.php?page=tickets-attendees | 1,257 | 2.30 | 35.95 | 30.76 |
Event Add-Ons /wp-admin/admin.php?page=tribe-app-shop | 2,998 | 2.04 | 33.25 | 117.74 |
Troubleshooting /wp-admin/admin.php?page=tec-tickets-troubleshooting | 1,554 | 2.13 | 36.47 | 58.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,583 | 28,879 | 95,621 | 107,044 |
JavaScript | 406 | 16,982 | 22,998 | 76,317 |
CSS | 92 | 3,529 | 4,358 | 14,432 |
JSON | 5 | 0 | 0 | 785 |
Markdown | 6 | 152 | 0 | 434 |
SVG | 117 | 0 | 1 | 253 |
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 code | 0.33 |
Average class complexity | 12.24 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 347.00 |
Average method complexity | 2.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 68.00 |
Code structure | ||
---|---|---|
Namespaces | 138 | |
Interfaces | 71 | |
Traits | 34 | |
Classes | 825 | |
▷ Abstract classes | 64 | 7.76% |
▷ Concrete classes | 761 | 92.24% |
▷ Final classes | 2 | 0.26% |
Methods | 6,936 | |
▷ Static methods | 760 | 10.96% |
▷ Public methods | 5,888 | 84.89% |
▷ Protected methods | 827 | 11.92% |
▷ Private methods | 221 | 3.19% |
Functions | 369 | |
▷ Named functions | 200 | 54.20% |
▷ Anonymous functions | 169 | 45.80% |
Constants | 323 | |
▷ Global constants | 50 | 15.48% |
▷ Class constants | 273 | 84.52% |
▷ Public constants | 263 | 96.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
common/src/resources/images/shop/stellar-ithemes-logo.png | 3.55KB | 1.58KB | ▼ 55.44% |
common/vendor/jquery/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
common/src/resources/images/icons/faq.png | 1.02KB | 0.57KB | ▼ 44.65% |
common/vendor/jquery/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
common/vendor/tribe-select2/select2.png | 0.60KB | 0.99KB | 0.00% |