Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼1.85ms] Passed 4 tests
This is a short check of server-side resources used by YITH WooCommerce Compare
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.93 ▲4.07 |
Dashboard /wp-admin | 3.31 ▲0.01 | 43.91 ▼1.38 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 44.91 ▲1.06 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 89.79 ▼7.74 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 31.76 ▲0.68 |
Server storage [IO: ▲4.98MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 400 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
yit_recently_activated |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for YITH WooCommerce Compare
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲59 | 14.67 ▲0.40 | 2.05 ▲0.25 | 44.16 ▼0.04 |
Dashboard /wp-admin | 2,204 ▲27 | 5.59 ▼0.09 | 89.57 ▲1.93 | 39.67 ▼1.25 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.94 ▼0.07 | 39.48 ▲2.95 | 36.72 ▼1.00 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 23.35 ▲0.08 | 628.15 ▲16.71 | 60.32 ▲18.22 |
Media Library /wp-admin/upload.php | 1,409 ▲9 | 4.18 ▼0.02 | 98.50 ▼0.81 | 44.31 ▲2.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- yit_recently_activated
Smoke tests Passed 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 Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% 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
5 plugin tags: compare products, woocommerce compare, product compare, yith, product comparison
yith-woocommerce-compare/init.php 77% from 13 tests
Analyzing the main PHP file in "YITH WooCommerce Compare" version 2.33.0
It is important to fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("6.2" instead of "8.0")
- Main file name: Name the main plugin file the same as the plugin slug ("yith-woocommerce-compare.php" instead of "init.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 317 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected45,785 lines of code in 280 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 171 | 2,885 | 5,648 | 16,052 |
JavaScript | 54 | 1,367 | 876 | 9,661 |
CSS | 28 | 1,706 | 264 | 9,487 |
PO File | 17 | 2,934 | 3,806 | 7,613 |
SVG | 8 | 0 | 1 | 2,926 |
XML | 2 | 12 | 9 | 46 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 44.39 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 336.00 |
Average method complexity | 4.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 31 | |
▷ Abstract classes | 1 | 3.23% |
▷ Concrete classes | 30 | 96.77% |
▷ Final classes | 0 | 0.00% |
Methods | 413 | |
▷ Static methods | 53 | 12.83% |
▷ Public methods | 340 | 82.32% |
▷ Protected methods | 53 | 12.83% |
▷ Private methods | 20 | 4.84% |
Functions | 137 | |
▷ Named functions | 128 | 93.43% |
▷ Anonymous functions | 9 | 6.57% |
Constants | 18 | |
▷ Global constants | 17 | 94.44% |
▷ Class constants | 1 | 5.56% |
▷ 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
87 PNG files occupy 1.29MB with 0.30MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/socials/behance.png | 2.24KB | 2.23KB | 0.48% |
assets/images/04-bg.png | 6.93KB | 3.78KB | ▼ 45.47% |
plugin-fw/assets/images/sleep.png | 0.11KB | 0.11KB | ▼ 5.13% |
assets/images/08.png | 82.76KB | 29.18KB | ▼ 64.74% |
plugin-fw/assets/css/jquery-ui/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.08KB | 0.08KB | 0.00% |