84% notify-email-customers-product-update

Code Review | Bulk Email Notify Customers on Product Update for WooCommerce

WordPress plugin Bulk Email Notify Customers on Product Update for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: notify-email-cust...
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.2-6.2
  • WordPress version: 6.3.1
  • First release: Feb 3, 2021
  • Latest release: Jul 13, 2023
  • Number of updates: 9
  • Update frequency: every 98.9 days
  • Top authors: taz_bambu (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

70+ active /820 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.54MB] [CPU: ▼16.70ms] Passed 4 tests

Analyzing server-side resources used by Bulk Email Notify Customers on Product Update for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1439.71 ▲1.86
Dashboard /wp-admin3.45 ▲0.1545.45 ▼6.56
Posts /wp-admin/edit.php3.57 ▲0.2153.17 ▲6.30
Add New Post /wp-admin/post-new.php3.30 ▼2.5937.09 ▼63.58
Media Library /wp-admin/upload.php3.38 ▲0.1537.08 ▲1.48
Notify Customers /wp-admin/edit.php?post_type=product&page=notify-woo-customers3.1423.52
Notify Customers /wp-admin/admin.php?page=notify-woo-customers3.3535.28

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
not_woo_customers_enable
not_woo_customers_post_types
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Bulk Email Notify Customers on Product Update for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.29 ▼0.061.67 ▲0.0644.00 ▲3.73
Dashboard /wp-admin2,211 ▲345.66 ▲0.1392.55 ▲5.4936.70 ▼5.17
Posts /wp-admin/edit.php2,116 ▲162.19 ▲0.1741.29 ▲5.4336.63 ▲2.00
Add New Post /wp-admin/post-new.php1,540 ▲1422.89 ▼0.27668.20 ▼31.1254.05 ▲1.55
Media Library /wp-admin/upload.php1,419 ▲164.29 ▼0.0995.31 ▼6.3843.67 ▲0.59
Notify Customers /wp-admin/edit.php?post_type=product&page=notify-woo-customers280.420.083.56
Notify Customers /wp-admin/admin.php?page=notify-woo-customers8961.7725.6523.11

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 8 options
    • not_woo_customers_post_types
    • db_upgraded
    • not_woo_customers_enable
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

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
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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/edit.php?post_type=product&page=notify-woo-customers
    • > Network (severe)
    wp-admin/edit.php?post_type=product&page=notify-woo-customers - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 93% 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
5 plugin tags: woocommerce notification, notify customers, send email, update notify, bulk email

notify-email-customers-product-update/bulk-email-notify-customers-product-update-woocommerce.php 85% from 13 tests

This is the main PHP file of "Bulk Email Notify Customers on Product Update for WooCommerce" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("notify-email-customers-product-update.php" instead of "bulk-email-notify-customers-product-update-woocommerce.php")
  • Requires at least: Required version must be the same as the one declared in readme.txt ("3.0.1" instead of "2.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin607 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP119141395
JavaScript1362113
CSS122499

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity62.00
▷ Minimum class complexity62.00
▷ Maximum class complexity62.00
Average method complexity3.90
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/extendwp.png5.75KB3.37KB▼ 41.46%