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

Code Review | Contact Form Builder by vcita

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

About plugin

  • Plugin page: contact-form-with...
  • Plugin version: 4.9.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.7.2
  • WordPress version: 5.8.1
  • First release: Oct 5, 2011
  • Latest release: Jun 17, 2021
  • Number of updates: 169
  • Update frequency: every 21.0 days
  • Top authors: vCita (35.5%)eyale-vc (24.26%)warolv (19.53%)erel (10.65%)yoffegil (7.69%)

Code review

54 tests

User reviews

42 reviews

Install metrics

2,000+ active / 356,067 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼146.32ms] Passed 4 tests

Analyzing server-side resources used by Contact Form Builder by vcita
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.0323.77 ▲0.26
Dashboard /wp-admin3.10 ▲0.0437.73 ▼5.53
Posts /wp-admin/edit.php3.19 ▲0.0831.00 ▼1.47
Add New Post /wp-admin/post-new.php5.46 ▲0.0267.98 ▼578.55
Media Library /wp-admin/upload.php3.04 ▲0.0424.23 ▲1.09
/wp-admin/admin.php?page=live-site-parse-vcita-callback2.9921.29
/wp-admin/admin.php?page=live-site-reset-plugin3.0831.17

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 53 new files
Database: no new tables, 1 new option
New WordPress options
livesite_plugin_settings

Browser metrics Passed 4 tests

An overview of browser requirements for Contact Form Builder by vcita
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,683 ▲8215.86 ▲0.065.12 ▼0.3472.86 ▼6.13
Dashboard /wp-admin2,946 ▲536.09 ▼0.10115.69 ▼18.41180.21 ▲8.17
Posts /wp-admin/edit.php2,721 ▲153.14 ▼0.1064.66 ▼0.09141.42 ▲1.10
Add New Post /wp-admin/post-new.php2,509 ▼1,22616.73 ▼1.02389.27 ▼39.43169.66 ▲5.44
Media Library /wp-admin/upload.php1,763 ▲115.55 ▼0.00131.48 ▼14.13194.09 ▲9.85
/wp-admin/admin.php?page=live-site-parse-vcita-callback2,97327.97938.38254.78
/wp-admin/admin.php?page=live-site-reset-plugin2,0833.5569.49260.09

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully

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
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 13× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > 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: Call to undefined function ls_get_module_data() in wp-content/plugins/contact-form-with-a-meeting-scheduler-by-vcita/modules/payments.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/livesite_widget.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/sdk.php:13
    • > 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: 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: 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: 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/shortcodes.php:19
    • > 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

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
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=live-site-parse-vcita-callback
    • > Rendering (warning) in unknown
    https://d2ra6nuwn69ktl.cloudfront.net/assets/application-31a9c2d656722f02ed36a93fc97f98c3.js 28 The specified value "!" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
    • > GET request to /wp-admin/admin.php?page=live-site-parse-vcita-callback
    • > Console-api (warning) in unknown
    https://connect.facebook.net/en_US/fbevents.js 23:37724 "[Meta Pixel] - Duplicate Pixel ID: 1403135116654645."
    • > GET request to /wp-admin/admin.php?page=live-site-parse-vcita-callback
    • > Console-api (warning) in unknown
    https://connect.facebook.net/en_US/fbevents.js 23:37724 "[Meta Pixel] - Duplicate Pixel ID: 746258388811076."
    • > GET request to /wp-admin/admin.php?page=live-site-parse-vcita-callback
    • > Network (severe)
    https://alb.reddit.com/rp.gif?ts=1646960774385&id=t2_5lxbg27i&event=PageVisit&m.itemCount=&m.value=&m.valueDecimal=&m.currency=&m.transactionId=&m.customEventName=&uuid=b9e93257-03be-436c-87e1-aee8f7fa2988&aaid=&em=&external_id=&idfa=&integration=reddit&opt_out=0&sh=800&sw=600&v=rdt_da535582 - Failed to load resource: the server responded with a status of 403 ()

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • 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.)
You can take inspiration from this readme.txt

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

The main PHP file in "Contact Form Builder by vcita" ver. 4.9.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as 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
No dangerous file extensions were detected4,049 lines of code in 34 files:
LanguageFilesBlank linesComment linesLines of code
PHP211,0911,1052,385
CSS5193311,372
JavaScript610541201
JSON10072
SVG10019

PHP code Passed 2 tests

This is a short overview 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.27
▷ Minimum class complexity1.00
▷ Maximum class complexity34.00
Average method complexity1.85
▷ 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.26MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/vcita-logo.png1.03KB1.32KB0.00%
images/vcita-icon.png0.50KB0.46KB▼ 7.95%
images/header-main.png31.86KB12.50KB▼ 60.76%
screenshot-6.png140.52KB59.71KB▼ 57.51%
screenshot-7.png93.25KB43.05KB▼ 53.83%