Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼174.60ms] Passed 4 tests
Analyzing server-side resources used by side cart plus for woocommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 40.96 ▲11.31 |
Dashboard /wp-admin | 3.06 ▲0.00 | 52.22 ▼3.80 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 47.12 ▼9.72 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.02 | 96.80 ▼681.07 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 34.81 ▼3.80 |
Server storage [IO: ▲0.40MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for side cart plus for woocommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,764 ▲192 | 16.12 ▲0.49 | 11.06 ▼0.33 | 55.51 ▼2.60 |
Dashboard /wp-admin | 2,970 ▲39 | 5.89 ▼0.27 | 149.14 ▼28.46 | 124.20 ▼8.44 |
Posts /wp-admin/edit.php | 2,736 ▼3 | 2.70 ▲0.00 | 72.18 ▼12.39 | 111.61 ▼1.32 |
Add New Post /wp-admin/post-new.php | 1,615 ▼68 | 21.46 ▲3.00 | 296.11 ▼111.67 | 118.88 ▼13.41 |
Media Library /wp-admin/upload.php | 1,810 ▲3 | 5.04 ▼0.02 | 160.22 ▼3.37 | 127.86 ▼10.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/side-cart-plus-for-woocommerce/class-option/siwscp_icon_file.php
- > /wp-content/plugins/side-cart-plus-for-woocommerce/side-cart-plus-woocommerce.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 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
7 plugin tags: add to cart open side cart, mini cart, woocommerce cart, ajax cart, woocommerce side cart...
side-cart-plus-for-woocommerce/side-cart-plus-woocommerce.php 92% from 13 tests
The main PHP script in "side cart plus for woocommerce" version 1.0 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("side-cart-plus-for-woocommerce.php" instead of "side-cart-plus-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
Success! There were no dangerous files found in this plugin5,731 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 613 | 1,117 | 2,582 |
PHP | 6 | 623 | 72 | 2,327 |
CSS | 8 | 53 | 93 | 822 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 41.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 116.00 |
Average method complexity | 7.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 99.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 6 | 17.14% |
▷ Public methods | 35 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
owlcarousel/assets/owl.video.play.png | 4.86KB | 2.74KB | ▼ 43.61% |
assest/images/crown.png | 0.53KB | 0.39KB | ▼ 26.25% |