84% emailoctopus

Code Review | Email Marketing by EmailOctopus

WordPress plugin Email Marketing by EmailOctopus scored84%from 54 tests.

About plugin

  • Plugin page: emailoctopus
  • Plugin version: 3.1.5
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Oct 9, 2015
  • Latest release: Aug 14, 2023
  • Number of updates: 119
  • Update frequency: every 24.1 days
  • Top authors: EmailOctopus (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

1,000+ active /23,585 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.29MB] [CPU: ▼4.70ms] Passed 4 tests

This is a short check of server-side resources used by Email Marketing by EmailOctopus
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.2440.98 ▲0.04
Dashboard /wp-admin3.65 ▲0.3447.34 ▼12.92
Posts /wp-admin/edit.php3.70 ▲0.3451.38 ▼1.71
Add New Post /wp-admin/post-new.php6.20 ▲0.3191.78 ▼4.19
Media Library /wp-admin/upload.php3.51 ▲0.2739.05 ▲1.81
Forms /wp-admin/admin.php?page=emailoctopus-forms3.5035.57
Settings /wp-admin/admin.php?page=emailoctopus-settings3.4834.42
Form Display Settings /wp-admin/admin.php?page=emailoctopus-form3.5336.17

Server storage [IO: ▲0.23MB] [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: 64 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Email Marketing by EmailOctopus
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,887 ▲15213.55 ▼0.901.93 ▲0.0938.67 ▼5.66
Dashboard /wp-admin2,268 ▲945.07 ▼0.83107.25 ▲5.2940.88 ▼5.13
Posts /wp-admin/edit.php2,154 ▲652.07 ▲0.0637.03 ▼5.3536.81 ▲2.98
Add New Post /wp-admin/post-new.php1,496 ▼2718.37 ▼4.84706.31 ▲25.9851.00 ▼24.62
Media Library /wp-admin/upload.php1,451 ▲604.34 ▲0.1498.27 ▲0.6343.81 ▲1.44
Forms /wp-admin/admin.php?page=emailoctopus-forms9122.0725.0931.96
Settings /wp-admin/admin.php?page=emailoctopus-settings9252.0925.2628.75
Form Display Settings /wp-admin/admin.php?page=emailoctopus-form8892.0725.9727.58

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

Smoke tests 75% from 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 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
Almost there! Just fix the following items
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/emailoctopus/public/views/component-welcome.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'EmailOctopus\\Ajax\\Ajax_Handler' not found in wp-content/plugins/emailoctopus/src/Ajax/Load_Forms.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'EmailOctopus\\Ajax\\Ajax_Handler' not found in wp-content/plugins/emailoctopus/src/Ajax/Update_Settings.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 17 tag instead of maximum 10
You can look at the official readme.txt

emailoctopus/emailoctopus.php Passed 13 tests

The primary PHP file in "Email Marketing by EmailOctopus" version 3.1.5 is used by WordPress to initiate all plugin functionality
91 characters long description:
Use this official plugin to display EmailOctopus subscription forms on your WordPress site.

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
Good job! No executable or dangerous file extensions detected3,552 lines of code in 61 files:
LanguageFilesBlank linesComment linesLines of code
PHP355359052,483
JavaScript147041474
CSS47822414
JSON400116
SVG30041
Sass11124

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity15.44
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.90
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes16
▷ Abstract classes16.25%
▷ Concrete classes1593.75%
▷ Final classes16.67%
Methods126
▷ Static methods3930.95%
▷ Public methods12196.03%
▷ Protected methods10.79%
▷ Private methods43.17%
Functions9
▷ Named functions111.11%
▷ Anonymous functions888.89%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin