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: ▼4.24ms] Passed 4 tests
Server-side resources used by YITH WooCommerce Brands Add-On
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 33.92 ▼10.41 |
Dashboard /wp-admin | 3.33 ▲0.03 | 46.23 ▼2.21 |
Posts /wp-admin/edit.php | 3.39 ▲0.02 | 49.18 ▼3.62 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.02 | 92.42 ▼0.73 |
Media Library /wp-admin/upload.php | 3.26 ▲0.02 | 34.26 ▲0.69 |
Server storage [IO: ▲4.38MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 319 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
yit_recently_activated |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for YITH WooCommerce Brands Add-On
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲34 | 14.30 ▲0.02 | 1.56 ▼0.19 | 35.86 ▼10.80 |
Dashboard /wp-admin | 2,201 ▲21 | 5.58 ▼0.06 | 92.49 ▼5.18 | 41.41 ▼2.70 |
Posts /wp-admin/edit.php | 2,110 ▲10 | 2.09 ▲0.13 | 41.11 ▲1.62 | 38.58 ▼2.67 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 23.42 ▼0.39 | 683.12 ▲26.98 | 60.12 ▼0.01 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.15 ▼0.06 | 96.58 ▼1.96 | 42.67 ▲1.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- yit_recently_activated
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 86% 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 require attention:
- Tags: There are too many tags (19 tag instead of maximum 10)
yith-woocommerce-brands-add-on/init.php 77% from 13 tests
"YITH WooCommerce Brands Add-On" version 2.18.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 380 characters long)
- Requires at least: Required version must match 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-brands-add-on.php" instead of "init.php")
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
Success! There were no dangerous files found in this plugin42,024 lines of code in 265 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 175 | 2,811 | 6,056 | 15,504 |
JavaScript | 47 | 1,333 | 835 | 9,354 |
CSS | 20 | 1,672 | 243 | 9,219 |
PO File | 10 | 1,815 | 2,277 | 4,943 |
SVG | 9 | 0 | 1 | 2,948 |
XML | 2 | 12 | 9 | 48 |
HTML | 2 | 0 | 32 | 8 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 41.23 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 336.00 |
Average method complexity | 3.87 |
▷ 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 | 420 | |
▷ Static methods | 68 | 16.19% |
▷ Public methods | 340 | 80.95% |
▷ Protected methods | 60 | 14.29% |
▷ Private methods | 20 | 4.76% |
Functions | 149 | |
▷ Named functions | 139 | 93.29% |
▷ Anonymous functions | 10 | 6.71% |
Constants | 19 | |
▷ Global constants | 18 | 94.74% |
▷ Class constants | 1 | 5.26% |
▷ 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
30 PNG files occupy 1.10MB with 0.45MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/get-premium-brands.png | 1,066.88KB | 278.41KB | ▼ 73.90% |
plugin-fw/assets/css/jquery-ui/images/ui-icons_2e83ff_256x240.png | 3.69KB | 4.18KB | 0.00% |
plugin-fw/assets/images/ui-icons_454545_256x240.png | 6.83KB | 4.17KB | ▼ 38.86% |
plugin-fw/assets/css/jquery-ui/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.08KB | 0.08KB | 0.00% |
plugin-fw/assets/images/no-sidebar.png | 0.92KB | 0.08KB | ▼ 90.72% |