10% product-side-cart-for-woocommerce

Code Review | Product Side Cart For Woocommerce

WordPress plugin Product Side Cart For Woocommerce scored 10% from 54 tests.

About plugin

  • Plugin page: product-side-cart...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.1.1
  • WordPress version: 6.3.1
  • First release: Nov 9, 2022
  • Latest release: May 19, 2023
  • Number of updates: 6
  • Update frequency: every 32.0 days
  • Top authors: howdytheme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 188 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Error in wp-content/plugins/product-side-cart-for-woocommerce/inc/pscfw_backend.php+744
    Uncaught Error: Call to undefined function wc_get_cart_url() in wp-content/plugins/product-side-cart-for-woocommerce/inc/pscfw_backend.php:744
    Stack trace:
    #0 wp-includes/class-wp-hook.php(310): pscfw_install_default_value()
    #1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #2 wp-includes/plugin.php(517): WP_Hook->do_action()
    #3 wp-admin/includes/plugin.php(693): do_action()

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

This is a short check of server-side resources used by Product Side Cart For Woocommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.86 ▼2.36
Dashboard /wp-admin3.31 ▲0.0144.87 ▼5.74
Posts /wp-admin/edit.php3.36 ▲0.0147.62 ▼4.04
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.44 ▼7.21
Media Library /wp-admin/upload.php3.23 ▲0.0134.12 ▼1.55

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 39 new options
New WordPress options
slider_btn_text_color
atcfb_color
widget_recent-posts
mobile_en
btn_font_size
clpback_color
slid_enable_desk
widget_recent-comments
shb_style
shthead_color
...

Browser metrics Passed 4 tests

A check of browser resources used by Product Side Cart For Woocommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.30 ▼1.451.73 ▼0.0640.66 ▼3.19
Dashboard /wp-admin2,206 ▲184.85 ▼0.06107.47 ▼6.2836.04 ▼10.94
Posts /wp-admin/edit.php2,089 ▲32.02 ▼0.0239.12 ▲0.0835.10 ▼3.20
Add New Post /wp-admin/post-new.php1,534 ▲123.32 ▲0.16664.40 ▼20.7263.08 ▲11.49
Media Library /wp-admin/upload.php1,391 ▼04.17 ▼0.0092.69 ▼5.4841.33 ▼3.87

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 39 options in the database
    • shead_color
    • shborder_color
    • cart_btn_text
    • slider_back_color
    • pdc_hover
    • cart_head_text
    • ptc_color
    • shopping_btn_text
    • shthead_color
    • widget_recent-posts
    • ...

Smoke tests 50% 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 0% from 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
Please take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/product-side-cart-for-woocommerce/prodcut-side-cart-for-woocommerce.php
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/product-side-cart-for-woocommerce/inc/pscfw_backend.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/product-side-cart-for-woocommerce/inc/pscfw_fronted.php:519

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes: The official readme.txt is a good inspiration

product-side-cart-for-woocommerce/prodcut-side-cart-for-woocommerce.php 85% from 13 tests

The entry point to "Product Side Cart For Woocommerce" version 1.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("product-side-cart-for-woocommerce.php" instead of "prodcut-side-cart-for-woocommerce.php")

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 detected3,287 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP3129551,996
CSS8434728
JavaScript8115186563

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
3 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
asset/img/cart_1.png6.26KB2.48KB▼ 60.33%
inc/asset/img/image1.png6.26KB2.48KB▼ 60.33%
asset/img/cart_2.png2.63KB1.94KB▼ 26.10%