62% liveforms

Code Review | WordPress Contact Form, Drag and Drop Form Builder Plugin - Live Forms

WordPress plugin WordPress Contact Form, Drag and Drop Form Builder Plugin - Live Forms scored62%from 54 tests.

About plugin

  • Plugin page: liveforms
  • Plugin version: 4.7.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.3
  • WordPress version: 6.3.1
  • First release: Apr 21, 2014
  • Latest release: Oct 7, 2023
  • Number of updates: 194
  • Update frequency: every 17.8 days
  • Top authors: codename065 (100%)

Code review

54 tests

User reviews

51 reviews

Install metrics

800+ active /162,998 total downloads

Benchmarks

Plugin footprint 65% from 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲1.55MB] [CPU: ▲10.01ms] Passed 4 tests

This is a short check of server-side resources used by WordPress Contact Form, Drag and Drop Form Builder Plugin - Live Forms
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /5.02 ▲1.5645.87 ▲7.36
Dashboard /wp-admin4.86 ▲1.5255.89 ▼1.28
Posts /wp-admin/edit.php4.98 ▲1.6266.36 ▲15.22
Add New Post /wp-admin/post-new.php7.46 ▲1.58116.30 ▲20.31
Media Library /wp-admin/upload.php4.78 ▲1.5554.24 ▲18.75
Statistics /wp-admin/edit.php?post_type=form&page=statistics4.8051.62
Settings /wp-admin/edit.php?post_type=form&page=wplf-settings4.8544.40
All Forms /wp-admin/edit.php?post_type=form4.8445.55
Form Entries /wp-admin/edit.php?post_type=form&page=form-entries4.8142.31
Add New /wp-admin/post-new.php?post_type=form4.8451.79

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 252 new files
Database: 7 new tables, 8 new options
New tables
wp_liveforms_addons_active
wp_liveforms_replies
wp_liveforms_addons_form_details
wp_liveforms_conreqs
wp_liveforms_payments
wp_liveforms_stats
wp_liveforms_addons
New WordPress options
widget_theysaidso_widget
__wpdm_enc_key
widget_recent-comments
can_compress_scripts
__wplf_api_key
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

WordPress Contact Form, Drag and Drop Form Builder Plugin - Live Forms: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,004 ▲23313.67 ▼0.786.38 ▲4.5142.36 ▼1.85
Dashboard /wp-admin2,286 ▲984.86 ▼0.96108.22 ▲2.3442.42 ▼2.13
Posts /wp-admin/edit.php2,176 ▲902.00 ▼0.0046.46 ▲10.3136.07 ▲1.84
Add New Post /wp-admin/post-new.php6,392 ▲4,85927.61 ▲4.41929.21 ▲238.3738.96 ▼24.00
Media Library /wp-admin/upload.php1,468 ▲864.25 ▲0.04102.11 ▲4.2442.59 ▼5.80
Statistics /wp-admin/edit.php?post_type=form&page=statistics1,1372.4953.4435.39
Settings /wp-admin/edit.php?post_type=form&page=wplf-settings1,1152.4532.1075.77
All Forms /wp-admin/edit.php?post_type=form1,1882.4039.8929.36
Form Entries /wp-admin/edit.php?post_type=form&page=form-entries9582.5028.7628.35
Add New /wp-admin/post-new.php?post_type=form1,7113.1956.5098.86

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The plugin did not uninstall successfully, leaving 7 tables in the database
    • wp_liveforms_replies
    • wp_liveforms_payments
    • wp_liveforms_addons_form_details
    • wp_liveforms_addons_active
    • wp_liveforms_conreqs
    • wp_liveforms_stats
    • wp_liveforms_addons
  • The uninstall procedure has failed, leaving 8 options in the database
    • can_compress_scripts
    • __wpdm_enc_key
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • __wplf_api_key

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
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=form&page=form-entries
    • > Notice in wp-content/plugins/liveforms/views/admin/form-entries.php+211
    Undefined index: form_id

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 50× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
    • > /wp-content/plugins/liveforms/views/showreqs_ajax.php
    • > /wp-content/plugins/liveforms/views/submitted.view.php
    • > /wp-content/plugins/liveforms/views/form-builder.php
    • > /wp-content/plugins/liveforms/libs/Form/Form.php
    • > /wp-content/plugins/liveforms/views/builder/cond-logic-template.php
    • > /wp-content/plugins/liveforms/views/showform.ajax.view.php
    • > /wp-content/plugins/liveforms/views/form-ui/default.php
    • > /wp-content/plugins/liveforms/views/builder/sidebar-backup.php
    • > /wp-content/plugins/liveforms/views/builder/settings/support-form.php
    • > /wp-content/plugins/liveforms/views/admin/form-entries.php
  • 40× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Field' not found in wp-content/plugins/liveforms/formfields/advanced/likert.class.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Field' not found in wp-content/plugins/liveforms/formfields/advanced/paratext.class.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Field' not found in wp-content/plugins/liveforms/formfields/advanced/hidden.class.php:2
    • > PHP Warning
      Use of undefined constant LF_BASE_DIR - assumed 'LF_BASE_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/liveforms/libs/__/Session.php on line 26
    • > PHP Fatal error
      Uncaught Error: Class 'Field' not found in wp-content/plugins/liveforms/formfields/generic/date.class.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Field' not found in wp-content/plugins/liveforms/formfields/advanced/recaptcha.class.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Field' not found in wp-content/plugins/liveforms/formfields/generic/text.class.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Field' not found in wp-content/plugins/liveforms/formfields/generic/checkbox.class.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Field' not found in wp-content/plugins/liveforms/formfields/generic/select.class.php:2
    • > PHP Warning
      reset() expects parameter 1 to be array, null given in wp-content/plugins/liveforms/views/form/entries.php on line 5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: contact form builder, contact form, support form, contact forms, form builder plugin...

liveforms/liveforms.php Passed 13 tests

The principal PHP file in "WordPress Contact Form, Drag and Drop Form Builder Plugin - Live Forms" v. 4.7.1 is loaded by WordPress automatically on each request
41 characters long description:
Drag and Drop Form Builder Form WordPress

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
Good job! No executable or dangerous file extensions detected45,162 lines of code in 192 files:
LanguageFilesBlank linesComment linesLines of code
PHP1361,9591,13114,089
CSS181,9091,32713,508
SVG72139,586
JavaScript254478536,824
HTML411073678
PO File1204255476
JSON1001

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity13.46
▷ Minimum class complexity1.00
▷ Maximum class complexity153.00
Average method complexity2.90
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces9
Interfaces0
Traits0
Classes70
▷ Abstract classes22.86%
▷ Concrete classes6897.14%
▷ Final classes00.00%
Methods462
▷ Static methods7816.88%
▷ Public methods45698.70%
▷ Protected methods20.43%
▷ Private methods40.87%
Functions34
▷ Named functions3294.12%
▷ Anonymous functions25.88%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
35 PNG files occupy 0.51MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/jqui/theme/images/slider_handles.png1.90KB1.31KB▼ 30.90%
assets/intl-tel-input/img/flags@2x.png170.28KB68.04KB▼ 60.04%
assets/jqui/theme/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.10KB0.17KB0.00%
assets/images/creditcards.png24.14KB6.69KB▼ 72.30%
assets/previews/donation.png28.75KB11.83KB▼ 58.86%