84% wc-abandoned-carts-by-small-fish-analytics

Code Review | Abandoned Cart Reports For WooCommerce

WordPress plugin Abandoned Cart Reports For WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: wc-abandoned-cart...
  • Plugin version: 2.6.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-6.1
  • WordPress version: 6.3.1
  • First release: Aug 24, 2016
  • Latest release: Nov 28, 2022
  • Number of updates: 89
  • Update frequency: every 25.8 days
  • Top authors: canship (53.93%)smallfishes (47.19%)

Code review

54 tests

User reviews

17 reviews

Install metrics

4,000+ active /46,917 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.00MB] [CPU: ▼6.71ms] Passed 4 tests

Analyzing server-side resources used by Abandoned Cart Reports For WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0044.37 ▼2.28
Dashboard /wp-admin3.31 ▲0.0050.93 ▼2.46
Posts /wp-admin/edit.php3.36 ▲0.0050.09 ▼2.59
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.84 ▼16.64
Media Library /wp-admin/upload.php3.23 ▲0.0032.90 ▼5.16

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Abandoned Cart Reports For WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▼0.211.82 ▲0.0144.84 ▲1.99
Dashboard /wp-admin2,198 ▲215.62 ▼0.0490.46 ▼5.3539.01 ▼8.74
Posts /wp-admin/edit.php2,097 ▼61.95 ▼0.0735.98 ▼3.6932.07 ▼1.96
Add New Post /wp-admin/post-new.php1,526 ▼220.92 ▼2.20671.57 ▼120.4854.88 ▼22.71
Media Library /wp-admin/upload.php1,403 ▲64.17 ▼0.03101.84 ▼0.3442.14 ▼4.07

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please take a closer look at the following
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/wc-abandoned-carts-by-small-fish-analytics/admin/class-sfa-abandoned-carts-help.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Jaybizzle\\CrawlerDetect\\Fixtures\\AbstractProvider' not found in wp-content/plugins/wc-abandoned-carts-by-small-fish-analytics/libraries/crawler-detect/Fixtures/Headers.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Jaybizzle\\CrawlerDetect\\Fixtures\\AbstractProvider' not found in wp-content/plugins/wc-abandoned-carts-by-small-fish-analytics/libraries/crawler-detect/Fixtures/Crawlers.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Jaybizzle\\CrawlerDetect\\Fixtures\\AbstractProvider' not found in wp-content/plugins/wc-abandoned-carts-by-small-fish-analytics/libraries/crawler-detect/Fixtures/Exclusions.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were 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
5 plugin tags: recover abandoned carts, cart abandonment, woocommerce, abandoned carts, abandoned cart report

wc-abandoned-carts-by-small-fish-analytics/class-sfa-woocommerce-abandoned-carts.php 85% from 13 tests

The entry point to "Abandoned Cart Reports For WooCommerce" version 2.6.4 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wc-abandoned-carts-by-small-fish-analytics.php" instead of "class-sfa-woocommerce-abandoned-carts.php")
  • Requires at least: The required version number did not match the one declared in readme.txt ("3.0.1" instead of "3.0.0")

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
No dangerous file extensions were detected4,298 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
PHP245047393,553
JavaScript3174158584
CSS1340161

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity11.32
▷ Minimum class complexity1.00
▷ Maximum class complexity124.00
Average method complexity2.88
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes22
▷ Abstract classes313.64%
▷ Concrete classes1986.36%
▷ Final classes00.00%
Methods123
▷ Static methods00.00%
▷ Public methods9678.05%
▷ Protected methods2117.07%
▷ Private methods64.88%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin