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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼10.58ms] Passed 4 tests
Analyzing server-side resources used by YITH WooCommerce Quick View
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 37.41 ▼5.86 |
Dashboard /wp-admin | 3.33 ▼0.02 | 45.72 ▼14.54 |
Posts /wp-admin/edit.php | 3.39 ▲0.02 | 48.07 ▲0.17 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.02 | 81.07 ▼22.09 |
Media Library /wp-admin/upload.php | 3.26 ▲0.02 | 39.39 ▲5.91 |
Server storage [IO: ▲4.12MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 384 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
yit_recently_activated |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for YITH WooCommerce Quick View
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲49 | 14.32 ▼0.02 | 1.75 ▼0.02 | 40.10 ▼2.35 |
Dashboard /wp-admin | 2,201 ▲24 | 5.59 ▲0.04 | 86.07 ▼13.22 | 42.44 ▼1.61 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.97 ▼0.03 | 38.28 ▲2.28 | 38.44 ▲1.17 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 23.10 ▲0.20 | 663.66 ▲22.55 | 52.02 ▼7.31 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.20 ▲0.04 | 100.75 ▼3.04 | 42.33 ▼3.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- yit_recently_activated
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP Passed 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
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 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== yith-woocommerce-quick-view ===
)
yith-woocommerce-quick-view/init.php 77% from 13 tests
"YITH WooCommerce Quick View" version 1.33.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 247 characters long)
- Requires at least: Required version must be the same as the one declared in readme.txt ("6.2" instead of "8.1")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("yith-woocommerce-quick-view.php" instead of "init.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin45,635 lines of code in 303 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 171 | 2,711 | 5,499 | 15,224 |
JavaScript | 63 | 1,489 | 1,038 | 10,226 |
CSS | 19 | 1,669 | 246 | 9,313 |
PO File | 7 | 1,698 | 2,171 | 4,509 |
Sass | 34 | 652 | 15 | 3,432 |
SVG | 8 | 0 | 1 | 2,926 |
XML | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 42.97 |
▷ 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 | 389 | |
▷ Static methods | 52 | 13.37% |
▷ Public methods | 317 | 81.49% |
▷ Protected methods | 52 | 13.37% |
▷ Private methods | 20 | 5.14% |
Functions | 141 | |
▷ Named functions | 133 | 94.33% |
▷ Anonymous functions | 8 | 5.67% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
58 PNG files occupy 0.73MB with 0.17MB 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% |
plugin-fw/assets/css/jquery-ui/images/ui-icons_222222_256x240.png | 3.69KB | 4.18KB | 0.00% |
plugin-fw/assets/css/jquery-ui/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.08KB | 0.08KB | 0.00% |
assets/image/07-bg.png | 2.47KB | 1.13KB | ▼ 54.07% |
assets/image/08-icon.png | 1.75KB | 0.61KB | ▼ 65.37% |