84% connector-gravityforms-mailerlite

Code Review | Connector GravityForms and MailerLite

WordPress plugin Connector GravityForms and MailerLite scored84%from 54 tests.

About plugin

  • Plugin page: connector-gravity...
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9
  • WordPress version: 6.3.1
  • First release: Nov 22, 2017
  • Latest release: Mar 24, 2023
  • Number of updates: 41
  • Update frequency: every 47.5 days
  • Top authors: davidperez (80.49%)closemarketing (21.95%)

Code review

54 tests

User reviews

8 reviews

Install metrics

3,000+ active /17,292 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

Server-side resources used by Connector GravityForms and MailerLite
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.40 ▼4.25
Dashboard /wp-admin3.31 ▼0.0343.52 ▼17.59
Posts /wp-admin/edit.php3.36 ▲0.0147.47 ▼2.92
Add New Post /wp-admin/post-new.php5.89 ▲0.0181.18 ▼19.55
Media Library /wp-admin/upload.php3.23 ▲0.0135.49 ▼0.31

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Connector GravityForms and MailerLite
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.85 ▲0.471.58 ▼0.2040.62 ▲1.63
Dashboard /wp-admin2,206 ▲185.91 ▲0.06110.06 ▲5.9542.89 ▲1.56
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0039.93 ▲0.7035.18 ▼0.72
Add New Post /wp-admin/post-new.php1,523 ▲423.17 ▲0.25654.78 ▲22.4056.66 ▼0.72
Media Library /wp-admin/upload.php1,382 ▼34.20 ▼0.0495.73 ▼3.4641.10 ▼1.95

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

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× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'GFForms' not found in wp-content/plugins/connector-gravityforms-mailerlite/class-gf-cgfm.php:11

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: widgets, genesis

connector-gravityforms-mailerlite/connector-gravityforms-mailerlite.php 92% from 13 tests

The principal PHP file in "Connector GravityForms and MailerLite" v. 1.5 is loaded by WordPress automatically on each request
The following require your attention:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

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 plugin403 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2166379403

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity28.50
▷ Minimum class complexity2.00
▷ Maximum class complexity55.00
Average method complexity4.44
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods16
▷ Static methods212.50%
▷ Public methods1593.75%
▷ Protected methods00.00%
▷ Private methods16.25%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin