84% ajax-cart-autoupdate-for-woocommerce

Code Review | Ajax Cart AutoUpdate for WooCommerce

WordPress plugin Ajax Cart AutoUpdate for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: ajax-cart-autoupd...
  • Plugin version: 1.5.5
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-5.7
  • WordPress version: 6.3.1
  • First release: May 11, 2019
  • Latest release: Mar 31, 2021
  • Number of updates: 45
  • Update frequency: every 15.4 days
  • Top authors: taisho (100%)

Code review

54 tests

User reviews

201 reviews

Install metrics

10,000+ active /74,206 total downloads


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
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Ajax Cart AutoUpdate for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0739.13 ▼2.14
Dashboard /wp-admin3.39 ▲0.0944.99 ▼4.71
Posts /wp-admin/edit.php3.51 ▲0.1545.25 ▼5.47
Add New Post /wp-admin/post-new.php5.97 ▲0.0985.23 ▼22.77
Media Library /wp-admin/upload.php3.32 ▲0.0937.04 ▲2.59
Ajax Cart AutoUpdate /wp-admin/options-general.php?page=ajax-cart-autoupdate3.2932.74

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Ajax Cart AutoUpdate for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲9613.59 ▼1.021.95 ▲0.2445.31 ▲2.85
Dashboard /wp-admin2,212 ▲295.85 ▲0.92110.94 ▲3.7547.36 ▲7.39
Posts /wp-admin/edit.php2,098 ▲122.05 ▲0.0139.57 ▼0.5734.95 ▼0.75
Add New Post /wp-admin/post-new.php1,547 ▲518.30 ▲0.16641.09 ▲38.3155.86 ▼1.33
Media Library /wp-admin/upload.php1,391 ▲34.17 ▼0.0893.74 ▼0.0438.74 ▼3.32
Ajax Cart AutoUpdate /wp-admin/options-general.php?page=ajax-cart-autoupdate1,0052.3840.5026.22

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

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
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
    • > GET request to /wp-admin/options-general.php?page=ajax-cart-autoupdate
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).trigger(...) is not a function" "TypeError: $(...).trigger(...) is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/ajax-cart-autoupdate-for-woocommerce/js/ajax-cart-autoupdate-for-woocommerce-admin.js?ver=6.3.1:5:52)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/options-general.php?page=ajax-cart-autoupdate
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: $(...).trigger(...) is not a function


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
You can look at the official readme.txt

ajax-cart-autoupdate-for-woocommerce/ajax-cart-autoupdate-for-woocommerce.php 92% from 13 tests

"Ajax Cart AutoUpdate for WooCommerce" version 1.5.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.6" instead of "3.0.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected369 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity20.00
▷ Minimum class complexity6.00
▷ Maximum class complexity34.00
Average method complexity3.71
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions872.73%
▷ Anonymous functions327.27%
▷ 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
No PNG images were found in this plugin