89% ajaxified-cart-woocommerce

Code Review | WooCommerce Ajaxified Cart

WordPress plugin WooCommerce Ajaxified Cart scored89%from 54 tests.

About plugin

  • Plugin page: ajaxified-cart-wo...
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.5.3
  • WordPress version: 6.3.1
  • First release: Mar 14, 2017
  • Latest release: Nov 28, 2020
  • Number of updates: 15
  • Update frequency: every 90.1 days
  • Top authors: abhishekfdd (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

600+ active /6,956 total downloads


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.03MB] [CPU: ▼5.10ms] Passed 4 tests

A check of server-side resources used by WooCommerce Ajaxified Cart
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0343.55 ▲2.08
Dashboard /wp-admin3.33 ▲0.0348.21 ▼0.41
Posts /wp-admin/edit.php3.39 ▲0.0353.23 ▲5.16
Add New Post /wp-admin/post-new.php5.93 ▲0.0585.22 ▼19.43
Media Library /wp-admin/upload.php3.26 ▲0.0334.88 ▼2.65
Ajaxified Cart /wp-admin/options-general.php?page=abwc_ajaxified_settings3.2233.39

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by WooCommerce Ajaxified Cart
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,900 ▲11413.45 ▼0.908.36 ▲6.6040.29 ▼4.28
Dashboard /wp-admin2,226 ▲465.66 ▲0.0684.61 ▼3.7739.02 ▼2.26
Posts /wp-admin/edit.php2,132 ▲321.98 ▲0.0241.33 ▲5.1135.10 ▼1.07
Add New Post /wp-admin/post-new.php1,556 ▲2818.12 ▼4.84599.20 ▼56.5780.26 ▲32.29
Media Library /wp-admin/upload.php1,428 ▲284.19 ▲0.0797.80 ▼16.8543.40 ▼4.90
Ajaxified Cart /wp-admin/options-general.php?page=abwc_ajaxified_settings8151.6926.3227.70

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • 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)
Even though no errors were found, 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: ajax, cart, woocommerce

ajaxified-cart-woocommerce/wc-ajax-cart.php 85% from 13 tests

"WooCommerce Ajaxified Cart" version 1.2.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ajaxified-cart-woocommerce.php" instead of "wc-ajax-cart.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
Everything looks great! No dangerous files found in this plugin549 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PO File14510

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity5.33
▷ Minimum class complexity1.00
▷ Maximum class complexity17.00
Average method complexity1.76
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
▷ Static methods310.00%
▷ Public methods2480.00%
▷ Protected methods00.00%
▷ Private methods620.00%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.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