Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.22ms] Passed 4 tests
An overview of server-side resources used by YITH Color and Label Variations for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.92 ▼0.90 |
Dashboard /wp-admin | 3.32 ▲0.02 | 44.54 ▼1.55 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 47.38 ▲3.45 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 84.17 ▼7.87 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 33.08 ▲1.44 |
Server storage [IO: ▲4.16MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 328 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
yit_recently_activated |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for YITH Color and Label Variations for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲53 | 14.74 ▲0.48 | 1.94 ▲0.15 | 41.05 ▼2.06 |
Dashboard /wp-admin | 2,198 ▲20 | 5.62 ▼0.04 | 93.04 ▼23.12 | 40.56 ▼3.90 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▼0.01 | 39.06 ▲5.05 | 35.38 ▼0.94 |
Add New Post /wp-admin/post-new.php | 1,526 ▼18 | 23.27 ▼1.96 | 587.79 ▼64.63 | 56.20 ▼0.62 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.19 ▼0.01 | 98.88 ▲1.91 | 43.34 ▲0.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- yit_recently_activated
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 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
5 plugin tags: woocommcere, variable product, yith, color and label variations, variations
yith-color-and-label-variations-for-woocommerce/init.php 77% from 13 tests
The main PHP script in "YITH Color and Label Variations for WooCommerce" version 2.2.0 is automatically included on every request by WordPress
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("yith-color-and-label-variations-for-woocommerce.php" instead of "init.php")
- Description: Keep the plugin description shorter than 140 characters (currently 359 characters long)
- Requires at least: Required version must be the same as the one declared in readme.txt ("5.7" instead of "8.1")
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
No dangerous file extensions were detected41,061 lines of code in 253 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 168 | 2,716 | 5,464 | 15,045 |
JavaScript | 49 | 1,345 | 842 | 9,366 |
CSS | 20 | 1,679 | 264 | 9,267 |
PO File | 7 | 1,632 | 2,035 | 4,417 |
SVG | 8 | 0 | 1 | 2,926 |
XML | 1 | 12 | 9 | 40 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 42.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 336.00 |
Average method complexity | 4.03 |
▷ 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 | 385 | |
▷ Static methods | 49 | 12.73% |
▷ Public methods | 310 | 80.52% |
▷ Protected methods | 55 | 14.29% |
▷ Private methods | 20 | 5.19% |
Functions | 146 | |
▷ Named functions | 134 | 91.78% |
▷ Anonymous functions | 12 | 8.22% |
Constants | 17 | |
▷ Global constants | 14 | 82.35% |
▷ Class constants | 3 | 17.65% |
▷ Public constants | 3 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
54 PNG files occupy 0.96MB with 0.33MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
plugin-fw/assets/images/x.png | 0.70KB | 0.71KB | 0.00% |
assets/images/04-icon.png | 1.42KB | 0.64KB | ▼ 55.01% |
assets/images/02-bg.png | 5.21KB | 2.67KB | ▼ 48.61% |
plugin-fw/assets/images/sleep.png | 0.11KB | 0.11KB | ▼ 5.13% |
assets/images/05.png | 45.62KB | 16.14KB | ▼ 64.62% |