68% visual-form-builder

Code Review | Visual Form Builder

WordPress plugin Visual Form Builder scored68%from 54 tests.

About plugin

  • Plugin page: visual-form-builder
  • Plugin version: 3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0
  • WordPress version: 6.3.1
  • First release: Jun 23, 2011
  • Latest release: May 27, 2022
  • Number of updates: 566
  • Update frequency: every 7.1 days
  • Top authors: mmuro (100%)

Code review

54 tests

User reviews

315 reviews

Install metrics

40,000+ active /1,695,359 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼11.06ms] Passed 4 tests

This is a short check of server-side resources used by Visual Form Builder
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0933.84 ▼7.83
Dashboard /wp-admin3.39 ▲0.0543.67 ▼15.22
Posts /wp-admin/edit.php3.51 ▲0.1541.30 ▼5.61
Add New Post /wp-admin/post-new.php5.97 ▲0.0982.12 ▼15.57
Media Library /wp-admin/upload.php3.32 ▲0.0933.47 ▲1.39
All Forms /wp-admin/admin.php?page=visual-form-builder3.3034.17
Add New /wp-admin/admin.php?page=vfb-add-new3.2931.07
Settings /wp-admin/admin.php?page=vfb-settings3.2925.27
Entries /wp-admin/admin.php?page=vfb-entries3.2934.16
Export /wp-admin/admin.php?page=vfb-export3.2629.42

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 166 new files
Database: 3 new tables, 9 new options
New tables
wp_visual_form_builder_forms
wp_visual_form_builder_fields
wp_visual_form_builder_entries
New WordPress options
widget_theysaidso_widget
vfb_dashboard_widget_options
theysaidso_admin_options
widget_vfb_widget
widget_recent-posts
db_upgraded
can_compress_scripts
vfb_db_version
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Visual Form Builder
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,868 ▲10714.40 ▲0.231.95 ▲0.4142.97 ▲2.65
Dashboard /wp-admin2,277 ▲1055.56 ▼0.0883.08 ▼14.4340.83 ▼3.37
Posts /wp-admin/edit.php2,142 ▲421.96 ▼0.0034.67 ▼5.0732.85 ▼1.06
Add New Post /wp-admin/post-new.php1,566 ▲4018.23 ▼5.58615.79 ▼53.8868.19 ▲18.65
Media Library /wp-admin/upload.php1,439 ▲394.18 ▲0.0294.09 ▼0.3240.97 ▼3.75
All Forms /wp-admin/admin.php?page=visual-form-builder1,4681.8929.8540.43
Add New /wp-admin/admin.php?page=vfb-add-new9611.9128.0526.46
Settings /wp-admin/admin.php?page=vfb-settings1,0011.8825.5926.55
Entries /wp-admin/admin.php?page=vfb-entries1,2011.8826.5130.55
Export /wp-admin/admin.php?page=vfb-export9921.9727.9427.09

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie tables were found after uninstall: 3 tables
    • wp_visual_form_builder_fields
    • wp_visual_form_builder_entries
    • wp_visual_form_builder_forms
  • This plugin does not fully uninstall, leaving 9 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • vfb_db_version
    • widget_vfb_widget
    • can_compress_scripts
    • widget_theysaidso_widget
    • vfb_dashboard_widget_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/admin.php?page=vfb-export
    • > Warning in wp-content/plugins/visual-form-builder/admin/class-export.php+136
    Illegal string offset 'form_id'
    • > GET request to /wp-admin/admin.php?page=vfb-export
    • > Notice in wp-content/plugins/visual-form-builder/admin/class-export.php+136
    Uninitialized string offset: 0

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/visual-form-builder/admin/class-entries-list.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/visual-form-builder/admin/class-widget.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/visual-form-builder/admin/class-forms-list.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Tags: There are too many tags (15 tag instead of maximum 10)
You can take inspiration from this readme.txt

visual-form-builder/visual-form-builder.php 85% from 13 tests

The main PHP script in "Visual Form Builder" version 3.1 is automatically included on every request by WordPress
You should first fix the following items:
  • Domain Path: The domain path is invalid: folder "/languages/" does not exist
  • Description: Please don't use more than 140 characters for the plugin description (currently 143 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin14,451 lines of code in 114 files:
LanguageFilesBlank linesComment linesLines of code
PHP281,0391,4794,950
CSS63721142,733
PO File61,1752,1842,607
JavaScript563113922,495
Sass1828201,666

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity28.00
▷ Minimum class complexity1.00
▷ Maximum class complexity104.00
Average method complexity5.50
▷ Minimum method complexity1.00
▷ Maximum method complexity86.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes26
▷ Abstract classes00.00%
▷ Concrete classes26100.00%
▷ Final classes00.00%
Methods156
▷ Static methods95.77%
▷ Public methods14693.59%
▷ Protected methods21.28%
▷ Private methods85.13%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
25 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/img/arrows-dark-2x.png0.70KB0.76KB0.00%
public/assets/css/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png0.21KB0.08KB▼ 58.96%
public/assets/css/smoothness/images/ui-bg_flat_75_ffffff_40x100.png0.20KB0.08KB▼ 58.17%
public/assets/css/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png0.26KB0.15KB▼ 42.37%
public/assets/css/smoothness/images/ui-icons_cd0a0a_256x240.png4.44KB4.17KB▼ 6.02%