10% custom-event-tickets

Code Review | Easy Custom Event Tickets

WordPress plugin Easy Custom Event Tickets scored10%from 54 tests.

About plugin

  • Plugin page: custom-event-tickets
  • Plugin version: 2.0.9
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.14-6.3.1
  • WordPress version: 6.3.1
  • First release: Mar 3, 2021
  • Latest release: Sep 23, 2023
  • Number of updates: 90
  • Update frequency: every 10.4 days
  • Top authors: rock4temps (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,957 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/custom-event-tickets/easy-custom-event-tickets.php+357
    Trying to access array offset on value of type bool

Server metrics [RAM: ▲0.29MB] [CPU: ▼0.88ms] Passed 4 tests

This is a short check of server-side resources used by Easy Custom Event Tickets
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.2842.94 ▼1.22
Dashboard /wp-admin3.59 ▲0.2948.14 ▲1.39
Posts /wp-admin/edit.php3.71 ▲0.3550.72 ▲4.78
Add New Post /wp-admin/post-new.php6.19 ▲0.3193.29 ▼5.62
Media Library /wp-admin/upload.php3.52 ▲0.2936.14 ▲1.94

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

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

Browser metrics Passed 4 tests

Easy Custom Event Tickets: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,862 ▲12713.37 ▼0.981.97 ▼0.1340.03 ▼8.29
Dashboard /wp-admin2,239 ▲515.06 ▼0.82113.24 ▲3.2939.93 ▼3.23
Posts /wp-admin/edit.php2,127 ▲382.30 ▲0.3242.69 ▲5.8734.81 ▲0.47
Add New Post /wp-admin/post-new.php1,540 ▲623.30 ▲0.12729.01 ▲39.0840.81 ▼11.47
Media Library /wp-admin/upload.php1,418 ▲304.36 ▲0.0997.53 ▼19.5540.35 ▼6.96

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • ecet_multiple_setting
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% 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
  • 12× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Notice
      Trying to get property 'excerpt' of non-object in wp-content/plugins/custom-event-tickets/tribe-customizations-tooltip/v2/month/calendar-body/day/calendar-events/calendar-event/tooltip/description.php on line 19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/custom-event-tickets/tribe-customizations-tooltip/v2/month/calendar-body/day/calendar-events/calendar-event/tooltip/title.php:22
    • > PHP Notice
      Undefined variable: placeholder_url in wp-content/plugins/custom-event-tickets/tribe-customizations-photo/v2/photo/event/featured-image.php on line 23
    • > PHP Notice
      Undefined variable: event in wp-content/plugins/custom-event-tickets/tribe-customizations-tooltip/v2/month/calendar-body/day/calendar-events/calendar-event/tooltip/description.php on line 19
    • > PHP Notice
      Undefined variable: event in wp-content/plugins/custom-event-tickets/tribe-customizations-photo/v2/photo/event/featured-image.php on line 30
    • > PHP Fatal error
      Uncaught Error: Call to a member function format_i18n() on null in wp-content/plugins/custom-event-tickets/tribe-customizations-photo/v2/photo/event/featured-image.php:32
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_class() in wp-content/plugins/custom-event-tickets/tribe-customizations-photo/v2/photo/event.php:20
    • > PHP Notice
      Undefined variable: event in wp-content/plugins/custom-event-tickets/tribe-customizations-photo/v2/photo/event/featured-image.php on line 23
    • > PHP Notice
      Trying to get property 'exists' of non-object in wp-content/plugins/custom-event-tickets/tribe-customizations-photo/v2/photo/event/featured-image.php on line 23
    • > PHP Notice
      Trying to get property 'start_display' of non-object in wp-content/plugins/custom-event-tickets/tribe-customizations-photo/v2/photo/event/featured-image.php on line 30

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: event tickets, event management, rsvp, the events calendar

custom-event-tickets/easy-custom-event-tickets.php 92% from 13 tests

The main PHP script in "Easy Custom Event Tickets" version 2.0.9 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("custom-event-tickets.php" instead of "easy-custom-event-tickets.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected2,305 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP79401,1301,584
PO File2176190382
CSS2140154269
JavaScript3456870

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions70
▷ Named functions6998.57%
▷ Anonymous functions11.43%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin