77% event-tickets-manager-for-woocommerce

Code Review | Event Tickets Manager for WooCommerce – Events and Bookings Calendar, Registration, Event Check-in Using Emails, Edit Your Ticket Content

WordPress plugin Event Tickets Manager for WooCommerce – Events and Bookings Calendar, Registration, Event Check-in Using Emails, Edit Your Ticket Content scored77%from 54 tests.

About plugin

  • Plugin page: event-tickets-man...
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4.1
  • WordPress version: 6.3.1
  • First release: Apr 30, 2021
  • Latest release: Nov 28, 2023
  • Number of updates: 32
  • Update frequency: every 29.5 days
  • Top authors: wpswings (68.75%)makewebbetter (34.38%)

Code review

54 tests

User reviews

15 reviews

Install metrics

1,000+ active /24,677 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

Analyzing server-side resources used by Event Tickets Manager for WooCommerce – Events and Bookings Calendar, Registration, Event Check-in Using Emails, Edit Your Ticket Content
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.24 ▼3.12
Dashboard /wp-admin3.31 ▲0.0044.55 ▼4.44
Posts /wp-admin/edit.php3.36 ▲0.0045.38 ▼5.45
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.57 ▼5.03
Media Library /wp-admin/upload.php3.23 ▲0.0031.71 ▼0.75

Server storage [IO: ▲29.67MB] [DB: ▲0.00MB] 67% from 3 tests

Input-output and database impact of this plugin
Please fix the following
  • Filesystem usage must be lower than 25MB (currently using 29.67MB)
Filesystem: 652 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Event Tickets Manager for WooCommerce – Events and Bookings Calendar, Registration, Event Check-in Using Emails, Edit Your Ticket Content
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.37 ▼0.341.63 ▼0.1436.03 ▼8.51
Dashboard /wp-admin2,198 ▲235.61 ▼0.1097.63 ▼19.1942.55 ▼3.05
Posts /wp-admin/edit.php2,100 ▼01.95 ▼0.0738.33 ▲1.8637.40 ▲2.96
Add New Post /wp-admin/post-new.php1,526 ▼023.70 ▲0.71655.75 ▲36.8752.47 ▼6.22
Media Library /wp-admin/upload.php1,400 ▼04.13 ▼0.0593.49 ▼6.6642.32 ▲0.18

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
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not 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
The following issues need your attention
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/event-tickets-manager-for-woocommerce/package/lib/dompdf/vendor/sabberworm/php-css-parser/tests/quickdump.php
    • > /wp-content/plugins/event-tickets-manager-for-woocommerce/public/partials/event-tickets-manager-for-woocommerce-public-display.php
  • 190× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Svg\\Surface\\SurfaceInterface' not found in wp-content/plugins/event-tickets-manager-for-woocommerce/package/lib/dompdf/vendor/phenx/php-svg-lib/src/Svg/Surface/SurfaceGmagick.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'FontLib\\Header' not found in wp-content/plugins/event-tickets-manager-for-woocommerce/package/lib/dompdf/vendor/phenx/php-font-lib/src/FontLib/EOT/Header.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/event-tickets-manager-for-woocommerce/onboarding/templates/event-tickets-manager-for-woocommerce-onboarding-template.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Sabberworm\\CSS\\Value\\ValueList' not found in wp-content/plugins/event-tickets-manager-for-woocommerce/package/lib/dompdf/vendor/sabberworm/php-css-parser/lib/Sabberworm/CSS/Value/RuleValueList.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'FontLib\\TrueType\\File' not found in wp-content/plugins/event-tickets-manager-for-woocommerce/package/lib/dompdf/vendor/phenx/php-font-lib/src/FontLib/WOFF/File.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'FontLib\\BinaryStream' not found in wp-content/plugins/event-tickets-manager-for-woocommerce/package/lib/dompdf/vendor/phenx/php-font-lib/src/FontLib/Table/Table.php:19
    • > PHP Fatal error
      Uncaught Error: Interface 'Sabberworm\\CSS\\Renderable' not found in wp-content/plugins/event-tickets-manager-for-woocommerce/package/lib/dompdf/vendor/sabberworm/php-css-parser/lib/Sabberworm/CSS/Rule/Rule.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Dompdf\\Renderer\\AbstractRenderer' not found in wp-content/plugins/event-tickets-manager-for-woocommerce/package/lib/dompdf/vendor/dompdf/dompdf/src/Renderer/ListBullet.php:22
    • > PHP Fatal error
      Uncaught Error: Interface 'Sabberworm\\CSS\\Renderable' not found in wp-content/plugins/event-tickets-manager-for-woocommerce/package/lib/dompdf/vendor/sabberworm/php-css-parser/lib/Sabberworm/CSS/CSSList/CSSList.php:26
    • > PHP Fatal error
      Uncaught Error: Interface 'Dompdf\\Canvas' not found in wp-content/plugins/event-tickets-manager-for-woocommerce/package/lib/dompdf/vendor/dompdf/dompdf/src/Adapter/PDFLib.php:34

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Requires php: Invalid version format
The official readme.txt might help

event-tickets-manager-for-woocommerce/event-tickets-manager-for-woocommerce.php 92% from 13 tests

Analyzing the main PHP file in "Event Tickets Manager for WooCommerce – Events and Bookings Calendar, Registration, Event Check-in Using Emails, Edit Your Ticket Content" version 1.2.2
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 382 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin112,589 lines of code in 362 files:
LanguageFilesBlank linesComment linesLines of code
PHP2529,68817,77967,993
SVG180035,224
CSS556841493,643
JavaScript135203543,495
Markdown62650947
PO File1284364631
JSON600378
XML642192
YAML312264
HTML10017
Sass1205

PHP code 50% from 2 tests

An overview of cyclomatic complexity and code structure
These items need your attention
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 652)
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity44.72
▷ Minimum class complexity1.00
▷ Maximum class complexity797.00
Average method complexity4.74
▷ Minimum method complexity1.00
▷ Maximum method complexity652.00
Code structure
Namespaces35
Interfaces6
Traits0
Classes275
▷ Abstract classes165.82%
▷ Concrete classes25994.18%
▷ Final classes00.00%
Methods3,391
▷ Static methods1795.28%
▷ Public methods2,90585.67%
▷ Protected methods35610.50%
▷ Private methods1303.83%
Functions48
▷ Named functions2245.83%
▷ Anonymous functions2654.17%
Constants277
▷ Global constants51.81%
▷ Class constants27298.19%
▷ Public constants272100.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
47 PNG files occupy 2.23MB with 0.53MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/src/image/qr.png2.92KB2.74KB▼ 6.31%
admin/resources/icons/multiple-order-bumps.png4.12KB3.94KB▼ 4.39%
admin/resources/icons/warning.png3.08KB1.93KB▼ 37.28%
admin/src/images/img12.png13.41KB5.47KB▼ 59.19%
admin/src/images/email-icon.png2.29KB2.03KB▼ 11.48%