90% woo-bulk-email

Code Review | WooCommerce Bulk Receipt

WordPress plugin WooCommerce Bulk Receipt scored90%from 54 tests.

About plugin

  • Plugin page: woo-bulk-email
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.8.3
  • WordPress version: 6.3.1
  • First release: Nov 11, 2017
  • Latest release: Nov 11, 2017
  • Number of updates: 18
  • Update frequency: every 0.2 days
  • Top authors: Jaydeep Rami (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,119 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.42ms] Passed 4 tests

An overview of server-side resources used by WooCommerce Bulk Receipt
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0052.42 ▲8.55
Dashboard /wp-admin3.31 ▲0.0052.23 ▼2.71
Posts /wp-admin/edit.php3.36 ▲0.0050.00 ▼7.11
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.00 ▼8.36
Media Library /wp-admin/upload.php3.23 ▲0.0041.36 ▲4.51

Server storage [IO: ▲0.03MB] [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
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

WooCommerce Bulk Receipt: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲7913.63 ▼1.131.99 ▲0.3251.02 ▲4.19
Dashboard /wp-admin2,224 ▲215.90 ▲0.88102.33 ▼10.1137.51 ▼7.91
Posts /wp-admin/edit.php2,100 ▼02.02 ▼0.0335.49 ▼5.1237.06 ▲0.94
Add New Post /wp-admin/post-new.php1,545 ▼023.19 ▲0.03622.89 ▼58.4258.51 ▼5.89
Media Library /wp-admin/upload.php1,403 ▲64.19 ▼0.05113.08 ▲15.4448.56 ▲1.72

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

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Donate link: Please fix this invalid URI: ""
The official readme.txt might help

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

The main PHP file in "WooCommerce Bulk Receipt" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
96 characters long description:
WooCommerce Bulk Email plugin allowed an admin to send bulk confirmation email to the customers.

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 detected176 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP476239176

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity16.00
▷ Minimum class complexity9.00
▷ Maximum class complexity23.00
Average method complexity2.88
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods16
▷ Static methods212.50%
▷ Public methods1275.00%
▷ Protected methods00.00%
▷ Private methods425.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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
PNG images were not found in this plugin