84% field-helper-for-gravity-forms

Code Review | Field Helper for Gravity Forms

WordPress plugin Field Helper for Gravity Forms scored84%from 54 tests.

About plugin

  • Plugin page: field-helper-for-...
  • Plugin version: 1.10.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.2.2
  • WordPress version: 6.3.1
  • First release: Jul 1, 2020
  • Latest release: Nov 16, 2023
  • Number of updates: 29
  • Update frequency: every 42.7 days
  • Top authors: brilliantplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /2,077 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

This is a short check of server-side resources used by Field Helper for Gravity Forms
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.22 ▼3.09
Dashboard /wp-admin3.31 ▲0.0142.23 ▼9.29
Posts /wp-admin/edit.php3.36 ▲0.0045.06 ▼2.25
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.35 ▼24.01
Media Library /wp-admin/upload.php3.23 ▲0.0034.64 ▲1.57

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Field Helper for Gravity Forms
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.14 ▼0.151.78 ▼0.0345.11 ▲0.72
Dashboard /wp-admin2,195 ▲185.56 ▼0.0990.72 ▼10.0639.76 ▼3.67
Posts /wp-admin/edit.php2,097 ▼81.94 ▼0.0239.39 ▼1.6735.85 ▲0.24
Add New Post /wp-admin/post-new.php1,526 ▼323.05 ▼0.35607.86 ▼13.8754.30 ▲1.26
Media Library /wp-admin/upload.php1,394 ▼64.19 ▼0.0196.87 ▼14.3143.46 ▼2.99

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/field-helper-for-gravity-forms/field-helper-for-gravity-forms.php:38

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: api, forms, filemaker, gravity forms, database...

field-helper-for-gravity-forms/field-helper-for-gravity-forms.php 85% from 13 tests

Analyzing the main PHP file in "Field Helper for Gravity Forms" version 1.10.1
It is important to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • 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 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin950 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP7255913909
JavaScript281636
CSS1005

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity13.86
▷ Minimum class complexity3.00
▷ Maximum class complexity37.00
Average method complexity2.84
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods49
▷ Static methods1122.45%
▷ Public methods4591.84%
▷ Protected methods00.00%
▷ Private methods48.16%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin