84% forms-gutenberg

Code Review | Gutenberg Forms - WordPress Form Builder Plugin

WordPress plugin Gutenberg Forms - WordPress Form Builder Plugin scored84%from 54 tests.

About plugin

  • Plugin page: forms-gutenberg
  • Plugin version: 2.2.9
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.1.1
  • WordPress version: 6.3.1
  • First release: Oct 17, 2018
  • Latest release: Jan 15, 2023
  • Number of updates: 61
  • Update frequency: every 25.4 days
  • Top authors: munirkamal (55.74%)essamamdani (26.23%)andylukak (9.84%)cristian.raiber (8.2%)giucu91 (4.92%)

Code review

54 tests

User reviews

30 reviews

Install metrics

600+ active /41,037 total downloads

Benchmarks

Plugin footprint 83% 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.06MB] [CPU: ▼13.45ms] Passed 4 tests

This is a short check of server-side resources used by Gutenberg Forms - WordPress Form Builder Plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.11 ▲0.6545.69 ▲5.22
Dashboard /wp-admin3.93 ▲0.5848.95 ▼10.25
Posts /wp-admin/edit.php3.98 ▲0.6253.29 ▲4.83
Add New Post /wp-admin/post-new.php3.81 ▼2.0840.16 ▼53.59
Media Library /wp-admin/upload.php3.85 ▲0.6241.59 ▲9.75
Dashboard /wp-admin/admin.php?page=gutenberg_forms3.9238.15
Entries /wp-admin/edit.php?post_type=cwp_gf_entries3.8937.37
Forms /wp-admin/edit.php?post_type=cwp_gf_forms3.8938.08

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 271 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Gutenberg Forms - WordPress Form Builder Plugin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,911 ▲16513.87 ▼0.488.57 ▲6.7938.96 ▼8.08
Dashboard /wp-admin2,231 ▲545.51 ▼0.1488.83 ▼2.9537.37 ▼0.86
Posts /wp-admin/edit.php2,142 ▲422.02 ▼0.0141.26 ▲4.5035.82 ▼1.79
Add New Post /wp-admin/post-new.php6,400 ▲4,86529.92 ▲11.45935.24 ▲312.4659.42 ▼8.09
Media Library /wp-admin/upload.php1,442 ▲514.20 ▼0.0095.18 ▼7.7546.20 ▲2.58
Dashboard /wp-admin/admin.php?page=gutenberg_forms9007.12167.9725.59
Extensions /wp-admin/admin.php?page=gutenberg_forms#/integrations8936.8771.8432.17
Settings /wp-admin/admin.php?page=gutenberg_forms#/settings8997.0862.4323.17
Entries /wp-admin/edit.php?post_type=cwp_gf_entries1,1081.9330.9427.00
Forms /wp-admin/edit.php?post_type=cwp_gf_forms1,0981.9732.4730.56

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 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
The SRP test was a success

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=gutenberg_forms#/settings
    • > Javascript (severe) in unknown
    /wp-content/plugins/forms-gutenberg//dist/admin/index.js?ver=1673801312 0:16157 Uncaught TypeError: Cannot read properties of undefined (reading 'get')

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Tags: You are using too many tags: 24 tag instead of maximum 10
You can look at the official readme.txt

forms-gutenberg/gutenberg-forms.php 92% from 13 tests

Analyzing the main PHP file in "Gutenberg Forms - WordPress Form Builder Plugin" version 2.2.9
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("forms-gutenberg.php" instead of "gutenberg-forms.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected24,457 lines of code in 266 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1992,47165017,891
Sass2040522,244
PHP175042151,922
JSON24201,427
CSS3117121812
HTML292129
Markdown115032

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity20.50
▷ Minimum class complexity1.00
▷ Maximum class complexity66.00
Average method complexity4.58
▷ Minimum method complexity1.00
▷ Maximum method complexity37.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods64
▷ Static methods1218.75%
▷ Public methods5179.69%
▷ Protected methods00.00%
▷ Private methods1320.31%
Functions30
▷ Named functions1033.33%
▷ Anonymous functions2066.67%
Constants10
▷ Global constants00.00%
▷ Class constants10100.00%
▷ Public constants330.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
PNG images were not found in this plugin