89% omnisend-for-gravity-forms-add-on

Code Review | Omnisend for Gravity Forms Add-On

WordPress plugin Omnisend for Gravity Forms Add-On scored89%from 54 tests.

About plugin

  • Plugin page: omnisend-for-grav...
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.0-6.4
  • WordPress version: 6.3.1
  • First release: Nov 21, 2023
  • Latest release: Nov 28, 2023
  • Number of updates: 6
  • Update frequency: every 1.2 days
  • Top authors: omnisend (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /77 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Omnisend for Gravity Forms Add-On
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.75 ▼8.39
Dashboard /wp-admin3.31 ▲0.0144.21 ▼8.34
Posts /wp-admin/edit.php3.36 ▲0.0149.04 ▲4.58
Add New Post /wp-admin/post-new.php5.89 ▲0.0191.08 ▼7.09
Media Library /wp-admin/upload.php3.23 ▲0.0032.12 ▼1.96

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Omnisend for Gravity Forms Add-On: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.22 ▼0.101.57 ▼0.2536.65 ▼6.58
Dashboard /wp-admin2,195 ▲185.56 ▼0.1191.82 ▲3.6640.04 ▼0.74
Posts /wp-admin/edit.php2,100 ▼02.00 ▲0.0438.76 ▲1.2135.57 ▼0.57
Add New Post /wp-admin/post-new.php1,526 ▼1023.68 ▲0.27590.53 ▼46.9259.42 ▲7.35
Media Library /wp-admin/upload.php1,400 ▲34.18 ▼0.0193.01 ▼7.1841.81 ▼0.98

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files

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 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: gravity forms, form, web tracking, subscriber collection, email marketing

omnisend-for-gravity-forms-add-on/class-omnisend-addon-bootstrap.php 85% from 13 tests

The principal PHP file in "Omnisend for Gravity Forms Add-On" v. 1.0.2 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 144 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("omnisend-for-gravity-forms-add-on.php" instead of "class-omnisend-addon-bootstrap.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin397 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP26737383
SVG1019
JavaScript1005

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity20.00
▷ Minimum class complexity2.00
▷ Maximum class complexity38.00
Average method complexity4.36
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods216.67%
▷ Public methods975.00%
▷ Protected methods00.00%
▷ Private methods325.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.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