55% jetformbuilder

Code Review | JetFormBuilder — Dynamic Blocks Form Builder

WordPress plugin JetFormBuilder — Dynamic Blocks Form Builder scored55%from 54 tests.

About plugin

  • Plugin page: jetformbuilder
  • Plugin version: 3.2.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Jan 25, 2021
  • Latest release: Nov 21, 2023
  • Number of updates: 102
  • Update frequency: every 10.2 days
  • Top authors: jetmonsters (68.63%)crocoblock (32.35%)

Code review

54 tests

User reviews

37 reviews

Install metrics

40,000+ active /564,817 total downloads

Benchmarks

Plugin footprint 64% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲5.47MB] [CPU: ▲37.15ms] 25% from 4 tests

An overview of server-side resources used by JetFormBuilder — Dynamic Blocks Form Builder
Please fix the following
  • RAM: Total memory usage should be kept under 10MB (currently 13.13MB on /wp-admin/post-new.php?post_type=jet-form-builder)
  • CPU: The total CPU usage must kept under 500.00ms (currently 757.52ms on /wp-admin/edit.php?post_type=jet-form-builder&page=jfb-addons)
  • Extra RAM: The extra memory usage must be under 5MB (currently 5.47MB on /wp-admin/edit.php?post_type=jet-form-builder&page=jfb-addons)
PageMemory (MB)CPU Time (ms)
Home /8.60 ▲5.1374.12 ▲30.06
Dashboard /wp-admin8.90 ▲5.5586.89 ▲26.30
Posts /wp-admin/edit.php8.95 ▲5.5991.99 ▲45.08
Add New Post /wp-admin/post-new.php12.13 ▲6.24149.03 ▲57.77
Media Library /wp-admin/upload.php8.82 ▲5.5980.15 ▲47.16
Add New /wp-admin/post-new.php?post_type=jet-form-builder13.13149.81
Form Records /wp-admin/edit.php?post_type=jet-form-builder&page=jfb-records9.54233.94
Settings /wp-admin/edit.php?post_type=jet-form-builder&page=jfb-settings8.9575.01
Forms /wp-admin/edit.php?post_type=jet-form-builder8.9093.99
Addons /wp-admin/edit.php?post_type=jet-form-builder&page=jfb-addons8.98757.52

Server storage [IO: ▲6.67MB] [DB: ▲0.02MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 1,140 new files
Database: 5 new tables, 6 new options
New tables
wp_jet_fb_records_actions
wp_jet_fb_records_errors
wp_jet_fb_migrations
wp_jet_fb_records_fields
wp_jet_fb_records
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by JetFormBuilder — Dynamic Blocks Form Builder
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,862 ▲10014.21 ▼0.361.48 ▼0.2836.59 ▼7.41
Dashboard /wp-admin2,259 ▲855.64 ▲0.0597.72 ▲9.0443.19 ▼0.26
Posts /wp-admin/edit.php2,164 ▲641.97 ▲0.0240.94 ▲2.9235.69 ▲2.80
Add New Post /wp-admin/post-new.php6,235 ▲4,70026.61 ▲1.65879.90 ▲264.9552.02 ▼5.82
Media Library /wp-admin/upload.php1,464 ▲674.24 ▼0.06101.45 ▼0.5141.88 ▼1.16
Add New /wp-admin/post-new.php?post_type=jet-form-builder7,11728.701,157.1846.31
Form Records /wp-admin/edit.php?post_type=jet-form-builder&page=jfb-records1,3657.40180.6534.36
Settings /wp-admin/edit.php?post_type=jet-form-builder&page=jfb-settings1,9527.93208.4455.10
Forms /wp-admin/edit.php?post_type=jet-form-builder1,1781.9445.5237.28
Addons /wp-admin/edit.php?post_type=jet-form-builder&page=jfb-addons1,7915.8998.1745.37

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie tables detected upon uninstall: 5 tables
    • wp_jet_fb_records
    • wp_jet_fb_records_actions
    • wp_jet_fb_migrations
    • wp_jet_fb_records_fields
    • wp_jet_fb_records_errors
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=jet-form-builder&page=jfb-settings
    • > request to
    • > Notice in wp-config.php+20
    Undefined index: REQUEST_METHOD

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
Please take a closer look at the following
  • 26× GET requests to PHP files return non-empty strings (only 10 are shown):
    • > /wp-content/plugins/jetformbuilder/modules/framework/vue-ui/components/repeater-item.php
    • > /wp-content/plugins/jetformbuilder/modules/framework/vue-ui/components/repeater.php
    • > /wp-content/plugins/jetformbuilder/modules/framework/vue-ui/components/title.php
    • > /wp-content/plugins/jetformbuilder/modules/framework/vue-ui/components/colorpicker.php
    • > /wp-content/plugins/jetformbuilder/modules/framework/vue-ui/components/select.php
    • > /wp-content/plugins/jetformbuilder/modules/framework/vue-ui/components/tabs-panel.php
    • > /wp-content/plugins/jetformbuilder/modules/framework/vue-ui/components/input.php
    • > /wp-content/plugins/jetformbuilder/modules/framework/vue-ui/components/pagination.php
    • > /wp-content/plugins/jetformbuilder/modules/framework/vue-ui/components/wp-media.php
    • > /wp-content/plugins/jetformbuilder/modules/framework/vue-ui/components/collapse.php
  • 8× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/jetformbuilder/modules/bulk-options/sources/days.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'JFB_Modules\\Gateways\\Base_Gateway_Action' not found in wp-content/plugins/jetformbuilder/modules/captcha/friendly-captcha/verify-token-action.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'JFB_Modules\\Captcha\\Re_Captcha_V3\\Verify_Token_Action' not found in wp-content/plugins/jetformbuilder/modules/captcha/hcaptcha/verify-token-action.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Jet_Form_Builder\\Actions\\Events\\Base_Executor' not found in wp-content/plugins/jetformbuilder/includes/actions/events/on-dynamic-state/on-dynamic-state-executor.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'JFB_Modules\\Captcha\\Abstract_Captcha\\Base_Captcha_From_Options' not found in wp-content/plugins/jetformbuilder/modules/captcha/friendly-captcha/friendly-captcha.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Jet_Form_Builder\\Actions\\Events\\Base_Event' not found in wp-content/plugins/jetformbuilder/includes/actions/events/on-dynamic-state/on-dynamic-state-event.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Jet_Form_Builder\\Blocks\\Conditional_Block\\Render_States\\Base_Render_State' not found in wp-content/plugins/jetformbuilder/includes/blocks/conditional-block/render-states/custom-render-state.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'JFB_Modules\\Captcha\\Abstract_Captcha\\Base_Captcha_From_Options' not found in wp-content/plugins/jetformbuilder/modules/captcha/hcaptcha/hcaptcha.php:18

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
    • > GET request to /wp-admin/post-new.php?post_type=jet-form-builder
    • > Javascript (severe) in unknown
    /wp-includes/js/dist/core-data.min.js?ver=eba24853937736de71cd 1:15027 Uncaught Error: The entity being edited (postType, undefined) does not have a loaded config.
    • > GET request to /wp-admin/edit.php?post_type=jet-form-builder&page=jfb-records
    • > Intervention (severe) in unknown
    /wp-admin/post-new.php?post_type=jet-form-builder - Blocked attempt to show a 'beforeunload' confirmation panel for a frame that never had a user gesture since its load. https://www.chromestatus.com/feature/5082396709879808

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: multi step form, gutenberg forms, form builder, forms, contact form...

jetformbuilder/jet-form-builder.php 77% from 13 tests

The primary PHP file in "JetFormBuilder — Dynamic Blocks Form Builder" version 3.2.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 159 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("jetformbuilder.php" instead of "jet-form-builder.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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 detected79,018 lines of code in 1,128 files:
LanguageFilesBlank linesComment linesLines of code
PHP95115,2099,49053,484
JavaScript1001,8941,74216,890
JSON33005,075
Sass30118191,872
PO File17251,2131,597
CSS114247
SVG10027
Markdown110026

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.29
Average class complexity4.20
▷ Minimum class complexity1.00
▷ Maximum class complexity110.00
Average method complexity1.64
▷ Minimum method complexity1.00
▷ Maximum method complexity46.00
Code structure
Namespaces225
Interfaces53
Traits53
Classes773
▷ Abstract classes9111.77%
▷ Concrete classes68288.23%
▷ Final classes131.91%
Methods4,574
▷ Static methods3417.46%
▷ Public methods4,18391.45%
▷ Protected methods2555.57%
▷ Private methods1362.97%
Functions63
▷ Named functions1726.98%
▷ Anonymous functions4673.02%
Constants225
▷ Global constants73.11%
▷ Class constants21896.89%
▷ Public constants218100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
compatibility/jet-engine/assets/img/map-placeholder.png17.97KB10.46KB▼ 41.80%