74% order-emails-log-for-woocommerce

Code Review | WooCommerce Order Emails Log

WordPress plugin WooCommerce Order Emails Log scored74%from 54 tests.

About plugin

  • Plugin page: order-emails-log-...
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.5
  • WordPress version: 6.3.1
  • First release: Feb 7, 2017
  • Latest release: Sep 18, 2020
  • Number of updates: 15
  • Update frequency: every 87.9 days
  • Top authors: raiserweb (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

600+ active /5,440 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

An overview of server-side resources used by WooCommerce Order Emails Log
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.35 ▼0.65
Dashboard /wp-admin3.34 ▲0.0346.33 ▼3.18
Posts /wp-admin/edit.php3.45 ▲0.0950.64 ▼1.01
Add New Post /wp-admin/post-new.php5.92 ▲0.0397.05 ▼6.23
Media Library /wp-admin/upload.php3.26 ▲0.0335.22 ▼0.85

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 26 new files
Database: 1 new table, 6 new options
New tables
wp_woel_woocommerce_order_emails_log
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WooCommerce Order Emails Log
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.35 ▼1.051.82 ▼0.0640.71 ▼6.92
Dashboard /wp-admin2,203 ▲125.81 ▼0.0598.19 ▼5.7939.09 ▼4.73
Posts /wp-admin/edit.php2,089 ▼02.02 ▼0.0140.97 ▲0.2736.23 ▲0.83
Add New Post /wp-admin/post-new.php1,514 ▼2617.65 ▼5.68660.05 ▼6.0149.47 ▼0.76
Media Library /wp-admin/upload.php1,388 ▲34.21 ▼0.1098.48 ▼5.9845.03 ▲1.25

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie tables detected upon uninstall: 1 table
    • wp_woel_woocommerce_order_emails_log
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Integration' not found in wp-content/plugins/order-emails-log-for-woocommerce/settings.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WOEL_Email_Log' not found in wp-content/plugins/order-emails-log-for-woocommerce/admin/emails-sent-meta-box.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'PluginUpdateChecker_3_2' not found in wp-content/plugins/order-emails-log-for-woocommerce/plugin-update-checker/github-checker.php:5
    • > PHP Notice
      Undefined index: post in wp-content/plugins/order-emails-log-for-woocommerce/admin/emails-sent-meta-box.php on line 5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: woocommerce email log, woocommerce, email log

order-emails-log-for-woocommerce/order-emails-log-for-woocommerce.php 92% from 13 tests

The main PHP file in "WooCommerce Order Emails Log" ver. 1.4 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin4,315 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP111,1511,0424,008
PO File42122112
Markdown119088
CSS112149
JavaScript18539
JSON10019

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity40.73
▷ Minimum class complexity1.00
▷ Maximum class complexity159.00
Average method complexity3.76
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes00.00%
Methods216
▷ Static methods156.94%
▷ Public methods9443.52%
▷ Protected methods10146.76%
▷ Private methods219.72%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin