84% multiple-gf-form-on-single-page

Code Review | Gravity Forms: Multiple Form Instances Add On

WordPress plugin Gravity Forms: Multiple Form Instances Add On scored 84% from 54 tests.

About plugin

  • Plugin page: multiple-gf-form-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.4.1
  • WordPress version: 6.3.1
  • First release: Sep 24, 2019
  • Latest release: Mar 27, 2021
  • Number of updates: 17
  • Update frequency: every 32.4 days
  • Top authors: nikunj8866 (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

1,000+ active / 10,621 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 gracefully, with no errors

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

Server-side resources used by Gravity Forms: Multiple Form Instances Add On
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.10 ▼9.75
Dashboard /wp-admin3.31 ▲0.0144.97 ▼1.56
Posts /wp-admin/edit.php3.36 ▲0.0047.55 ▼0.94
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.68 ▼3.95
Media Library /wp-admin/upload.php3.23 ▲0.0032.99 ▼1.41

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Gravity Forms: Multiple Form Instances Add On
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.24 ▼1.341.64 ▼0.1738.79 ▼5.50
Dashboard /wp-admin2,203 ▲125.79 ▼0.12100.10 ▼2.7339.52 ▼3.66
Posts /wp-admin/edit.php2,092 ▲31.99 ▼0.0038.44 ▼4.7933.51 ▼2.13
Add New Post /wp-admin/post-new.php1,528 ▼118.56 ▲0.28595.87 ▼55.8956.90 ▼3.30
Media Library /wp-admin/upload.php1,388 ▲34.20 ▼0.0692.89 ▼6.6944.35 ▲2.54

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/multiple-gf-form-on-single-page/gf-multiple-form-instances.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: gravity, gravity forms, form, multiple

multiple-gf-form-on-single-page/gf-multiple-form-instances.php 92% from 13 tests

The main file in "Gravity Forms: Multiple Form Instances Add On" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("multiple-gf-form-on-single-page.php" instead of "gf-multiple-form-instances.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin72 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1103872

PHP code Passed 2 tests

Analyzing 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.20
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.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
No PNG images were found in this plugin