100% woo-cancel-abandoned-order

Code Review | WooCommerce Cancel Abandoned Order

WordPress plugin WooCommerce Cancel Abandoned Order scored 100% from 54 tests.

About plugin

  • Plugin page: woo-cancel-abando...
  • Plugin version: 2.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8
  • WordPress version: 5.8.1
  • First release: Oct 30, 2017
  • Latest release: Nov 19, 2021
  • Number of updates: 47
  • Update frequency: every 31.5 days
  • Top authors: rvola (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

2,000+ active / 14,906 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by WooCommerce Cancel Abandoned Order
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1241.33 ▲20.43
Dashboard /wp-admin3.06 ▲0.0036.43 ▼5.31
Posts /wp-admin/edit.php3.11 ▲0.0042.50 ▼0.52
Add New Post /wp-admin/post-new.php5.42 ▼0.0286.61 ▼561.98
Media Library /wp-admin/upload.php3.00 ▲0.0032.28 ▲0.91

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WooCommerce Cancel Abandoned Order
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲9715.86 ▲0.299.23 ▲0.0145.66 ▲0.11
Dashboard /wp-admin2,973 ▲425.92 ▼0.07133.99 ▼13.06114.22 ▼3.39
Posts /wp-admin/edit.php2,739 ▲32.72 ▼0.0163.31 ▼2.2294.09 ▲2.20
Add New Post /wp-admin/post-new.php1,498 ▼218.86 ▲0.04358.71 ▼32.10112.26 ▲3.53
Media Library /wp-admin/upload.php1,807 ▼05.03 ▲0.01144.98 ▲3.56115.66 ▼11.34

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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 | 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 Passed 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
6 plugin tags: pending, cancel, gateway, on hold, woocommerce...

woo-cancel-abandoned-order/woo-cancel-abandoned-order.php Passed 13 tests

The entry point to "WooCommerce Cancel Abandoned Order" version 2.0.0 is a PHP file that has certain tags in its header comment area
66 characters long description:
Cancel "on hold" orders after a certain number of days or by hours

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected463 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP798191382
PO File1172852
CSS11014
JavaScript15014
SVG1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity9.00
▷ Minimum class complexity1.00
▷ Maximum class complexity29.00
Average method complexity2.28
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes125.00%
Methods25
▷ Static methods28.00%
▷ Public methods1768.00%
▷ Protected methods00.00%
▷ Private methods832.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants240.00%
▷ Class constants360.00%
▷ Public constants3100.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