62% ultimate-form-builder-lite

Code Review | Contact Form for WordPress - Ultimate Form Builder Lite

WordPress plugin Contact Form for WordPress - Ultimate Form Builder Lite scored 62% from 54 tests.

About plugin

  • Plugin page: ultimate-form-bui...
  • Plugin version: 1.5.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.8
  • WordPress version: 5.9.2
  • First release: Sep 7, 2015
  • Latest release: Sep 16, 2021
  • Number of updates: 68
  • Update frequency: every 32.4 days
  • Top authors: Access Keys (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

20,000+ active / 745,770 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: ▲0.25MB] [CPU: ▼293.26ms] Passed 4 tests

An overview of server-side resources used by Contact Form for WordPress - Ultimate Form Builder Lite
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.84 ▲0.3256.96 ▲3.23
Dashboard /wp-admin3.69 ▲0.2834.92 ▲0.20
Posts /wp-admin/edit.php3.91 ▲0.2738.90 ▼0.04
Add New Post /wp-admin/post-new.php7.15 ▲0.1897.35 ▼1,173.91
Media Library /wp-admin/upload.php3.57 ▲0.2724.57 ▲0.73
All Forms /wp-admin/admin.php?page=ufbl3.5924.86
About /wp-admin/admin.php?page=ufbl-about3.5529.37
How to use /wp-admin/admin.php?page=ufbl-how-to-use3.5524.10
New Form /wp-admin/admin.php?page=ufbl-new-form3.5524.17
Check Premium Version /wp-admin/admin.php?page=ufbl-premium3.3718.77
Form Entries /wp-admin/admin.php?page=ufbl-form-entries3.5933.84
Documentation /wp-admin/admin.php?page=ufbl-doclinks3.3719.65

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 75 new files
Database: 2 new tables, 1 new option
New tables
wp_ufbl_entries
wp_ufbl_forms
New WordPress options
widget_ufbl_widget

Browser metrics Passed 4 tests

A check of browser resources used by Contact Form for WordPress - Ultimate Form Builder Lite
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,966 ▲24416.34 ▲0.7010.66 ▲4.872.56 ▲0.07
Dashboard /wp-admin2,948 ▲876.04 ▼0.15128.52 ▼5.81167.74 ▲1.77
Posts /wp-admin/edit.php2,743 ▲493.25 ▲0.0263.12 ▼1.50137.96 ▼7.44
Add New Post /wp-admin/post-new.php1,695 ▲3416.44 ▲0.28416.86 ▲17.75155.15 ▲2.86
Media Library /wp-admin/upload.php1,754 ▲535.52 ▼0.03142.86 ▲4.95184.85 ▼3.56
All Forms /wp-admin/admin.php?page=ufbl1,4262.9465.99147.10
About /wp-admin/admin.php?page=ufbl-about1,1922.7072.19123.28
How to use /wp-admin/admin.php?page=ufbl-how-to-use1,3172.7259.46155.22
New Form /wp-admin/admin.php?page=ufbl-new-form1,1182.8256.93140.34
Check Premium Version /wp-admin/admin.php?page=ufbl-premium2,56217.50624.31310.33
Form Entries /wp-admin/admin.php?page=ufbl-form-entries1,1812.8156.64114.11
Documentation /wp-admin/admin.php?page=ufbl-doclinks1,2898.23291.12152.10

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 2 tables in the database
    • wp_ufbl_entries
    • wp_ufbl_forms
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • widget_ufbl_widget

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% 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 fix the following items
  • 7× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/ultimate-form-builder-lite/inc/views/backend/form-list.php
    • > /wp-content/plugins/ultimate-form-builder-lite/ultimate-form-builder-lite.php
    • > /wp-content/plugins/ultimate-form-builder-lite/classes/ufbl-model.php
    • > /wp-content/plugins/ultimate-form-builder-lite/inc/views/backend/header.php
    • > /wp-content/plugins/ultimate-form-builder-lite/inc/cores/activation.php
    • > /wp-content/plugins/ultimate-form-builder-lite/inc/views/backend/upgrade-block.php
    • > /wp-content/plugins/ultimate-form-builder-lite/classes/ufbl-lib.php
  • 26× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_row() on null in wp-content/plugins/ultimate-form-builder-lite/inc/cores/shortcode.php:5
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/ultimate-form-builder-lite/inc/cores/shortcode.php on line 2
    • > PHP Fatal error
      Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/ultimate-form-builder-lite/inc/views/backend/form-builder.php:8
    • > PHP Fatal error
      Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/ultimate-form-builder-lite/inc/views/backend/form-entries-list.php:7
    • > PHP Fatal error
      Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/ultimate-form-builder-lite/inc/views/backend/about.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function maybe_unserialize() in wp-content/plugins/ultimate-form-builder-lite/inc/views/backend/boxes/display-settings.php:3
    • > PHP Warning
      Use of undefined constant UFBL_IMG_DIR - assumed 'UFBL_IMG_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/ultimate-form-builder-lite/inc/views/backend/upgrade-block.php on line 10
    • > PHP Warning
      Use of undefined constant UFBL_IMG_DIR - assumed 'UFBL_IMG_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/ultimate-form-builder-lite/inc/views/backend/upgrade-block.php on line 5
    • > PHP Warning
      Use of undefined constant UFBL_IMG_DIR - assumed 'UFBL_IMG_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/ultimate-form-builder-lite/inc/views/backend/upgrade-block.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function maybe_unserialize() in wp-content/plugins/ultimate-form-builder-lite/inc/views/frontend/front-form.php:2

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 take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=ufbl-premium
    • > Javascript (severe) in unknown
    https://accesspressthemes.com/wordpress-plugins/ultimate-form-builder/ - Access to script at 'https://embed.tawk.to/60cc2bbb65b7290ac63693ec/1f8eollms' from origin 'https://accesspressthemes.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=ufbl-doclinks
    • > Network (severe)
    https://embed.tawk.to/60cc2bbb65b7290ac63693ec/1f8eollms - Failed to load resource: net::ERR_FAILED
    • > GET request to /wp-admin/admin.php?page=ufbl-doclinks
    • > Javascript (severe) in unknown
    https://accesspressthemes.com/documentation/ultimate-form-builder-lite/ - Access to script at 'https://embed.tawk.to/60cc2bbb65b7290ac63693ec/1f8eollms' from origin 'https://accesspressthemes.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Tags: Please delete some tags, you are using 14 tag instead of maximum 10
The official readme.txt is a good inspiration

ultimate-form-builder-lite/ultimate-form-builder-lite.php Passed 13 tests

The main PHP file in "Contact Form for WordPress - Ultimate Form Builder Lite" ver. 1.5.1 adds more information about the plugin and also serves as the entry point for this plugin
35 characters long description:
A plugin to build any type of forms

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected9,210 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
PHP222343833,590
SVG1002,671
CSS424372,179
JavaScript38081424
PO File1153425346

PHP code 50% from 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
It is recommended to fix the following
  • Method cyclomatic complexity should be reduced to less than 100 (currently 136)
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity59.75
▷ Minimum class complexity9.00
▷ Maximum class complexity159.00
Average method complexity5.05
▷ Minimum method complexity1.00
▷ Maximum method complexity136.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods58
▷ Static methods2441.38%
▷ Public methods58100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
27 PNG files occupy 0.30MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/form-icon.png0.40KB0.29KB▼ 28.29%
images/check-box-checked-5.png1.70KB0.60KB▼ 64.61%
images/checked-radio.png4.37KB1.10KB▼ 74.75%
images/mail.png1.43KB0.24KB▼ 83.08%
images/uncheck-radio-bold-border.png4.56KB1.24KB▼ 72.74%