84% gragrid

Code Review | Gragrid: Gravity Forms + SendGrid

WordPress plugin Gragrid: Gravity Forms + SendGrid scored84%from 54 tests.

About plugin

  • Plugin page: gragrid
  • Plugin version: 2.2.2
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.0
  • WordPress version: 6.3.1
  • First release: Sep 15, 2020
  • Latest release: Jun 11, 2022
  • Number of updates: 12
  • Update frequency: every 52.8 days
  • Top authors: vlass (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /1,607 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: ▼1.15ms] Passed 4 tests

An overview of server-side resources used by Gragrid: Gravity Forms + SendGrid
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0134.01 ▼8.84
Dashboard /wp-admin3.31 ▲0.0046.09 ▼3.10
Posts /wp-admin/edit.php3.36 ▲0.0049.00 ▲5.28
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.47 ▲4.17
Media Library /wp-admin/upload.php3.23 ▲0.0034.55 ▲3.19

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: 7 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Gragrid: Gravity Forms + SendGrid
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.60 ▼1.011.56 ▼0.6544.21 ▼5.16
Dashboard /wp-admin2,209 ▲215.80 ▲0.9894.13 ▼12.5036.90 ▼2.63
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0038.84 ▲3.8633.58 ▼3.88
Add New Post /wp-admin/post-new.php1,537 ▲323.35 ▲0.25647.90 ▼7.3045.41 ▼12.98
Media Library /wp-admin/upload.php1,391 ▲64.20 ▲0.0094.99 ▼6.4141.91 ▼2.24

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'GFForms' not found in wp-content/plugins/gragrid/class-gragrid.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 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
5 plugin tags: forms, emails, sendgrid, gravity forms, subscribers

gragrid/gragrid.php Passed 13 tests

The primary PHP file in "Gragrid: Gravity Forms + SendGrid" version 2.2.2 is used by WordPress to initiate all plugin functionality
122 characters long description:
Integrates Gravity Forms with SendGrid, allowing form submissions to be automatically sent to your SendGrid contact lists.

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
Good job! No executable or dangerous file extensions detected463 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP5116413463

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity13.00
▷ Minimum class complexity1.00
▷ Maximum class complexity24.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits1
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods24
▷ Static methods28.33%
▷ Public methods2187.50%
▷ Protected methods00.00%
▷ Private methods312.50%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin