90% woo-send-email

Code Review | Woo Send Email

WordPress plugin Woo Send Email scored90%from 54 tests.

About plugin

  • Plugin page: woo-send-email
  • Plugin version: 0.3
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.2.2
  • WordPress version: 6.3.1
  • First release: Apr 26, 2017
  • Latest release: Jun 9, 2023
  • Number of updates: 15
  • Update frequency: every 149.0 days
  • Top authors: labdav (100%)Otto42 (13.33%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /959 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
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼7.34ms] Passed 4 tests

This is a short check of server-side resources used by Woo Send Email
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.49 ▼2.39
Dashboard /wp-admin3.34 ▼0.0049.47 ▼14.23
Posts /wp-admin/edit.php3.39 ▲0.0449.69 ▼6.26
Add New Post /wp-admin/post-new.php5.92 ▲0.0489.55 ▼6.46
Media Library /wp-admin/upload.php3.26 ▲0.0437.64 ▲1.06

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Woo Send Email: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲3514.27 ▼0.491.86 ▼0.1444.62 ▲1.66
Dashboard /wp-admin2,205 ▲315.61 ▲0.0185.65 ▼9.4542.93 ▲0.63
Posts /wp-admin/edit.php2,104 ▲12.06 ▲0.0334.70 ▼10.9834.47 ▼1.14
Add New Post /wp-admin/post-new.php1,561 ▲3023.37 ▲0.28663.18 ▼16.4359.58 ▲1.45
Media Library /wp-admin/upload.php1,407 ▲134.20 ▼0.00102.42 ▼0.3545.89 ▲4.40

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

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 Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: send custom email, product sku, ldav, send message, woocommerce...

woo-send-email/woo-send-email.php Passed 13 tests

The primary PHP file in "Woo Send Email" version 0.3 is used by WordPress to initiate all plugin functionality
91 characters long description:
Send custom email message to your WooCommerce customers directly from WC Orders Admin Page.

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
There were no executable files found in this plugin279 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP12317133
JavaScript15481
PO File1181865

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods112.50%
▷ Public methods787.50%
▷ Protected methods00.00%
▷ Private methods112.50%
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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected