59% omnisend-connect

Code Review | Email Marketing for WooCommerce by Omnisend

WordPress plugin Email Marketing for WooCommerce by Omnisend scored59%from 54 tests.

About plugin

  • Plugin page: omnisend-connect
  • Plugin version: 1.13.10
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.4
  • WordPress version: 6.3.1
  • First release: Jul 27, 2018
  • Latest release: Nov 27, 2023
  • Number of updates: 179
  • Update frequency: every 10.9 days
  • Top authors: omnisend (100%)

Code review

54 tests

User reviews

100 reviews

Install metrics

7,000+ active /160,791 total downloads

Benchmarks

Plugin footprint 30% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.84MB] [CPU: ▼2.95ms] Passed 4 tests

Server-side resources used by Email Marketing for WooCommerce by Omnisend
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.31 ▲0.8441.68 ▲1.22
Dashboard /wp-admin4.14 ▲0.8053.95 ▼8.08
Posts /wp-admin/edit.php4.26 ▲0.9053.13 ▲6.05
Add New Post /wp-admin/post-new.php6.75 ▲0.8687.96 ▼10.99
Media Library /wp-admin/upload.php4.07 ▲0.8443.92 ▲6.73
General /wp-admin/admin.php?page=omnisend-woocommerce4.0337.50
Logs /wp-admin/admin.php?page=omnisend-logs4.0335.89

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 69 new files
Database: 1 new table, 7 new options
New tables
wp_omnisend_logs
New WordPress options
widget_theysaidso_widget
widget_recent-posts
omnisend_logEnabled
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Email Marketing for WooCommerce by Omnisend
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,861 ▲11414.74 ▲0.402.08 ▲0.3840.98 ▼4.03
Dashboard /wp-admin2,264 ▲895.69 ▲0.0193.94 ▼14.7442.38 ▼0.64
Posts /wp-admin/edit.php2,167 ▲672.06 ▲0.1042.52 ▲4.3636.53 ▼0.81
Add New Post /wp-admin/post-new.php1,564 ▲3823.23 ▼0.07651.98 ▼25.0845.47 ▼13.41
Media Library /wp-admin/upload.php1,469 ▲724.22 ▲0.0399.18 ▼4.2841.82 ▼0.05
General /wp-admin/admin.php?page=omnisend-woocommerce9222.0728.9657.10
Logs /wp-admin/admin.php?page=omnisend-logs9362.0826.6941.10

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Error in wp-content/plugins/omnisend-connect/omnisend-woocommerce.php+338
    Uncaught Error: Class 'Automattic\WooCommerce\Utilities\OrderUtil' not found in wp-content/plugins/omnisend-connect/omnisend-woocommerce.php:338
    Stack trace:
    #0 wp-includes/class-wp-hook.php(310): omnisend_uninstall()
    #1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #2 wp-includes/plugin.php(517): WP_Hook->do_action()
    #3 wp-admin/includes/plugin.php(1269): do_action()
    #4 wp-admin/includes/plugin.php(960): uninstall_plugin()
  • This plugin has failed uninstalling correctly, leaving 69 files (2.29MB) in the plugin directory
    • (new file) assets/fonts/roboto/Roboto-BoldItalic.ttf
    • (new file) assets/fonts/roboto/Roboto-Light.ttf
    • (new file) assets/fonts/roboto/Roboto-Black.ttf
    • (new file) assets/fonts/roboto/Roboto-BlackItalic.ttf
    • (new file) assets/fonts/roboto/Roboto-Bold.ttf
    • (new file) assets/fonts/roboto/Roboto-LightItalic.ttf
    • (new file) assets/fonts/roboto/Roboto-Medium.ttf
    • (new file) assets/fonts/roboto/Roboto-Italic.ttf
    • (new file) assets/css/omnisend-admin-style.css
    • (new file) assets/fonts/roboto/LICENSE.txt
    • ...
  • Zombie tables detected upon uninstall: 1 table
    • wp_omnisend_logs
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • recovery_mode_email_last_sent
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 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)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
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 shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

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: sms, woocommerce, newsletter, email marketing, marketing

omnisend-connect/omnisend-woocommerce.php 85% from 13 tests

The main file in "Email Marketing for WooCommerce by Omnisend" v. 1.13.10 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Requires at least: Required version must match the one declared in readme.txt ("4.7.0" instead of "6.0")
  • Main file name: Name the main plugin file the same as the plugin slug ("omnisend-connect.php" instead of "omnisend-woocommerce.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
Everything looks great! No dangerous files found in this plugin5,385 lines of code in 53 files:
LanguageFilesBlank linesComment linesLines of code
PHP438706464,572
CSS2951488
JavaScript4354302
SVG40023

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity20.71
▷ Minimum class complexity1.00
▷ Maximum class complexity85.00
Average method complexity4.23
▷ Minimum method complexity1.00
▷ Maximum method complexity72.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes28
▷ Abstract classes00.00%
▷ Concrete classes28100.00%
▷ Final classes00.00%
Methods171
▷ Static methods14785.96%
▷ Public methods13377.78%
▷ Protected methods00.00%
▷ Private methods3822.22%
Functions90
▷ Named functions8796.67%
▷ Anonymous functions33.33%
Constants62
▷ Global constants2337.10%
▷ Class constants3962.90%
▷ Public constants39100.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 PNG file occupies 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/connection.png70.16KB23.21KB▼ 66.92%