89% wc-order-notification-by-category

Code Review | Order Notification By Category for WooCommerce

WordPress plugin Order Notification By Category for WooCommerce scored 89% from 54 tests.

About plugin

  • Plugin page: wc-order-notifica...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8
  • WordPress version: 6.3.1
  • First release: Aug 18, 2020
  • Latest release: Jul 16, 2021
  • Number of updates: 3
  • Update frequency: every 110.7 days
  • Top authors: logiceverest (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active / 1,091 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.63ms] Passed 4 tests

Server-side resources used by Order Notification By Category for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.91 ▼7.31
Dashboard /wp-admin3.33 ▲0.0246.17 ▼3.60
Posts /wp-admin/edit.php3.38 ▲0.0250.91 ▼10.32
Add New Post /wp-admin/post-new.php5.91 ▲0.0285.96 ▼9.28
Media Library /wp-admin/upload.php3.25 ▲0.0233.28 ▼3.57

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Order Notification By Category for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4314.46 ▼0.141.63 ▼0.8341.29 ▼5.69
Dashboard /wp-admin2,206 ▲185.83 ▲0.92110.10 ▲0.5953.10 ▲5.74
Posts /wp-admin/edit.php2,092 ▼01.99 ▼0.0134.86 ▼7.5930.74 ▼16.39
Add New Post /wp-admin/post-new.php1,533 ▼023.37 ▲0.14676.45 ▼4.3958.53 ▲3.81
Media Library /wp-admin/upload.php1,388 ▲34.26 ▲0.0593.56 ▼9.5541.21 ▼4.31

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 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
Attributes that require attention:
  • Donate link: Please fix this invalid url: ""
You can take inspiration from this readme.txt

wc-order-notification-by-category/woo-category-alert.php 77% from 13 tests

The entry point to "Order Notification By Category for WooCommerce" version 1.0.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wc-order-notification-by-category.php" instead of "woo-category-alert.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 173 characters long)
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin78 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2254778

PHP code Passed 2 tests

This is a very shot 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.30
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods114.29%
▷ Public methods571.43%
▷ Protected methods00.00%
▷ Private methods228.57%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin