90% disable-gravity-forms-fields

Code Review | Disable Gravity Forms Fields

WordPress plugin Disable Gravity Forms Fields scored90%from 54 tests.

About plugin

  • Plugin page: disable-gravity-f...
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 25, 2014
  • Latest release: Dec 9, 2018
  • Number of updates: 17
  • Update frequency: every 97.6 days
  • Top authors: EngageWP (94.12%)renventura (11.76%)

Code review

54 tests

User reviews

10 reviews

Install metrics

1,000+ active /12,123 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Disable Gravity Forms Fields
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.88 ▲1.02
Dashboard /wp-admin3.31 ▲0.0049.76 ▼3.23
Posts /wp-admin/edit.php3.36 ▲0.0043.86 ▼0.43
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.99 ▼12.65
Media Library /wp-admin/upload.php3.23 ▲0.0036.02 ▼0.48

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Disable Gravity Forms Fields
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,881 ▲13513.62 ▼0.758.30 ▲6.6544.60 ▲6.51
Dashboard /wp-admin2,209 ▲185.83 ▼0.0797.11 ▼1.4941.84 ▲1.88
Posts /wp-admin/edit.php2,092 ▲32.06 ▲0.0134.74 ▼2.4931.74 ▼4.89
Add New Post /wp-admin/post-new.php1,533 ▲123.47 ▲0.32667.20 ▲16.6357.54 ▲6.51
Media Library /wp-admin/upload.php1,391 ▲34.31 ▲0.1492.92 ▼11.8245.36 ▲0.70

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 96% 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
1 plugin tags: gravity forms

disable-gravity-forms-fields/disable-gf-fields.php 92% from 13 tests

"Disable Gravity Forms Fields" version 1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("disable-gravity-forms-fields.php" instead of "disable-gf-fields.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
Success! There were no dangerous files found in this plugin12 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP17328
JavaScript1004

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
There are no PNG files in this plugin