Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼7.83ms] Passed 4 tests
Analyzing server-side resources used by YITH WooCommerce Frequently Bought Together
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.91 ▼2.78 |
Dashboard /wp-admin | 3.31 ▼0.03 | 44.62 ▼23.12 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.04 ▼1.64 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 91.65 ▼3.76 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.53 ▲1.11 |
Server storage [IO: ▲4.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 330 new files
Database: no new tables, 7 new options
New WordPress options |
---|
yit_recently_activated |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for YITH WooCommerce Frequently Bought Together
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲74 | 14.21 ▼0.14 | 1.97 ▲0.32 | 37.09 ▼9.63 |
Dashboard /wp-admin | 2,201 ▲27 | 5.60 ▼0.00 | 91.72 ▼1.32 | 42.18 ▼4.56 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.01 ▲0.01 | 38.93 ▲2.68 | 34.75 ▲0.11 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 23.46 ▲0.50 | 612.49 ▼55.50 | 47.64 ▼21.64 |
Media Library /wp-admin/upload.php | 1,406 ▲12 | 4.27 ▲0.10 | 97.76 ▼2.62 | 44.89 ▲1.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- yit_recently_activated
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/yith-woocommerce-frequently-bought-together/plugin-options/general-options.php:14
- > 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 issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== yith-woocommerce-frequently-bought-together ===
)
yith-woocommerce-frequently-bought-together/init.php 77% from 13 tests
"YITH WooCommerce Frequently Bought Together" version 1.31.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("yith-woocommerce-frequently-bought-together.php" instead of "init.php")
- Requires at least: Required version must match the one declared in readme.txt ("5.7" instead of "8.1")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 408 characters long)
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
Everything looks great! No dangerous files found in this plugin41,720 lines of code in 253 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 170 | 2,769 | 5,444 | 15,381 |
JavaScript | 45 | 1,306 | 822 | 9,238 |
CSS | 19 | 1,659 | 243 | 9,203 |
PO File | 9 | 1,887 | 2,555 | 4,925 |
SVG | 8 | 0 | 1 | 2,926 |
XML | 2 | 12 | 9 | 47 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 43.03 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 336.00 |
Average method complexity | 4.07 |
▷ 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 | 384 | |
▷ Static methods | 52 | 13.54% |
▷ Public methods | 312 | 81.25% |
▷ Protected methods | 52 | 13.54% |
▷ Private methods | 20 | 5.21% |
Functions | 140 | |
▷ Named functions | 132 | 94.29% |
▷ Anonymous functions | 8 | 5.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
54 PNG files occupy 0.77MB with 0.27MB 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_75_dadada_1x400.png | 0.09KB | 0.16KB | 0.00% |
plugin-fw/assets/images/licence-error.png | 1.61KB | 0.94KB | ▼ 41.62% |
assets/images/02-icon.png | 1.42KB | 0.64KB | ▼ 55.01% |
plugin-fw/assets/images/ui-icons_222222_256x240.png | 6.76KB | 4.17KB | ▼ 38.24% |
plugin-fw/assets/images/ui-icons_888888_256x240.png | 6.83KB | 4.17KB | ▼ 38.92% |