Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.21MB] [CPU: ▼293.53ms] Passed 4 tests
An overview of server-side resources used by WooCommerce Product Carousel Slider
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.81 ▲0.29 | 53.77 ▲2.54 |
Dashboard /wp-admin | 3.64 ▲0.23 | 33.44 ▲0.02 |
Posts /wp-admin/edit.php | 3.87 ▲0.23 | 39.67 ▲3.00 |
Add New Post /wp-admin/post-new.php | 7.11 ▲0.15 | 93.02 ▼1,171.18 |
Media Library /wp-admin/upload.php | 3.52 ▲0.22 | 24.67 ▼5.49 |
Usage & Support /wp-admin/edit.php?post_type=woocarousel&page=support | 3.50 | 24.42 |
Add New /wp-admin/post-new.php?post_type=woocarousel | 3.80 | 39.42 |
Woo Carousel /wp-admin/edit.php?post_type=woocarousel | 3.63 | 27.33 |
Server storage [IO: ▲1.14MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 38 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by WooCommerce Product Carousel Slider
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,854 ▲96 | 15.53 ▼0.55 | 5.90 ▼0.74 | 2.89 ▲0.01 |
Dashboard /wp-admin | 2,949 ▲88 | 6.17 ▲0.01 | 122.00 ▼10.89 | 154.12 ▼6.73 |
Posts /wp-admin/edit.php | 2,748 ▲57 | 3.24 ▲0.01 | 62.37 ▼1.16 | 138.32 ▼8.49 |
Add New Post /wp-admin/post-new.php | 1,696 ▼63 | 16.54 ▼5.29 | 379.85 ▼60.13 | 157.90 ▲7.66 |
Media Library /wp-admin/upload.php | 1,753 ▲55 | 5.56 ▼0.00 | 136.57 ▼5.45 | 188.76 ▼5.88 |
Usage & Support /wp-admin/edit.php?post_type=woocarousel&page=support | 1,327 | 2.91 | 57.66 | 114.76 |
Add New /wp-admin/post-new.php?post_type=woocarousel | 6,109 | 5.34 | 151.78 | 192.93 |
Woo Carousel /wp-admin/edit.php?post_type=woocarousel | 1,463 | 3.22 | 61.80 | 126.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
Please fix the following
- 5× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/product-carousel-slider-for-woocommerce/wpcs-shortcodes.php
- > /wp-content/plugins/product-carousel-slider-for-woocommerce/wpcs-main.php
- > /wp-content/plugins/product-carousel-slider-for-woocommerce/wpcs-support.php
- > /wp-content/plugins/product-carousel-slider-for-woocommerce/wpcs-upgrade.php
- > /wp-content/plugins/product-carousel-slider-for-woocommerce/wpcs-custom-post.php
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: woocommerce slider, woocommerce product slider, woocommerce carousel, woocommerce, woocommerce product carousel
product-carousel-slider-for-woocommerce/wpcs-main.php 69% from 13 tests
"WooCommerce Product Carousel Slider" version 3.3.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.0" instead of "3.0")
- Description: Please keep the plugin description shorter than 140 characters (currently 170 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("product-carousel-slider-for-woocommerce.php" instead of "wpcs-main.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
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 plugin4,295 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 474 | 913 | 1,921 |
PHP | 7 | 256 | 184 | 1,144 |
SVG | 1 | 0 | 0 | 655 |
CSS | 11 | 87 | 78 | 575 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 42.50 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 83.00 |
Average method complexity | 7.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 71.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 2 | 8.00% |
▷ Public methods | 22 | 88.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 12.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/owl.video.play.png | 4.86KB | 2.74KB | ▼ 43.61% |
css/grabbing.png | 0.11KB | 0.14KB | 0.00% |
css/rightArrow.png | 1.15KB | 0.33KB | ▼ 71.67% |
css/title-bg.png | 0.97KB | 0.08KB | ▼ 91.73% |
css/leftArrow.png | 1.16KB | 0.33KB | ▼ 71.26% |