83% engagebay-gravity-forms

Code Review | EngageBay for Gravity Forms

WordPress plugin EngageBay for Gravity Forms scored83%from 54 tests.

About plugin

  • Plugin page: engagebay-gravity...
  • Plugin version: 2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Apr 22, 2019
  • Latest release: Nov 17, 2023
  • Number of updates: 22
  • Update frequency: every 76.1 days
  • Top authors: engagebay (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,234 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.08MB] [CPU: ▼3.97ms] Passed 4 tests

Server-side resources used by EngageBay for Gravity Forms
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0838.61 ▼0.28
Dashboard /wp-admin3.39 ▲0.0847.18 ▼0.98
Posts /wp-admin/edit.php3.50 ▲0.1449.21 ▼0.58
Add New Post /wp-admin/post-new.php5.97 ▲0.0892.11 ▼14.04
Media Library /wp-admin/upload.php3.31 ▲0.0834.87 ▲1.37

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by EngageBay for Gravity Forms
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.20 ▼0.041.73 ▲0.0138.26 ▼5.85
Dashboard /wp-admin2,195 ▲155.60 ▼0.0791.84 ▼0.2436.53 ▼11.21
Posts /wp-admin/edit.php2,100 ▼01.96 ▼0.0138.86 ▼1.4235.96 ▼1.03
Add New Post /wp-admin/post-new.php1,526 ▼023.59 ▲0.40669.19 ▼77.9749.25 ▼6.06
Media Library /wp-admin/upload.php1,400 ▼04.25 ▼0.03106.54 ▼5.5343.09 ▼3.23

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/engagebay-gravity-forms/engagebay-gravityforms.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 29 tag instead of maximum 10
Please take inspiration from this readme.txt

engagebay-gravity-forms/engagebay-gravityforms.php 85% from 13 tests

The main file in "EngageBay for Gravity Forms" v. 2.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Requires at least: Required version does not match the one declared in readme.txt ("3.7" instead of "4.0")
  • Main file name: The principal plugin file should be the same as the plugin slug ("engagebay-gravity-forms.php" instead of "engagebay-gravityforms.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin571 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP17481562
JavaScript1009

PHP code Passed 2 tests

A short review 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.50
Average class complexity66.00
▷ Minimum class complexity66.00
▷ Maximum class complexity66.00
Average method complexity4.42
▷ Minimum method complexity1.00
▷ Maximum method complexity49.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods19
▷ Static methods15.26%
▷ Public methods1789.47%
▷ Protected methods00.00%
▷ Private methods210.53%
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

All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/engagebay_logo.png4.83KB5.17KB0.00%