84% woo-minicart

Code Review | Minicart for WooCommerce

WordPress plugin Minicart for WooCommerce scored 84% from 54 tests.

About plugin

  • Plugin page: woo-minicart
  • Plugin version: 2.0.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-6.3
  • WordPress version: 6.3.1
  • First release: Oct 20, 2018
  • Latest release: Aug 15, 2023
  • Number of updates: 36
  • Update frequency: every 48.9 days
  • Top authors: ahmadshyk (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

2,000+ active / 22,016 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 successfully, without throwing any errors or notices

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

A check of server-side resources used by Minicart for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.38 ▼0.29
Dashboard /wp-admin3.32 ▲0.0140.67 ▼3.32
Posts /wp-admin/edit.php3.37 ▲0.0145.16 ▼0.77
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.11 ▼32.44
Media Library /wp-admin/upload.php3.24 ▲0.0133.94 ▼4.00

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Minicart for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲9613.21 ▼1.412.18 ▲0.4244.72 ▲3.28
Dashboard /wp-admin2,212 ▲245.80 ▲0.6897.64 ▼16.4239.99 ▼3.10
Posts /wp-admin/edit.php2,098 ▲62.02 ▲0.0140.27 ▼2.3335.67 ▲1.06
Add New Post /wp-admin/post-new.php1,520 ▼1317.43 ▼5.68640.30 ▼34.5863.62 ▲1.05
Media Library /wp-admin/upload.php1,388 ▲34.29 ▲0.0295.23 ▼10.8948.90 ▼7.31

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • theysaidso_admin_options
    • wmc_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

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
Everything seems fine, however this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/woo-minicart/frontend/wmc-content.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: cart, woocommerce cart, woocommerce minicart, woocommerce, minicart...

woo-minicart/woo-minicart.php Passed 13 tests

The main PHP file in "Minicart for WooCommerce" ver. 2.0.5 adds more information about the plugin and also serves as the entry point for this plugin
62 characters long description:
The simple plugin to add Minicart on your WooCommerce website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected787 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity2.22
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions5100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/graphics/wmc-icon-4.png12.95KB5.47KB▼ 57.72%
assets/graphics/wmc-icon-3.png14.22KB5.08KB▼ 64.30%
assets/graphics/wmc-icon-1.png6.58KB3.49KB▼ 47.03%
assets/graphics/wmc-icon-2.png2.99KB2.42KB▼ 18.92%