72% contact-form-with-a-meeting-scheduler-by-vcita

Code Review | Contact Form Builder by vcita

WordPress plugin Contact Form Builder by vcita scored 72% from 54 tests.

About plugin

  • Plugin page: contact-form-with...
  • Plugin version: 4.10.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3.1
  • WordPress version: 6.3.1
  • First release: Oct 5, 2011
  • Latest release: Sep 12, 2023
  • Number of updates: 181
  • Update frequency: every 24.1 days
  • Top authors: vCita (39.78%)eyale-vc (22.65%)warolv (18.23%)erel (9.94%)yoffegil (7.18%)

Code review

54 tests

User reviews

42 reviews

Install metrics

1,000+ active / 363,929 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.24MB] [CPU: ▼1.92ms] Passed 4 tests

A check of server-side resources used by Contact Form Builder by vcita
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2238.24 ▼2.78
Dashboard /wp-admin3.59 ▲0.2946.83 ▼9.91
Posts /wp-admin/edit.php3.64 ▲0.2852.68 ▲4.05
Add New Post /wp-admin/post-new.php6.13 ▲0.2492.81 ▲5.54
Media Library /wp-admin/upload.php3.45 ▲0.2236.12 ▲0.96
/wp-admin/admin.php?page=live-site-reset-plugin3.4035.70
/wp-admin/admin.php?page=live-site-parse-vcita-callback3.3932.45

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 53 new files
Database: no new tables, 7 new options
New WordPress options
livesite_plugin_settings
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Contact Form Builder by vcita
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲5613.29 ▼1.361.65 ▼0.2943.68 ▼3.75
Dashboard /wp-admin2,220 ▲375.84 ▲0.9397.04 ▼24.8578.55 ▲36.73
Posts /wp-admin/edit.php2,106 ▲171.97 ▼0.0438.42 ▼1.2133.79 ▼3.86
Add New Post /wp-admin/post-new.php1,542 ▲2318.45 ▼2.17699.48 ▼55.7166.04 ▲7.64
Media Library /wp-admin/upload.php1,399 ▲144.12 ▼0.10111.41 ▲1.1045.71 ▼3.73
/wp-admin/admin.php?page=live-site-reset-plugin1,6592.4231.04104.66
/wp-admin/admin.php?page=live-site-parse-vcita-callback1,8863.1336.2081.53

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
    • > GET request to /wp-admin/admin.php?page=live-site-parse-vcita-callback
    • > Notice in wp-content/plugins/contact-form-with-a-meeting-scheduler-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/contact-form-with-a-meeting-scheduler-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/contact-form-with-a-meeting-scheduler-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/contact-form-with-a-meeting-scheduler-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/contact-form-with-a-meeting-scheduler-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/contact-form-with-a-meeting-scheduler-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/contact-form-with-a-meeting-scheduler-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/contact-form-with-a-meeting-scheduler-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/contact-form-with-a-meeting-scheduler-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/contact-form-with-a-meeting-scheduler-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/contact-form-with-a-meeting-scheduler-by-vcita/plugin_init.php+121
    Undefined index: plugin_initially_activated

SRP 50% 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
Please take a closer look at the following
  • 13× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/contact-form-with-a-meeting-scheduler-by-vcita/core/ajax_api.php:42
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ls_get_module_data() in wp-content/plugins/contact-form-with-a-meeting-scheduler-by-vcita/modules/livesite_widget.php:48
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ls_get_module_data() in wp-content/plugins/contact-form-with-a-meeting-scheduler-by-vcita/modules/form_builder.php:48
    • > PHP Fatal error
      Uncaught Error: Class 'ls_helpers' not found in wp-content/plugins/contact-form-with-a-meeting-scheduler-by-vcita/core/sidebar_widget.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'ls_helpers' not found in wp-content/plugins/contact-form-with-a-meeting-scheduler-by-vcita/system/backoffice_page.php:42
    • > PHP Fatal error
      Uncaught Error: Class 'ls_helpers' not found in wp-content/plugins/contact-form-with-a-meeting-scheduler-by-vcita/core/sdk.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'ls_helpers' not found in wp-content/plugins/contact-form-with-a-meeting-scheduler-by-vcita/system/parse_vcita_callback.php:29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ls_get_module_data() in wp-content/plugins/contact-form-with-a-meeting-scheduler-by-vcita/modules/scheduler.php:52
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/contact-form-with-a-meeting-scheduler-by-vcita/Livesite.php:33
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ls_get_module_data() in wp-content/plugins/contact-form-with-a-meeting-scheduler-by-vcita/modules/payments.php:48

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser 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 is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (**vcita Contact Form** - Fully customized form, with several layout options and full customization.), #2 (**Proactive Contact Form** - Don't wait for visitors to contact you, approach them on any page and double your leads!), #3 (**Customize colors and fonts** - Customize your contact form's colors, border styles, fonts and sizes.), #4 (**Multiple Layout Options to choose from** - Create the contact form that best fits your website. Your contact form can include different info and actions.), #5 (**Custom Fields** - Add, Edit and Remove fields with a simple drag and drop UI.), #6 (**Customize colors and fonts** - Customize your contact form's colors, border styles, fonts and sizes.), #7 (**View full correspondence** - View all client requests in one place, where you can also take action - reply, schedule a follow-up meeting and send an invoice.), #8 (**Track and Manage contacts** - Keep history of contacts, manage contact details and track whether your messages are read by clients.)
The official readme.txt might help

contact-form-with-a-meeting-scheduler-by-vcita/Livesite.php 92% from 13 tests

The main file in "Contact Form Builder by vcita" v. 4.10.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("contact-form-with-a-meeting-scheduler-by-vcita.php" instead of "Livesite.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin4,051 lines of code in 34 files:
LanguageFilesBlank linesComment linesLines of code
PHP211,0891,1052,387
CSS5193311,372
JavaScript610541201
JSON10072
SVG10019

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity8.33
▷ Minimum class complexity2.00
▷ Maximum class complexity34.00
Average method complexity1.86
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes00.00%
Methods129
▷ Static methods00.00%
▷ Public methods129100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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
11 PNG files occupy 0.72MB with 0.33MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/vcita-icon.png0.50KB0.46KB▼ 7.95%
images/header-decoration.png6.24KB3.67KB▼ 41.17%
screenshot-8.png89.66KB38.79KB▼ 56.74%
screenshot-3.png228.65KB80.61KB▼ 64.74%
images/header-main.png31.86KB12.50KB▼ 60.76%