79% one-off-emails-for-woocommerce

Code Review | One-Off Emails for WooCommerce

WordPress plugin One-Off Emails for WooCommerce scored79%from 54 tests.

About plugin

  • Plugin page: one-off-emails-fo...
  • Plugin version: 1.1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.8
  • WordPress version: 6.3.1
  • First release: Nov 6, 2019
  • Latest release: Sep 11, 2021
  • Number of updates: 8
  • Update frequency: every 85.0 days
  • Top authors: millermediadev (62.5%)MillerMediaNow (50%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /654 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.06ms] Passed 4 tests

Server-side resources used by One-Off Emails for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.85 ▲0.93
Dashboard /wp-admin3.34 ▲0.0443.99 ▼6.50
Posts /wp-admin/edit.php3.39 ▲0.0444.99 ▼1.25
Add New Post /wp-admin/post-new.php5.92 ▲0.0481.20 ▼9.40
Media Library /wp-admin/upload.php3.27 ▲0.0435.35 ▲1.10
One-Off Emails /wp-admin/admin.php?page=wooe-menu3.2937.76

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for One-Off Emails for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.53 ▼0.851.65 ▼0.2740.19 ▲0.62
Dashboard /wp-admin2,206 ▲515.86 ▲0.16100.29 ▼10.4739.61 ▼2.34
Posts /wp-admin/edit.php2,089 ▼32.01 ▼0.0039.36 ▼0.8536.17 ▲1.11
Add New Post /wp-admin/post-new.php1,542 ▼023.26 ▲5.08667.60 ▲34.8854.74 ▼3.61
Media Library /wp-admin/upload.php1,382 ▼34.20 ▲0.0098.54 ▲0.4343.13 ▼2.12
One-Off Emails /wp-admin/admin.php?page=wooe-menu1,5716.57139.3057.56

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 3× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/one-off-emails-for-woocommerce/classes/Settings.php
    • > /wp-content/plugins/one-off-emails-for-woocommerce/one-off-emails-for-woocommerce.php
    • > /wp-content/plugins/one-off-emails-for-woocommerce/classes/Plugin.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/one-off-emails-for-woocommerce/views/settings-view.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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
4 plugin tags: customer, email, woocommerce, email template

one-off-emails-for-woocommerce/one-off-emails-for-woocommerce.php Passed 13 tests

This is the main PHP file of "One-Off Emails for WooCommerce" version 1.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
82 characters long description:
Send a single email with custom content to anybody using the WooCommerce template.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin397 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP448101281
JavaScript1175103
CSS11013

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity13.50
▷ Minimum class complexity1.00
▷ Maximum class complexity26.00
Average method complexity3.33
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin