99% simple-cart-reminder

Code Review | Cart Reminder for WooCommerce - Create templates and schedule your cart reminder emails!

WordPress plugin Cart Reminder for WooCommerce - Create templates and schedule your cart reminder emails! scored 99% from 54 tests.

About plugin

  • Plugin page: simple-cart-reminder
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.5.1
  • WordPress version: 5.8.1
  • First release: May 25, 2020
  • Latest release: Sep 2, 2020
  • Number of updates: 9
  • Update frequency: every 11.1 days
  • Top authors: itservicejung (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,974 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.03MB] [CPU: ▼143.30ms] Passed 4 tests

This is a short check of server-side resources used by Cart Reminder for WooCommerce - Create templates and schedule your cart reminder emails!
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1537.97 ▲15.24
Dashboard /wp-admin3.09 ▲0.0350.78 ▲2.64
Posts /wp-admin/edit.php3.14 ▲0.0353.58 ▲6.50
Add New Post /wp-admin/post-new.php5.45 ▲0.0194.81 ▼582.38
Media Library /wp-admin/upload.php3.03 ▲0.0338.77 ▲0.05

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Cart Reminder for WooCommerce - Create templates and schedule your cart reminder emails!
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,689 ▲9315.94 ▲0.3410.34 ▼2.4550.19 ▼3.74
Dashboard /wp-admin2,977 ▲435.91 ▼0.03157.04 ▼18.91123.92 ▲5.52
Posts /wp-admin/edit.php2,751 ▲122.71 ▼0.0171.35 ▼4.5091.95 ▼5.30
Add New Post /wp-admin/post-new.php1,510 ▼7118.48 ▼0.26389.31 ▼42.84126.77 ▲1.23
Media Library /wp-admin/upload.php1,817 ▲105.04 ▲0.00166.78 ▼3.14129.72 ▲0.02

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files

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 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed: The official readme.txt might help

simple-cart-reminder/simple-cart-reminder.php 92% from 13 tests

"Cart Reminder for WooCommerce - Create templates and schedule your cart reminder emails!" version 1.0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected1,415 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP5196176844
CSS25313214
JavaScript21815185
PO File17580172

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity16.80
▷ Minimum class complexity2.00
▷ Maximum class complexity52.00
Average method complexity2.65
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods48
▷ Static methods48100.00%
▷ Public methods48100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions250.00%
▷ Anonymous functions250.00%
Constants14
▷ Global constants14100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.58MB with 0.42MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/buylogo.png598.94KB170.06KB▼ 71.61%