89% woo-abandoned-cart-recovery

Code Review | Abandoned Cart Recovery for WooCommerce

WordPress plugin Abandoned Cart Recovery for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: woo-abandoned-car...
  • Plugin version: 1.1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: May 11, 2019
  • Latest release: Nov 27, 2023
  • Number of updates: 72
  • Update frequency: every 23.1 days
  • Top authors: thanhtd (69.44%)vietmike (22.22%)mrt3vn (6.94%)kimvt1991 (4.17%)dragonlord47 (2.78%)

Code review

54 tests

User reviews

24 reviews

Install metrics

6,000+ active /126,577 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: ▼10.25ms] Passed 4 tests

This is a short check of server-side resources used by Abandoned Cart Recovery for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.62 ▼7.93
Dashboard /wp-admin3.31 ▼0.0343.72 ▼16.69
Posts /wp-admin/edit.php3.37 ▲0.0148.98 ▲6.03
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.93 ▼11.89
Media Library /wp-admin/upload.php3.24 ▲0.0130.75 ▼4.50

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 547 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Abandoned Cart Recovery for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲3414.26 ▼0.111.66 ▲0.0343.40 ▼0.12
Dashboard /wp-admin2,198 ▲175.67 ▼0.0292.04 ▼21.8842.47 ▼0.10
Posts /wp-admin/edit.php2,107 ▲72.03 ▲0.0637.09 ▼2.0733.22 ▼3.92
Add New Post /wp-admin/post-new.php1,532 ▼323.34 ▲0.74664.78 ▲13.9667.93 ▲14.68
Media Library /wp-admin/upload.php1,400 ▲34.17 ▲0.0196.17 ▼3.2840.86 ▼5.30

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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

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

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

woo-abandoned-cart-recovery/woo-abandoned-cart-recovery.php Passed 13 tests

The main PHP script in "Abandoned Cart Recovery for WooCommerce" version 1.1.1 is automatically included on every request by WordPress
63 characters long description:
Capture abandoned cart & send reminder emails to the customers.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin17,679 lines of code in 89 files:
LanguageFilesBlank linesComment linesLines of code
PHP341,4955527,791
JavaScript171,2743175,562
CSS322802212,659
Sass4311281,210
PO File1187222420
SVG10037

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity35.52
▷ Minimum class complexity2.00
▷ Maximum class complexity114.00
Average method complexity4.05
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes29
▷ Abstract classes00.00%
▷ Concrete classes29100.00%
▷ Final classes00.00%
Methods328
▷ Static methods5115.55%
▷ Public methods30492.68%
▷ Protected methods51.52%
▷ Private methods195.79%
Functions7
▷ Named functions571.43%
▷ Anonymous functions228.57%
Constants15
▷ Global constants15100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
433 PNG files occupy 1.50MB with 0.83MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/_unknown.png1.35KB0.30KB▼ 77.69%
assets/img/flag/256/GD.png7.55KB3.28KB▼ 56.56%
assets/img/flag/256/NI.png7.08KB3.67KB▼ 48.22%
assets/img/flag/256/YE.png1.47KB0.86KB▼ 41.68%
assets/img/flag/TW.png0.85KB0.39KB▼ 54.27%