72% event-registration-calendar-by-vcita

Code Review | Event Registration Calendar By vcita

WordPress plugin Event Registration Calendar By vcita scored72%from 54 tests.

About plugin

  • Plugin page: event-registratio...
  • Plugin version: 1.4.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3.1
  • WordPress version: 6.3.1
  • First release: Feb 24, 2016
  • Latest release: Sep 12, 2023
  • Number of updates: 58
  • Update frequency: every 47.6 days
  • Top authors: vCita (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /23,780 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.21MB] [CPU: ▼6.75ms] Passed 4 tests

An overview of server-side resources used by Event Registration Calendar By vcita
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2042.89 ▼3.81
Dashboard /wp-admin3.57 ▲0.2250.85 ▼15.41
Posts /wp-admin/edit.php3.63 ▲0.2654.03 ▲2.87
Add New Post /wp-admin/post-new.php6.11 ▲0.2286.84 ▼10.66
Media Library /wp-admin/upload.php3.43 ▲0.2044.65 ▲8.50
/wp-admin/admin.php?page=live-site-reset-plugin3.3842.37
/wp-admin/admin.php?page=live-site-parse-vcita-callback3.3832.79

Server storage [IO: ▲1.77MB] [DB: ▲0.01MB] Passed 3 tests

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 46 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options
livesite_plugin_settings
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Event Registration Calendar By vcita: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲4114.41 ▲0.171.99 ▲0.2438.72 ▼6.16
Dashboard /wp-admin2,191 ▲115.54 ▼0.0189.70 ▼5.3869.80 ▲27.01
Posts /wp-admin/edit.php2,114 ▲172.00 ▲0.0136.98 ▲1.6838.56 ▲4.12
Add New Post /wp-admin/post-new.php1,690 ▲13622.51 ▼0.61731.86 ▲88.1451.41 ▼3.85
Media Library /wp-admin/upload.php1,411 ▲114.21 ▼0.00114.23 ▲17.3146.28 ▲5.23
/wp-admin/admin.php?page=live-site-reset-plugin1,6552.4528.77115.53
/wp-admin/admin.php?page=live-site-parse-vcita-callback1,9143.1836.8376.88

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=live-site-parse-vcita-callback
    • > Notice in wp-content/plugins/event-registration-calendar-by-vcita/system/parse_vcita_callback.php+57
    Undefined index: success
    • > GET request to /wp-admin/admin.php?page=live-site-parse-vcita-callback
    • > Notice in wp-content/plugins/event-registration-calendar-by-vcita/system/parse_vcita_callback.php+58
    Undefined index: uid
    • > GET request to /wp-admin/admin.php?page=live-site-parse-vcita-callback
    • > Notice in wp-content/plugins/event-registration-calendar-by-vcita/system/parse_vcita_callback.php+59
    Undefined index: first_name
    • > GET request to /wp-admin/admin.php?page=live-site-parse-vcita-callback
    • > Notice in wp-content/plugins/event-registration-calendar-by-vcita/system/parse_vcita_callback.php+60
    Undefined index: last_name
    • > GET request to /wp-admin/admin.php?page=live-site-parse-vcita-callback
    • > Notice in wp-content/plugins/event-registration-calendar-by-vcita/system/parse_vcita_callback.php+61
    Undefined index: title
    • > GET request to /wp-admin/admin.php?page=live-site-parse-vcita-callback
    • > Notice in wp-content/plugins/event-registration-calendar-by-vcita/system/parse_vcita_callback.php+62
    Undefined index: confirmation_token
    • > GET request to /wp-admin/admin.php?page=live-site-parse-vcita-callback
    • > Notice in wp-content/plugins/event-registration-calendar-by-vcita/system/parse_vcita_callback.php+63
    Undefined index: confirmed
    • > GET request to /wp-admin/admin.php?page=live-site-parse-vcita-callback
    • > Notice in wp-content/plugins/event-registration-calendar-by-vcita/system/parse_vcita_callback.php+64
    Undefined index: engage_delay
    • > GET request to /wp-admin/admin.php?page=live-site-parse-vcita-callback
    • > Notice in wp-content/plugins/event-registration-calendar-by-vcita/system/parse_vcita_callback.php+65
    Undefined index: implementation_key
    • > GET request to /wp-admin/admin.php?page=live-site-parse-vcita-callback
    • > Notice in wp-content/plugins/event-registration-calendar-by-vcita/system/parse_vcita_callback.php+66
    Undefined index: email
    • > GET request to /wp-admin/admin.php?page=live-site-parse-vcita-callback
    • > Notice in wp-content/plugins/event-registration-calendar-by-vcita/plugin_init.php+118
    Undefined index: plugin_initially_activated

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
  • 12× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'ls_helpers' not found in wp-content/plugins/event-registration-calendar-by-vcita/core/shortcodes.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'ls_helpers' not found in wp-content/plugins/event-registration-calendar-by-vcita/system/settings_page.php:37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ls_get_module_data() in wp-content/plugins/event-registration-calendar-by-vcita/modules/events.php:52
    • > PHP Fatal error
      Uncaught Error: Class 'ls_helpers' not found in wp-content/plugins/event-registration-calendar-by-vcita/system/reset_plugin.php:29
    • > PHP Fatal error
      Uncaught Error: Class 'ls_helpers' not found in wp-content/plugins/event-registration-calendar-by-vcita/core/sdk.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/event-registration-calendar-by-vcita/Livesite.php:34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ls_get_module_data() in wp-content/plugins/event-registration-calendar-by-vcita/modules/form_builder.php:48
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/event-registration-calendar-by-vcita/core/ajax_api.php:42
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ls_get_module_data() in wp-content/plugins/event-registration-calendar-by-vcita/modules/payments.php:48
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ls_get_module_data() in wp-content/plugins/event-registration-calendar-by-vcita/modules/livesite_widget.php:48

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=live-site-parse-vcita-callback
    • > Network (severe)
    chrome-error://chromewebdata/ - Failed to load resource: the server responded with a status of 403 ()
    • > GET request to /wp-admin/admin.php?page=live-site-parse-vcita-callback
    • > Other (severe) in unknown
    chrome-error://chromewebdata/ - The Cross-Origin-Opener-Policy header has been ignored, because the URL's origin was untrustworthy. It was defined either in the final response or a redirect. Please deliver the response using the HTTPS protocol. You can also use the 'localhost' origin instead. See https://www.w3.org/TR/powerful-features/#potentially-trustworthy-origin and https://html.spec.whatwg.org/#the-cross-origin-opener-policy-header.
    • > GET request to /wp-admin/admin.php?page=live-site-parse-vcita-callback
    • > Other (severe) in unknown
    chrome-error://chromewebdata/ - Refused to display 'http://www.vcita.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Screenshots: Please add images for these screenshots: #1 (**Booking calendar - on web and mobile**), #2 (**Automated confirmations and reminders**), #3 (**Customize your client portal page**), #4 (**Capture Leads from our widget**), #5 (**Collect Online Payments**)
The official readme.txt is a good inspiration

event-registration-calendar-by-vcita/Livesite.php 92% from 13 tests

"Event Registration Calendar By vcita" version 1.4.0's primary PHP file adds more information about the plugin and serves as the entry point for 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 ("event-registration-calendar-by-vcita.php" instead of "Livesite.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected3,348 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
PHP201,0541,0782,292
CSS49823777
JavaScript69738188
JSON10072
SVG10019

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity8.21
▷ Minimum class complexity1.00
▷ Maximum class complexity28.00
Average method complexity1.83
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods123
▷ Static methods00.00%
▷ Public methods123100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions21
▷ Named functions21100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 0.34MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/vcita-logo.png1.03KB1.32KB0.00%
screenshot-2.png67.03KB71.18KB0.00%
images/header-main.png42.22KB15.83KB▼ 62.50%
images/ls-payment-icons.png4.15KB2.38KB▼ 42.57%
images/vcita-icon.png0.50KB0.46KB▼ 7.95%