Benchmarks
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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.36ms] Passed 4 tests
Analyzing server-side resources used by YITH WooCommerce Product Slider Carousel
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 48.82 ▲10.52 |
Dashboard /wp-admin | 3.33 ▲0.03 | 47.48 ▼2.49 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 49.18 ▼0.43 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 80.28 ▼13.69 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.08 ▼0.81 |
Server storage [IO: ▲4.74MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 341 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
yit_recently_activated |
Browser metrics Passed 4 tests
An overview of browser requirements for YITH WooCommerce Product Slider Carousel
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲34 | 14.34 ▼0.42 | 1.93 ▲0.16 | 42.92 ▼1.56 |
Dashboard /wp-admin | 2,201 ▲21 | 5.60 ▼0.04 | 89.05 ▼0.39 | 41.34 ▼2.39 |
Posts /wp-admin/edit.php | 2,110 ▲10 | 1.96 ▼0.06 | 34.40 ▼5.18 | 30.91 ▼4.14 |
Add New Post /wp-admin/post-new.php | 1,532 ▲5 | 23.49 ▲0.09 | 670.81 ▲29.66 | 57.91 ▲7.99 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.17 ▼0.01 | 96.31 ▼6.00 | 42.81 ▼2.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- yit_recently_activated
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/yith-woocommerce-product-slider-carousel/templates/admin/premium.php:136
- > PHP Fatal error
Uncaught Error: Call to undefined function yit_ie_version() in wp-content/plugins/yith-woocommerce-product-slider-carousel/templates/admin/lightbox.php:37
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: There are too many tags (17 tag instead of maximum 10)
yith-woocommerce-product-slider-carousel/init.php 77% from 13 tests
The primary PHP file in "YITH WooCommerce Product Slider Carousel" version 1.29.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 273 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("yith-woocommerce-product-slider-carousel.php" instead of "init.php")
- Requires at least: Required version does not match the one declared in readme.txt ("6.2" instead of "8.2")
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 plugin47,056 lines of code in 266 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 172 | 2,738 | 5,353 | 15,574 |
CSS | 22 | 2,217 | 289 | 12,295 |
JavaScript | 56 | 1,867 | 1,848 | 11,410 |
PO File | 6 | 1,566 | 1,920 | 4,307 |
SVG | 9 | 0 | 1 | 3,430 |
XML | 1 | 12 | 9 | 40 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 41.93 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 336.00 |
Average method complexity | 4.01 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 29 | |
▷ Abstract classes | 1 | 3.45% |
▷ Concrete classes | 28 | 96.55% |
▷ Final classes | 0 | 0.00% |
Methods | 382 | |
▷ Static methods | 52 | 13.61% |
▷ Public methods | 309 | 80.89% |
▷ Protected methods | 53 | 13.87% |
▷ Private methods | 20 | 5.24% |
Functions | 140 | |
▷ Named functions | 132 | 94.29% |
▷ Anonymous functions | 8 | 5.71% |
Constants | 19 | |
▷ Global constants | 18 | 94.74% |
▷ Class constants | 1 | 5.26% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
51 PNG files occupy 0.57MB with 0.26MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
plugin-fw/assets/images/colorbox/border1.png | 0.61KB | 0.82KB | 0.00% |
plugin-fw/assets/images/double-sidebar.png | 0.95KB | 0.12KB | ▼ 87.73% |
plugin-fw/assets/images/licence-error.png | 1.61KB | 0.94KB | ▼ 41.62% |
assets/images/03-icon.png | 1.82KB | 1.14KB | ▼ 37.39% |
assets/images/02.png | 73.10KB | 27.42KB | ▼ 62.49% |