90% woo-cart-all-in-one

Code Review | Cart All In One For WooCommerce

WordPress plugin Cart All In One For WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: woo-cart-all-in-one
  • Plugin version: 1.1.13
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Jun 18, 2019
  • Latest release: Aug 4, 2023
  • Number of updates: 50
  • Update frequency: every 30.2 days
  • Top authors: mytrinh (86%)kimvt1991 (12%)villatheme (6%)

Code review

54 tests

User reviews

49 reviews

Install metrics

9,000+ active /141,279 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
Installer ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▼5.80ms] Passed 4 tests

Analyzing server-side resources used by Cart All In One For WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1641.24 ▼3.85
Dashboard /wp-admin3.47 ▲0.1748.36 ▼1.01
Posts /wp-admin/edit.php3.58 ▲0.2349.18 ▼4.89
Add New Post /wp-admin/post-new.php6.05 ▲0.1687.86 ▼13.46
Media Library /wp-admin/upload.php3.39 ▲0.1640.88 ▲4.11

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 110 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Cart All In One For WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲1114.34 ▲0.071.71 ▼0.9444.45 ▼0.54
Dashboard /wp-admin2,203 ▲235.63 ▼0.0589.98 ▼5.2440.62 ▼3.03
Posts /wp-admin/edit.php2,109 ▲61.99 ▼0.0137.71 ▲0.9436.38 ▼0.73
Add New Post /wp-admin/post-new.php1,534 ▲823.52 ▲0.32644.13 ▼50.5251.07 ▼5.94
Media Library /wp-admin/upload.php1,411 ▲114.16 ▼0.1494.25 ▼15.3142.73 ▼3.85

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: cart all in one for woocommerce, wc mini cart, woocommerce mini cart, wc sticky cart, wc cart

woo-cart-all-in-one/woo-cart-all-in-one.php Passed 13 tests

The main PHP script in "Cart All In One For WooCommerce" version 1.1.13 is automatically included on every request by WordPress
76 characters long description:
Cart All In One For WooCommerce helps your customers view cart effortlessly.

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
Success! There were no dangerous files found in this plugin21,189 lines of code in 78 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript221,2713887,668
PHP222351036,744
SVG51183,477
CSS295261303,300

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity30.11
▷ Minimum class complexity2.00
▷ Maximum class complexity108.00
Average method complexity5.03
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes18
▷ Abstract classes00.00%
▷ Concrete classes18100.00%
▷ Final classes00.00%
Methods130
▷ Static methods2519.23%
▷ Public methods11084.62%
▷ Protected methods1612.31%
▷ Private methods43.08%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.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
9 PNG files occupy 0.27MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/cart-icon/style_3.png2.23KB1.41KB▼ 36.62%
assets/images/cart-icon/style_5.png2.11KB1.38KB▼ 34.77%
assets/images/cart-icon/style_1.png2.09KB1.38KB▼ 34.24%
assets/images/sticky_bar.png74.00KB32.40KB▼ 56.21%
assets/images/sidebar_cart_footer_pre.png24.20KB11.20KB▼ 53.71%