Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.53ms] Passed 4 tests
Server-side resources used by YITH WooCommerce Product Bundles
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 40.57 ▼1.16 |
Dashboard /wp-admin | 3.33 ▲0.03 | 48.91 ▼4.60 |
Posts /wp-admin/edit.php | 3.39 ▲0.02 | 47.92 ▼2.97 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.02 | 93.61 ▼1.38 |
Media Library /wp-admin/upload.php | 3.26 ▲0.02 | 34.95 ▲2.72 |
Server storage [IO: ▲4.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 327 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
yit_recently_activated |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by YITH WooCommerce Product Bundles
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲49 | 14.24 ▼0.10 | 1.67 ▲0.08 | 48.08 ▲2.97 |
Dashboard /wp-admin | 2,198 ▲20 | 5.50 ▼0.11 | 89.88 ▼21.04 | 37.39 ▼7.53 |
Posts /wp-admin/edit.php | 2,107 ▲4 | 2.02 ▲0.04 | 38.17 ▼1.47 | 38.75 ▲0.87 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 23.21 ▲0.16 | 633.10 ▼18.83 | 46.66 ▼8.16 |
Media Library /wp-admin/upload.php | 1,409 ▲15 | 4.19 ▼0.01 | 100.26 ▲2.36 | 44.22 ▲1.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- theysaidso_admin_options
- yit_recently_activated
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/yith-woocommerce-product-bundles/templates/premium.php:206
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/yith-woocommerce-product-bundles/templates/how-to.php:63
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Tags: You are using too many tags: 15 tag instead of maximum 10
yith-woocommerce-product-bundles/init.php 77% from 13 tests
The principal PHP file in "YITH WooCommerce Product Bundles" v. 2.1.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 309 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("yith-woocommerce-product-bundles.php" instead of "init.php")
- Requires at least: Required version does not match the one declared in readme.txt ("6.2" instead of "8.1")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin44,350 lines of code in 271 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 182 | 3,035 | 6,204 | 16,715 |
CSS | 22 | 1,782 | 321 | 10,744 |
JavaScript | 50 | 1,360 | 825 | 9,577 |
PO File | 6 | 1,566 | 1,920 | 4,307 |
SVG | 8 | 0 | 1 | 2,926 |
XML | 3 | 24 | 17 | 81 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 41.09 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 336.00 |
Average method complexity | 3.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 35 | |
▷ Abstract classes | 1 | 2.86% |
▷ Concrete classes | 34 | 97.14% |
▷ Final classes | 0 | 0.00% |
Methods | 467 | |
▷ Static methods | 56 | 11.99% |
▷ Public methods | 377 | 80.73% |
▷ Protected methods | 67 | 14.35% |
▷ Private methods | 23 | 4.93% |
Functions | 150 | |
▷ Named functions | 142 | 94.67% |
▷ Anonymous functions | 8 | 5.33% |
Constants | 22 | |
▷ Global constants | 21 | 95.45% |
▷ Class constants | 1 | 4.55% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
35 PNG files occupy 0.73MB with 0.30MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
plugin-fw/assets/css/jquery-ui/images/ui-bg_glass_95_fef1ec_1x400.png | 0.11KB | 0.14KB | 0.00% |
plugin-fw/assets/images/yithemes-icon.png | 0.43KB | 0.42KB | ▼ 2.03% |
plugin-fw/assets/images/sidebar-right.png | 0.95KB | 0.11KB | ▼ 87.91% |
plugin-fw/assets/images/banner-premium.png | 10.78KB | 5.54KB | ▼ 48.66% |
assets/images/how-to/06.png | 483.80KB | 170.06KB | ▼ 64.85% |