89% cart-catch-for-woocommerce

Code Review | Cart Catch for WooCommerce - cart abandonment

WordPress plugin Cart Catch for WooCommerce - cart abandonment scored 89% from 54 tests.

About plugin

  • Plugin page: cart-catch-for-wo...
  • Plugin version: 0.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-5.0.0
  • WordPress version: 6.3.1
  • First release: Dec 12, 2018
  • Latest release: Dec 13, 2018
  • Number of updates: 5
  • Update frequency: every 0.8 days
  • Top authors: rrrhys (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 645 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼3.53ms] Passed 4 tests

This is a short check of server-side resources used by Cart Catch for WooCommerce - cart abandonment
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1036.55 ▼3.16
Dashboard /wp-admin3.40 ▲0.1041.64 ▼6.57
Posts /wp-admin/edit.php3.51 ▲0.1655.25 ▲9.58
Add New Post /wp-admin/post-new.php5.98 ▲0.1081.21 ▼11.36
Media Library /wp-admin/upload.php3.32 ▲0.0938.24 ▲6.98

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Cart Catch for WooCommerce - cart abandonment
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.68 ▼0.711.58 ▼0.3237.11 ▼10.34
Dashboard /wp-admin2,203 ▲155.86 ▲1.00108.88 ▼10.8143.55 ▼5.54
Posts /wp-admin/edit.php2,086 ▼02.02 ▲0.0140.86 ▲6.0534.99 ▼1.15
Add New Post /wp-admin/post-new.php1,533 ▼023.24 ▼0.10659.13 ▼23.7252.77 ▼7.07
Media Library /wp-admin/upload.php1,382 ▼34.30 ▲0.0797.00 ▼4.0241.32 ▼3.82

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

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
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: follow up, send email, recover sales, abandoned carts, cart abandonment...

cart-catch-for-woocommerce/wc-cart-catch.php 85% from 13 tests

The main PHP script in "Cart Catch for WooCommerce - cart abandonment" version 0.0.2 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("cart-catch-for-woocommerce.php" instead of "wc-cart-catch.php")
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.8" instead of "2.6")

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
No dangerous file extensions were detected666 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP121340623
JavaScript113833
Markdown15010

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.27
Average class complexity62.00
▷ Minimum class complexity62.00
▷ Maximum class complexity62.00
Average method complexity2.72
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods34
▷ Static methods411.76%
▷ Public methods3397.06%
▷ Protected methods00.00%
▷ Private methods12.94%
Functions5
▷ Named functions240.00%
▷ Anonymous functions360.00%
Constants0
▷ Global constants00.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 are no PNG files in this plugin