84% gravity-fieldset-for-gravity-forms

Code Review | Gravity Fieldset for Gravity Forms

WordPress plugin Gravity Fieldset for Gravity Forms scored84%from 54 tests.

About plugin

  • Plugin page: gravity-fieldset-...
  • Plugin version: 0.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.7
  • WordPress version: 6.3.1
  • First release: Jan 22, 2016
  • Latest release: Dec 8, 2016
  • Number of updates: 11
  • Update frequency: every 29.6 days
  • Top authors: basvandenwijngaard (54.55%)HarroH (54.55%)

Code review

54 tests

User reviews

2 reviews

Install metrics

1,000+ active /16,360 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.03ms] Passed 4 tests

A check of server-side resources used by Gravity Fieldset for Gravity Forms
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.03 ▼3.34
Dashboard /wp-admin3.34 ▲0.0349.21 ▼0.20
Posts /wp-admin/edit.php3.39 ▲0.0345.94 ▼1.60
Add New Post /wp-admin/post-new.php5.92 ▲0.0378.10 ▼8.33
Media Library /wp-admin/upload.php3.26 ▲0.0335.09 ▼2.84

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Gravity Fieldset for Gravity Forms
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲7113.62 ▼0.784.69 ▲2.9241.50 ▼2.94
Dashboard /wp-admin2,223 ▲355.75 ▼0.1194.91 ▼11.8642.39 ▲4.20
Posts /wp-admin/edit.php2,109 ▲231.97 ▼0.0639.77 ▲3.5433.69 ▲2.29
Add New Post /wp-admin/post-new.php1,552 ▲3823.26 ▲5.61660.60 ▼27.0659.09 ▲9.64
Media Library /wp-admin/upload.php1,402 ▲144.21 ▲0.02102.27 ▲1.0447.11 ▲2.37

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_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

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 no errors were found, this is by no means 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 items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/gravity-fieldset-for-gravity-forms/js/raak_fieldset_admin.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gravity-fieldset-for-gravity-forms/gravity-fieldset-for-gravity-forms.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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
5 plugin tags: wrapper, forms, fieldset, gravity forms styling, gravity forms

gravity-fieldset-for-gravity-forms/gravity-fieldset-for-gravity-forms.php Passed 13 tests

The main file in "Gravity Fieldset for Gravity Forms" v. 0.2.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
117 characters long description:
Extends the Gravity Forms plugin - adding a fieldset open and close field that can be used to create 'real' sections.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin292 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP217065174
JavaScript152055
PO File1213744
CSS114019

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity28.00
▷ Minimum class complexity28.00
▷ Maximum class complexity28.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods1083.33%
▷ Public methods1191.67%
▷ Protected methods00.00%
▷ Private methods18.33%
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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin