84% module-for-gravity-forms-in-divi-builder

Code Review | Module for Gravity Forms in Divi Builder

WordPress plugin Module for Gravity Forms in Divi Builder scored84%from 54 tests.

About plugin

  • Plugin page: module-for-gravit...
  • Plugin version: 1.01
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.3.2
  • WordPress version: 6.3.1
  • First release: Jan 24, 2020
  • Latest release: Feb 24, 2020
  • Number of updates: 5
  • Update frequency: every 6.6 days
  • Top authors: jwalczak23 (80%)jhorowitz (40%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /646 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.00MB] [CPU: ▼5.50ms] Passed 4 tests

Server-side resources used by Module for Gravity Forms in Divi Builder
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.00 ▲1.77
Dashboard /wp-admin3.31 ▼0.0347.98 ▼11.14
Posts /wp-admin/edit.php3.36 ▲0.0147.59 ▲1.30
Add New Post /wp-admin/post-new.php5.89 ▲0.0181.38 ▼10.71
Media Library /wp-admin/upload.php3.24 ▲0.0132.82 ▼1.43

Server storage [IO: ▲0.05MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Module for Gravity Forms in Divi Builder
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.46 ▼0.071.75 ▲0.2044.50 ▲3.51
Dashboard /wp-admin2,198 ▲215.61 ▲0.0882.68 ▼2.8939.39 ▼6.47
Posts /wp-admin/edit.php2,100 ▼01.94 ▼0.0340.31 ▲3.7435.28 ▼2.67
Add New Post /wp-admin/post-new.php1,528 ▼023.35 ▲0.21639.79 ▼22.9049.42 ▼4.01
Media Library /wp-admin/upload.php1,400 ▼04.26 ▲0.0392.75 ▼4.3941.88 ▼0.90

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/module-for-gravity-forms-in-divi-builder/includes/modules/GravityForm/GravityForm.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'DiviExtension' not found in wp-content/plugins/module-for-gravity-forms-in-divi-builder/includes/GravityformsDiviBuilderModule.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/module-for-gravity-forms-in-divi-builder/plugin.php:37

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: gravityforms divi, style gravityforms, gravityforms, gravity forms divi, gravity forms...

module-for-gravity-forms-in-divi-builder/plugin.php 85% from 13 tests

The main file in "Module for Gravity Forms in Divi Builder" v. 1.01 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("module-for-gravity-forms-in-divi-builder.php" instead of "plugin.php")
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin1,009 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP46876861
PO File15973146
JavaScript2002

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity5.50
▷ Minimum class complexity1.00
▷ Maximum class complexity10.00
Average method complexity1.82
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin