89% order-status-notification

Code Review | Order Status Notification For WooCommerce

WordPress plugin Order Status Notification For WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: order-status-noti...
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.6
  • WordPress version: 6.3.1
  • First release: Jun 19, 2020
  • Latest release: Jan 2, 2021
  • Number of updates: 8
  • Update frequency: every 24.6 days
  • Top authors: dorihsk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /800 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

An overview of server-side resources used by Order Status Notification For WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.32 ▼5.47
Dashboard /wp-admin3.33 ▲0.0249.78 ▲1.64
Posts /wp-admin/edit.php3.45 ▲0.0848.22 ▼0.29
Add New Post /wp-admin/post-new.php5.91 ▲0.0296.52 ▼3.48
Media Library /wp-admin/upload.php3.25 ▲0.0237.11 ▲2.38

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Order Status Notification For WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲7213.35 ▼1.301.62 ▼0.5843.70 ▼1.09
Dashboard /wp-admin2,213 ▲285.91 ▲0.05101.05 ▲1.1439.61 ▼3.12
Posts /wp-admin/edit.php2,095 ▲62.03 ▲0.0337.21 ▼2.6132.98 ▼5.80
Add New Post /wp-admin/post-new.php1,554 ▲2118.27 ▼5.06622.93 ▼31.2058.53 ▲4.02
Media Library /wp-admin/upload.php1,395 ▲74.21 ▲0.0495.56 ▼3.7441.73 ▼4.05

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 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
Attributes that need to be fixed: You can take inspiration from this readme.txt

order-status-notification/order-status-notification.php 85% from 13 tests

The primary PHP file in "Order Status Notification For WooCommerce" version 1.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Domain Path: The domain path folder was not found ("/languages/")
  • Requires at least: Required version does not match the one declared in readme.txt ("4.0" instead of "3.0")

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 plugin1,049 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP10249298679
JavaScript2965347
CSS26323

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.43
Average class complexity9.00
▷ Minimum class complexity1.00
▷ Maximum class complexity16.00
Average method complexity2.56
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes112.50%
Methods41
▷ Static methods921.95%
▷ Public methods3892.68%
▷ Protected methods00.00%
▷ Private methods37.32%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
No PNG images were found in this plugin