84% add-on-gravity-forms-bento

Code Review | Add-on for Gravity Forms + Bento

WordPress plugin Add-on for Gravity Forms + Bento scored84%from 54 tests.

About plugin

  • Plugin page: add-on-gravity-fo...
  • Plugin version: 2.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.0.1
  • WordPress version: 6.3.1
  • First release: Apr 19, 2022
  • Latest release: Jul 27, 2022
  • Number of updates: 3
  • Update frequency: every 34.0 days
  • Top authors: madjax (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /623 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 successfully, without throwing any errors or notices

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

A check of server-side resources used by Add-on for Gravity Forms + Bento
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0043.54 ▲0.64
Dashboard /wp-admin3.31 ▲0.0044.32 ▼4.84
Posts /wp-admin/edit.php3.36 ▲0.0044.17 ▼0.66
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.20 ▼12.65
Media Library /wp-admin/upload.php3.23 ▲0.0032.48 ▼0.52

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Add-on for Gravity Forms + Bento
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7914.48 ▲0.181.91 ▲0.1540.90 ▼2.83
Dashboard /wp-admin2,209 ▲245.90 ▲0.9999.02 ▼6.2738.80 ▲2.61
Posts /wp-admin/edit.php2,089 ▼32.00 ▼0.0238.69 ▼0.8833.33 ▼3.16
Add New Post /wp-admin/post-new.php1,528 ▲1423.00 ▲5.52644.47 ▲18.8056.51 ▲1.34
Media Library /wp-admin/upload.php1,382 ▼94.32 ▲0.0897.89 ▼6.2541.32 ▼1.76

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Please fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/add-on-gravity-forms-bento/gf-bento-addon.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'GFForms' not found in wp-content/plugins/add-on-gravity-forms-bento/class-gf-bento-addon.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: bento, email marketing, gravity forms

add-on-gravity-forms-bento/gf-bento-addon.php 92% from 13 tests

The principal PHP file in "Add-on for Gravity Forms + Bento" v. 2.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("add-on-gravity-forms-bento.php" instead of "gf-bento-addon.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin247 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2718247

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity11.00
▷ Minimum class complexity2.00
▷ Maximum class complexity20.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods220.00%
▷ Public methods990.00%
▷ Protected methods00.00%
▷ Private methods110.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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