84% woo-order-action-email

Code Review | Woocommerce order action email

WordPress plugin Woocommerce order action email scored 84% from 54 tests.

About plugin

  • Plugin page: woo-order-action-...
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8
  • WordPress version: 5.8.1
  • First release: Nov 11, 2017
  • Latest release: Aug 23, 2021
  • Number of updates: 5
  • Update frequency: every 276.2 days
  • Top authors: anasbinmukim (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 673 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼134.58ms] Passed 4 tests

Analyzing server-side resources used by Woocommerce order action email
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1242.42 ▲21.35
Dashboard /wp-admin3.06 ▲0.0151.80 ▲6.99
Posts /wp-admin/edit.php3.15 ▲0.0442.39 ▲2.36
Add New Post /wp-admin/post-new.php5.43 ▼0.0091.87 ▼540.36
Media Library /wp-admin/upload.php3.01 ▼0.0030.10 ▼7.30

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 1 new option
New WordPress options
order_action_email

Browser metrics Passed 4 tests

This is an overview of browser requirements for Woocommerce order action email
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.81 ▼0.138.55 ▲1.0954.14 ▲8.63
Dashboard /wp-admin2,973 ▲435.99 ▲0.05131.66 ▼17.76109.10 ▼2.38
Posts /wp-admin/edit.php2,736 ▼32.68 ▼0.0161.51 ▼5.8186.64 ▼1.96
Add New Post /wp-admin/post-new.php1,683 ▲1318.78 ▼0.36370.94 ▼1.72104.55 ▼3.45
Media Library /wp-admin/upload.php1,807 ▼35.03 ▲0.01148.23 ▼8.92109.81 ▼7.78

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 1 option
    • order_action_email

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-order-action-email/order-action-email.php:2

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)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: order emails, order action, woocommerce

woo-order-action-email/woo-order-action-email.php 92% from 13 tests

The main file in "Woocommerce order action email" v. 2.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains

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
Good job! No executable or dangerous file extensions detected190 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP25567190

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity2.38
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin