62% wp-event-solution

Code Review | Event Manager, Event Calendar, Event Tickets for WooCommerce - Eventin

WordPress plugin Event Manager, Event Calendar, Event Tickets for WooCommerce - Eventin scored62%from 54 tests.

About plugin

  • Plugin page: wp-event-solution
  • Plugin version: 3.3.44
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.3.2
  • WordPress version: 6.3.1
  • First release: Apr 28, 2020
  • Latest release: Nov 28, 2023
  • Number of updates: 152
  • Update frequency: every 8.7 days
  • Top authors: themewinter (100%)

Code review

54 tests

User reviews

54 reviews

Install metrics

10,000+ active /264,281 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲4.29MB] [CPU: ▲36.07ms] Passed 4 tests

An overview of server-side resources used by Event Manager, Event Calendar, Event Tickets for WooCommerce - Eventin
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /7.89 ▲4.4280.02 ▲38.65
Dashboard /wp-admin7.59 ▲4.2978.68 ▲30.27
Posts /wp-admin/edit.php7.64 ▲4.2880.71 ▲34.88
Add New Post /wp-admin/post-new.php10.48 ▲4.60136.25 ▲40.49
Media Library /wp-admin/upload.php7.40 ▲4.1779.16 ▲48.52
Events /wp-admin/edit.php?post_type=etn7.6783.14
Get Help /wp-admin/admin.php?page=eventin_get_help7.4775.95
Wizard /wp-admin/admin.php?page=etn-wizard7.4272.51
Settings /wp-admin/admin.php?page=etn-event-settings9.0084.77
Shortcodes /wp-admin/admin.php?page=etn-event-shortcode7.6077.00
Add-ons /wp-admin/admin.php?page=etn_addons7.7073.66
Schedules /wp-admin/edit.php?post_type=etn-schedule7.6780.69
/wp-admin/admin.php?page=view_recurrences7.5065.57
Speakers /wp-admin/edit.php?post_type=etn-speaker7.6771.78

Server storage [IO: ▲7.26MB] [DB: ▲0.02MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 306 new files
Database: 2 new tables, 19 new options
New tables
wp_etn_events
wp_etn_trans_meta
New WordPress options
purchase_history_status_column_migration_done
price_to_prices_array_migration_done
etn_event_price_migration_done
theysaidso_admin_options
purchase_history_table_stripe_support
etn_attendee_unique_id_migration_done
can_compress_scripts
purchase_history_table_structure_migration_done
eventin__banner_data
eventin__banner_last_check
...

Browser metrics Passed 4 tests

Checking browser requirements for Event Manager, Event Calendar, Event Tickets for WooCommerce - Eventin
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,994 ▲23213.45 ▼1.2610.84 ▲9.2142.49 ▼3.42
Dashboard /wp-admin2,284 ▲1075.64 ▲0.1184.88 ▼16.7837.33 ▼7.45
Posts /wp-admin/edit.php2,185 ▲852.01 ▲0.0540.70 ▼0.7237.48 ▲4.41
Add New Post /wp-admin/post-new.php1,621 ▲9522.97 ▼0.12748.39 ▲70.3639.64 ▼14.85
Media Library /wp-admin/upload.php1,486 ▲924.26 ▲0.09114.22 ▲17.5948.35 ▲8.42
Events /wp-admin/edit.php?post_type=etn1,77611.50230.45101.13
Get Help /wp-admin/admin.php?page=eventin_get_help1,5358.7095.99167.68
Wizard /wp-admin/admin.php?page=etn-wizard1,14613.97211.4351.20
Settings /wp-admin/admin.php?page=etn-event-settings5,3259.62198.50160.58
Shortcodes /wp-admin/admin.php?page=etn-event-shortcode2,49711.27109.04143.30
Add-ons /wp-admin/admin.php?page=etn_addons1,95111.15103.2459.59
Schedules /wp-admin/edit.php?post_type=etn-schedule1,64311.54109.92159.18
/wp-admin/admin.php?page=view_recurrences1,0281.6728.6127.17
Speakers /wp-admin/edit.php?post_type=etn-speaker1,63911.43109.00158.67

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 2 tables in the database
    • wp_etn_trans_meta
    • wp_etn_events
  • Zombie WordPress options detected upon uninstall: 19 options
    • etn_event_price_to_prices_array_migration_done
    • widget_recent-posts
    • attendee_ticket_type_migration_done
    • theysaidso_admin_options
    • etn_event_price_migration_done
    • db_upgraded
    • price_to_prices_array_migration_done
    • can_compress_scripts
    • etn_speaker_category_children
    • widget_recent-comments
    • ...

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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
The following issues need your attention
  • 4× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wp-event-solution/widgets/events-tab/style/tab-1.php
    • > /wp-content/plugins/wp-event-solution/core/event/views/event-archive-page.php
    • > /wp-content/plugins/wp-event-solution/core/speaker/views/single/speaker-archive-page.php
    • > /wp-content/plugins/wp-event-solution/widgets/upcoming-event-tab/style/tab-1.php
  • 51× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/wp-event-solution/core/settings/views/country-info.php:8338
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/wp-event-solution/templates/event/purchase-form/event-ticket.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_redirect() in wp-content/plugins/wp-event-solution/core/attendee/views/registration/attendee-details-form.php:276
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_is_block_theme() in wp-content/plugins/wp-event-solution/core/event/views/event-single-page.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/wp-event-solution/core/zoom-meeting/template/shortcode/zoom_meeting.php:128
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_is_block_theme() in wp-content/plugins/wp-event-solution/core/speaker/views/single/speaker-single-page.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/wp-event-solution/core/settings/views/advance/domain-registration.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/wp-event-solution/templates/event/purchase-form/recurring-event-ticket.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/wp-event-solution/templates/event/purchase-form/recurring-event-variable-ticket.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/wp-event-solution/core/settings/views/parts/general-settings-view.php:8

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=etn-wizard
    • > Network (severe)
    wp-json/eventin/v1/event/settings - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=etn-wizard
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=etn-wizard 0:0 Uncaught SyntaxError: Unexpected token '

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
10 plugin tags: multivendor, tickets, booking, event, zoom...

wp-event-solution/eventin.php 85% from 13 tests

Analyzing the main PHP file in "Event Manager, Event Calendar, Event Tickets for WooCommerce - Eventin" version 3.3.44
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-event-solution.php" instead of "eventin.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin62,692 lines of code in 271 files:
LanguageFilesBlank linesComment linesLines of code
PHP2226,9165,08343,893
Sass51,313759,383
CSS121,208827,114
JavaScript214297952,119
SVG901154
XML15528
JSON1001

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity34.77
▷ Minimum class complexity1.00
▷ Maximum class complexity449.00
Average method complexity4.73
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces35
Interfaces1
Traits1
Classes109
▷ Abstract classes98.26%
▷ Concrete classes10091.74%
▷ Final classes11.00%
Methods1,010
▷ Static methods17417.23%
▷ Public methods89288.32%
▷ Protected methods828.12%
▷ Private methods363.56%
Functions88
▷ Named functions8293.18%
▷ Anonymous functions66.82%
Constants24
▷ Global constants2187.50%
▷ Class constants312.50%
▷ Public constants3100.00%

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
23 PNG files occupy 0.62MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
utils/pro-awareness/assets/welcome_image.png19.76KB19.69KB0.36%
utils/pro-awareness/assets/envelope.png4.75KB2.90KB▼ 38.94%
utils/pro-awareness/assets/video.png4.26KB2.67KB▼ 37.38%
assets/images/curve_left.png0.22KB0.21KB▼ 3.52%
assets/images/style/price-big-1.png24.29KB9.11KB▼ 62.50%