84% liverecover-woocommerce

Code Review | LiveRecover for WooCommerce - Text Message Abandoned Cart Recovery

WordPress plugin LiveRecover for WooCommerce - Text Message Abandoned Cart Recovery scored 84% from 54 tests.

About plugin

  • Plugin page: liverecover-wooco...
  • Plugin version: 1.1.7
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.7
  • WordPress version: 6.3.1
  • First release: Apr 21, 2020
  • Latest release: Jun 3, 2021
  • Number of updates: 50
  • Update frequency: every 8.3 days
  • Top authors: anovoselnik (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 876 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼0.08ms] Passed 4 tests

An overview of server-side resources used by LiveRecover for WooCommerce - Text Message Abandoned Cart Recovery
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.95 ▼0.14
Dashboard /wp-admin3.31 ▲0.0148.54 ▼0.28
Posts /wp-admin/edit.php3.36 ▲0.0147.34 ▲0.83
Add New Post /wp-admin/post-new.php5.89 ▲0.0193.02 ▲1.86
Media Library /wp-admin/upload.php3.24 ▲0.0133.18 ▼0.73

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 180 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for LiveRecover for WooCommerce - Text Message Abandoned Cart Recovery
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲7414.62 ▲0.242.16 ▲0.3847.54 ▼0.64
Dashboard /wp-admin2,209 ▲215.79 ▼0.07114.24 ▼1.8946.29 ▲2.04
Posts /wp-admin/edit.php2,098 ▲92.01 ▼0.0139.03 ▲1.1538.67 ▲3.70
Add New Post /wp-admin/post-new.php1,543 ▲123.42 ▲5.30649.46 ▲27.1655.15 ▲8.29
Media Library /wp-admin/upload.php1,394 ▲94.21 ▲0.0198.11 ▼3.8842.65 ▼1.77

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 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
Please fix the following items
  • 58× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/liverecover-woocommerce/vendor/guzzlehttp/promises/src/FulfilledPromise.php:10
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/liverecover-woocommerce/vendor/guzzlehttp/promises/src/RejectedPromise.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/liverecover-woocommerce/vendor/guzzlehttp/guzzle/src/Exception/ServerException.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Polyfill\\Intl\ormalizer\ormalizer' not found in wp-content/plugins/liverecover-woocommerce/vendor/symfony/polyfill-intl-normalizer/Resources/stubs/Normalizer.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Auth' not found in wp-content/plugins/liverecover-woocommerce/helpers.php:18
    • > PHP Fatal error
      Cannot declare class DivisionByZeroError, because the name is already in use in wp-content/plugins/liverecover-woocommerce/vendor/symfony/polyfill-php70/Resources/stubs/DivisionByZeroError.php on line 0
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/liverecover-woocommerce/woocommerce-liverecover-plugin.php:19
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/liverecover-woocommerce/vendor/guzzlehttp/promises/src/Promise.php:9
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/liverecover-woocommerce/vendor/guzzlehttp/psr7/src/LazyOpenStream.php:10
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/liverecover-woocommerce/vendor/guzzlehttp/psr7/src/Stream.php:11

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

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: text message, woocommerce plugin, woocommerce, liverecover, abandoned cart

liverecover-woocommerce/woocommerce-liverecover-plugin.php 92% from 13 tests

Analyzing the main PHP file in "LiveRecover for WooCommerce - Text Message Abandoned Cart Recovery" version 1.1.7
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("liverecover-woocommerce.php" instead of "woocommerce-liverecover-plugin.php")

Code Analysis 97% from 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
There were no executable files found in this plugin31,703 lines of code in 165 files:
LanguageFilesBlank linesComment linesLines of code
PHP1322,2645,31527,293
Markdown141,04903,300
JSON12001,052
XML10019
Dockerfile18010
JavaScript1009
make1409
SVG2008
Bourne Shell1203

PHP code 50% from 2 tests

This plugin's cyclomatic complexity and code structure detailed below
It is recommended to fix the following
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 179)
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity16.17
▷ Minimum class complexity1.00
▷ Maximum class complexity179.00
Average method complexity3.27
▷ Minimum method complexity1.00
▷ Maximum method complexity179.00
Code structure
Namespaces13
Interfaces16
Traits2
Classes83
▷ Abstract classes00.00%
▷ Concrete classes83100.00%
▷ Final classes1518.07%
Methods730
▷ Static methods10314.11%
▷ Public methods59281.10%
▷ Protected methods40.55%
▷ Private methods13418.36%
Functions168
▷ Named functions8047.62%
▷ Anonymous functions8852.38%
Constants161
▷ Global constants4729.19%
▷ Class constants11470.81%
▷ Public constants114100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin