78% lead-capturing-call-to-actions-by-vcita

Code Review | Contact Form and Calls To Action by vcita

WordPress plugin Contact Form and Calls To Action by vcita scored78%from 54 tests.

About plugin

  • Plugin page: lead-capturing-ca...
  • Plugin version: 2.7.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3.1
  • WordPress version: 6.3.1
  • First release: Apr 16, 2015
  • Latest release: Sep 12, 2023
  • Number of updates: 71
  • Update frequency: every 43.6 days
  • Top authors: vCita (98.59%)ehud.vcita (2.82%)

Code review

54 tests

User reviews

7 reviews

Install metrics

300+ active /135,190 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▼0.20MB] [CPU: ▼19.67ms] Passed 4 tests

A check of server-side resources used by Contact Form and Calls To Action by vcita
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1227.61 ▼18.38
Dashboard /wp-admin3.45 ▲0.1051.36 ▼8.49
Posts /wp-admin/edit.php3.56 ▲0.2046.84 ▼3.88
Add New Post /wp-admin/post-new.php4.74 ▼1.1542.44 ▼47.91
Media Library /wp-admin/upload.php3.37 ▲0.1436.69 ▲2.80
/wp-admin/admin.php?page=lead-capturing-call-to-actions-by-vcita/vcita-callback.php3.3432.33

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 70 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
vcita_scheduler
widget_recent-comments
vcita_schedulerinit

Browser metrics Passed 4 tests

Checking browser requirements for Contact Form and Calls To Action by vcita
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,883 ▲9713.85 ▼0.818.23 ▲5.9343.91 ▼1.58
Dashboard /wp-admin2,195 ▲155.56 ▼0.0987.55 ▼3.5283.10 ▲42.67
Posts /wp-admin/edit.php2,115 ▲151.97 ▼0.0334.52 ▼2.3732.89 ▼1.22
Add New Post /wp-admin/post-new.php1,693 ▲15822.34 ▲4.00750.65 ▲128.5252.47 ▼15.40
Media Library /wp-admin/upload.php1,418 ▲214.15 ▼0.0892.17 ▼12.4077.34 ▲30.29
/wp-admin/admin.php?page=lead-capturing-call-to-actions-by-vcita/vcita-callback.php1,6902.3727.6147.81

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 8 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • vcita_scheduler
    • vcita_schedulerinit
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% 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=lead-capturing-call-to-actions-by-vcita/vcita-callback.php
    • > Notice in wp-content/plugins/lead-capturing-call-to-actions-by-vcita/vcita-callback.php+2
    Undefined index: success
    • > GET request to /wp-admin/admin.php?page=lead-capturing-call-to-actions-by-vcita/vcita-callback.php
    • > Notice in wp-content/plugins/lead-capturing-call-to-actions-by-vcita/vcita-callback.php+3
    Undefined index: uid
    • > GET request to /wp-admin/admin.php?page=lead-capturing-call-to-actions-by-vcita/vcita-callback.php
    • > Notice in wp-content/plugins/lead-capturing-call-to-actions-by-vcita/vcita-callback.php+4
    Undefined index: first_name
    • > GET request to /wp-admin/admin.php?page=lead-capturing-call-to-actions-by-vcita/vcita-callback.php
    • > Notice in wp-content/plugins/lead-capturing-call-to-actions-by-vcita/vcita-callback.php+5
    Undefined index: last_name
    • > GET request to /wp-admin/admin.php?page=lead-capturing-call-to-actions-by-vcita/vcita-callback.php
    • > Notice in wp-content/plugins/lead-capturing-call-to-actions-by-vcita/vcita-callback.php+6
    Undefined index: title
    • > GET request to /wp-admin/admin.php?page=lead-capturing-call-to-actions-by-vcita/vcita-callback.php
    • > Notice in wp-content/plugins/lead-capturing-call-to-actions-by-vcita/vcita-callback.php+7
    Undefined index: confirmation_token
    • > GET request to /wp-admin/admin.php?page=lead-capturing-call-to-actions-by-vcita/vcita-callback.php
    • > Notice in wp-content/plugins/lead-capturing-call-to-actions-by-vcita/vcita-callback.php+8
    Undefined index: confirmed
    • > GET request to /wp-admin/admin.php?page=lead-capturing-call-to-actions-by-vcita/vcita-callback.php
    • > Notice in wp-content/plugins/lead-capturing-call-to-actions-by-vcita/vcita-callback.php+9
    Undefined index: engage_delay
    • > GET request to /wp-admin/admin.php?page=lead-capturing-call-to-actions-by-vcita/vcita-callback.php
    • > Notice in wp-content/plugins/lead-capturing-call-to-actions-by-vcita/vcita-callback.php+10
    Undefined index: implementation_key
    • > GET request to /wp-admin/admin.php?page=lead-capturing-call-to-actions-by-vcita/vcita-callback.php
    • > Notice in wp-content/plugins/lead-capturing-call-to-actions-by-vcita/vcita-callback.php+11
    Undefined index: email
    • > GET request to /wp-admin/admin.php?page=lead-capturing-call-to-actions-by-vcita/vcita-callback.php
    • > Notice in wp-content/plugins/lead-capturing-call-to-actions-by-vcita/vcita-settings-functions.php+338
    Undefined index: contact_page

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
Almost there! Just fix the following items
  • 31× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ls_get_module_data() in wp-content/plugins/lead-capturing-call-to-actions-by-vcita/modules/livesite_widget.php:48
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/lead-capturing-call-to-actions-by-vcita/vcita-callback.php:13
    • > PHP Fatal error
      require_once(): Failed opening required 'WP_PLUGIN_DIR/lead-capturing-call-to-actions-by-vcita/vcita-utility-functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/lead-capturing-call-to-actions-by-vcita/lead-capturing-call-to-actions.php on line 38
    • > PHP Notice
      Undefined index: implementation_key in wp-content/plugins/lead-capturing-call-to-actions-by-vcita/vcita-callback.php on line 10
    • > PHP Notice
      Undefined index: success in wp-content/plugins/lead-capturing-call-to-actions-by-vcita/vcita-callback.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lead-capturing-call-to-actions-by-vcita/core/ajax_api.php:42
    • > PHP Fatal error
      Uncaught Error: Class 'ls_helpers' not found in wp-content/plugins/lead-capturing-call-to-actions-by-vcita/core/sdk.php:13
    • > PHP Notice
      Undefined index: confirmed in wp-content/plugins/lead-capturing-call-to-actions-by-vcita/vcita-callback.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function vcita_add_stylesheet() in wp-content/plugins/lead-capturing-call-to-actions-by-vcita/vcita-livesite-widget-edit.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'ls_helpers' not found in wp-content/plugins/lead-capturing-call-to-actions-by-vcita/system/backoffice_page.php:42

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (**Active Contact Form & Calls To Action** - Doubles the number of new business opportunities your website generate, and automatically streams them into your CRM.), #2 (**Full customization** - to perfectly match your business need and website theme.), #3 (**Client Records** - For every lead captured on your site a new "Client Card", including all information about the lead, is created. You can search for clients and leads, Mark the lead status and make follow-up actions: Schedule an appointment, send an invoice and more. right time for the right price. Appointments can be conducted at any location, by phone, via Skype or any online meeting.), #4 (**Manage & follow up with clients**), #5 (**Receive notifications for every new lead**)
The official readme.txt might help

lead-capturing-call-to-actions-by-vcita/lead-capturing-call-to-actions.php 92% from 13 tests

"Contact Form and Calls To Action by vcita" version 2.7.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("lead-capturing-call-to-actions-by-vcita.php" instead of "lead-capturing-call-to-actions.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin5,163 lines of code in 43 files:
LanguageFilesBlank linesComment linesLines of code
PHP291,2491,2173,410
CSS5220311,470
JavaScript69738188
JSON10072
SVG10019
INI1104

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
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%
Functions64
▷ Named functions64100.00%
▷ Anonymous functions00.00%
Constants22
▷ Global constants22100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
18 PNG files occupy 1.02MB with 0.71MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png437.44KB32.63KB▼ 92.54%
screenshot-5.png426.70KB43.74KB▼ 89.75%
images/gear.png1.20KB0.47KB▼ 60.84%
images/header-main.png31.86KB12.50KB▼ 60.76%
images/ls-payment-icons.png4.15KB2.38KB▼ 42.57%