84% gf-sendinblue

Code Review | Add on for Sendinblue(brevo) on Gravity Forms

WordPress plugin Add on for Sendinblue(brevo) on Gravity Forms scored84%from 54 tests.

About plugin

  • Plugin page: gf-sendinblue
  • Plugin version: 1.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.2.2
  • WordPress version: 6.3.1
  • First release: Jun 28, 2022
  • Latest release: Jun 5, 2023
  • Number of updates: 6
  • Update frequency: every 57.0 days
  • Top authors: muzammilmotiwala20 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /586 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

Server-side resources used by Add on for Sendinblue(brevo) on Gravity Forms
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.62 ▲2.32
Dashboard /wp-admin3.31 ▼0.0344.82 ▼14.70
Posts /wp-admin/edit.php3.36 ▲0.0144.27 ▼6.56
Add New Post /wp-admin/post-new.php5.89 ▲0.0179.01 ▼22.71
Media Library /wp-admin/upload.php3.23 ▲0.0030.93 ▼0.87

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Add on for Sendinblue(brevo) on Gravity Forms
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.45 ▼0.181.72 ▲0.0344.44 ▲3.79
Dashboard /wp-admin2,195 ▲185.65 ▲0.0490.37 ▲4.8239.32 ▼5.31
Posts /wp-admin/edit.php2,100 ▼32.02 ▲0.0637.42 ▼1.2834.88 ▼8.97
Add New Post /wp-admin/post-new.php1,526 ▼023.32 ▲0.17653.72 ▼26.2261.04 ▲7.08
Media Library /wp-admin/upload.php1,400 ▼04.21 ▲0.03103.68 ▲10.4346.10 ▲2.91

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 does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

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)
Good news, no errors were detected

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
The following issues need your attention
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gf-sendinblue/sendinblue-add-on-gf.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'GFForms' not found in wp-content/plugins/gf-sendinblue/sendinblue-functions.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 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
8 plugin tags: gravity form, wordpress plugin, sendinblue, sendinblue add on, add-on...

gf-sendinblue/sendinblue-add-on-gf.php 92% from 13 tests

The main PHP file in "Add on for Sendinblue(brevo) on Gravity Forms" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("gf-sendinblue.php" instead of "sendinblue-add-on-gf.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
Good job! No executable or dangerous file extensions detected154 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP21012154

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity10.00
▷ Minimum class complexity2.00
▷ Maximum class complexity18.00
Average method complexity4.60
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods5
▷ Static methods240.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.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

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin