89% cart-abandonment-recovery

Code Review | Cart Abandonment Recovery via Chat

WordPress plugin Cart Abandonment Recovery via Chat scored 89% from 54 tests.

About plugin

  • Plugin page: cart-abandonment-...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.5
  • WordPress version: 6.3.1
  • First release: Sep 5, 2020
  • Latest release: Sep 15, 2020
  • Number of updates: 7
  • Update frequency: every 1.7 days
  • Top authors: 9xworks (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 666 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▲1.13ms] Passed 4 tests

This is a short check of server-side resources used by Cart Abandonment Recovery via Chat
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0046.51 ▲6.77
Dashboard /wp-admin3.31 ▲0.0047.16 ▲1.48
Posts /wp-admin/edit.php3.36 ▲0.0047.50 ▲2.21
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.98 ▲4.73
Media Library /wp-admin/upload.php3.23 ▲0.0031.42 ▼3.90

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Cart Abandonment Recovery via Chat
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.17 ▼1.411.70 ▼0.3042.01 ▲2.18
Dashboard /wp-admin2,203 ▲175.82 ▲0.8894.74 ▼16.2238.73 ▲0.19
Posts /wp-admin/edit.php2,086 ▲151.99 ▼0.0339.84 ▲5.1136.92 ▲2.61
Add New Post /wp-admin/post-new.php1,542 ▲2818.08 ▲0.31595.92 ▼64.8743.65 ▼8.60
Media Library /wp-admin/upload.php1,391 ▲64.30 ▲0.1494.19 ▼4.9840.95 ▼4.61

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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 a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Show Chat Opt-in pop-up on your store) image missing
Please take inspiration from this readme.txt

cart-abandonment-recovery/cart-abandonment-recovery-chat.php 77% from 13 tests

The main PHP file in "Cart Abandonment Recovery via Chat" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 144 characters long)
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.2.0" instead of "3.0")
  • Main file name: The principal plugin file should be the same as the plugin slug ("cart-abandonment-recovery.php" instead of "cart-abandonment-recovery-chat.php")

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
Everything looks great! No dangerous files found in this plugin1,153 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2331531,153

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.38
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.12MB with 0.07MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/whatsapp.png28.85KB11.54KB▼ 60.00%
assets/images/background.png89.89KB33.10KB▼ 63.18%