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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.86 ▼2.36 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.87 ▼5.74 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 47.62 ▼4.04 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 83.44 ▼7.21 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 34.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.30 ▼1.45 | 1.73 ▼0.06 | 40.66 ▼3.19 |
Dashboard /wp-admin | 2,206 ▲18 | 4.85 ▼0.06 | 107.47 ▼6.28 | 36.04 ▼10.94 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.02 ▼0.02 | 39.12 ▲0.08 | 35.10 ▼3.20 |
Add New Post /wp-admin/post-new.php | 1,534 ▲1 | 23.32 ▲0.16 | 664.40 ▼20.72 | 63.08 ▲11.49 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.17 ▼0.00 | 92.69 ▼5.48 | 41.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
- > PHP Fatal error
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:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4 in product-side-cart-for-woocommerce/assets to your readme.txt
- Contributors: Plugin contributors field is missing
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 129 | 55 | 1,996 |
CSS | 8 | 4 | 34 | 728 |
JavaScript | 8 | 115 | 186 | 563 |
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 code | 0.21 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
asset/img/cart_1.png | 6.26KB | 2.48KB | ▼ 60.33% |
inc/asset/img/image1.png | 6.26KB | 2.48KB | ▼ 60.33% |
asset/img/cart_2.png | 2.63KB | 1.94KB | ▼ 26.10% |