Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲1.79MB] [CPU: ▲7.31ms] 75% from 4 tests
Server-side resources used by YITH Essential Kit for WooCommerce #1
The following require your attention
- CPU: The total CPU usage must kept under 500.00ms (currently 6,885.90ms on /wp-admin/admin.php?page=yith-jetpack-modules1)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.27 ▲1.80 | 49.37 ▲6.61 |
Dashboard /wp-admin | 5.72 ▲2.37 | 72.02 ▲10.07 |
Posts /wp-admin/edit.php | 5.18 ▲1.82 | 66.32 ▲18.44 |
Add New Post /wp-admin/post-new.php | 7.67 ▲1.78 | 95.33 ▼5.00 |
Media Library /wp-admin/upload.php | 4.99 ▲1.76 | 49.52 ▲17.57 |
YITH Essential Kit Migration /wp-admin/index.php?page=yith-essential-kit-migration-page | 4.94 | 46.91 |
System Status /wp-admin/admin.php?page=yith_system_info | 5.09 | 904.99 |
YITH Essential Kit for WooCommerce #1 /wp-admin/admin.php?page=yith-jetpack-modules1 | 5.41 | 6,885.90 |
Server storage [IO: ▲3.35MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 381 new files
Database: no new tables, 8 new options
New WordPress options |
---|
yit_recently_activated |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
yith_system_info |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
YITH Essential Kit for WooCommerce #1: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,253 ▲506 | 14.43 ▲0.03 | 1.54 ▼0.13 | 39.23 ▼3.70 |
Dashboard /wp-admin | 2,640 ▲466 | 5.88 ▲0.23 | 98.77 ▲11.92 | 103.90 ▲63.44 |
Posts /wp-admin/edit.php | 2,154 ▲51 | 1.97 ▲0.00 | 37.61 ▼0.86 | 34.33 ▲2.90 |
Add New Post /wp-admin/post-new.php | 1,728 ▲202 | 22.19 ▼1.11 | 625.64 ▼45.48 | 48.27 ▼3.71 |
Media Library /wp-admin/upload.php | 1,451 ▲51 | 4.23 ▲0.03 | 99.21 ▼13.87 | 63.88 ▲14.97 |
YITH Essential Kit Migration /wp-admin/index.php?page=yith-essential-kit-migration-page | 844 | 1.99 | 24.02 | 26.54 |
System Status /wp-admin/admin.php?page=yith_system_info | 1,305 | 2.01 | 26.97 | 52.01 |
YITH Essential Kit for WooCommerce #1 /wp-admin/admin.php?page=yith-jetpack-modules1 | 1,626 | 2.05 | 22.48 | 47.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin did not uninstall successfully, leaving 8 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- yith_system_info
- theysaidso_admin_options
- yit_recently_activated
- widget_recent-comments
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/index.php?page=yith-essential-kit-migration-page
- > Warning in wp-includes/pluggable.php+1438
Cannot modify header information - headers already sent by (output started at wp-includes/script-loader.php:2838)
SRP 0% 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
Please take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/yith-essential-kit-for-woocommerce-1/plugin-fw/tests/bootstrap.php
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Upgrader_Skin' not found in wp-content/plugins/yith-essential-kit-for-woocommerce-1/class-yith-essential-kit-upgrader-skin.php:12
- > PHP Fatal error
Uncaught Error: Class 'YITH_Plugin_FW_Panels_Helper' not found in wp-content/plugins/yith-essential-kit-for-woocommerce-1/plugin-fw/tests/framework/plugin-options/wc-panel-options.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/yith-essential-kit-for-woocommerce-1/migration.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/yith-essential-kit-for-woocommerce-1/plugin-fw/tests/unit-tests/class-yith-plugin-fw-tests-plugin-panel-wc.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
yith-essential-kit-for-woocommerce-1/init.php 85% from 13 tests
The primary PHP file in "YITH Essential Kit for WooCommerce #1" version 2.26.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("yith-essential-kit-for-woocommerce-1.php" instead of "init.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 345 characters long)
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
No dangerous file extensions were detected45,482 lines of code in 320 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 173 | 2,751 | 5,479 | 15,399 |
JavaScript | 69 | 1,496 | 1,045 | 10,364 |
CSS | 20 | 1,644 | 251 | 8,908 |
PO File | 6 | 1,560 | 1,908 | 4,295 |
Sass | 34 | 614 | 15 | 3,221 |
SVG | 8 | 0 | 1 | 2,926 |
JSON | 3 | 0 | 0 | 128 |
Bourne Shell | 1 | 22 | 11 | 121 |
XML | 2 | 12 | 9 | 55 |
YAML | 1 | 13 | 11 | 52 |
Dockerfile | 1 | 5 | 0 | 7 |
INI | 1 | 1 | 0 | 5 |
SQL | 1 | 1 | 5 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 40.06 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 335.00 |
Average method complexity | 3.94 |
▷ 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 | 398 | |
▷ Static methods | 53 | 13.32% |
▷ Public methods | 325 | 81.66% |
▷ Protected methods | 53 | 13.32% |
▷ Private methods | 20 | 5.03% |
Functions | 139 | |
▷ Named functions | 131 | 94.24% |
▷ Anonymous functions | 8 | 5.76% |
Constants | 22 | |
▷ Global constants | 15 | 68.18% |
▷ Class constants | 7 | 31.82% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
35 compressed PNG files occupy 0.07MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/crown.png | 1.11KB | 0.43KB | ▼ 61.25% |
plugin-fw/assets/css/jquery-ui/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.08KB | 0.08KB | 0.00% |
plugin-fw/assets/css/jquery-ui/images/ui-icons_454545_256x240.png | 3.69KB | 4.18KB | 0.00% |
plugin-fw/assets/images/sleep.png | 0.11KB | 0.11KB | ▼ 5.13% |
plugin-fw/assets/css/jquery-ui/images/ui-bg_glass_65_ffffff_1x400.png | 0.08KB | 0.10KB | 0.00% |