Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.25ms] Passed 4 tests
This is a short check of server-side resources used by YITH WooCommerce Product Add-Ons
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.85 ▼5.51 |
Dashboard /wp-admin | 3.31 ▲0.01 | 45.94 ▼0.83 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 47.26 ▼2.13 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 95.30 ▲11.70 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 32.15 ▼0.52 |
Server storage [IO: ▲6.66MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 428 new files
Database: no new tables, 7 new options
New WordPress options |
---|
yit_recently_activated |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by YITH WooCommerce Product Add-Ons
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲34 | 14.42 ▲0.23 | 1.51 ▼0.21 | 38.24 ▼4.04 |
Dashboard /wp-admin | 2,198 ▲20 | 5.59 ▼0.11 | 92.45 ▼21.87 | 41.92 ▼4.37 |
Posts /wp-admin/edit.php | 2,110 ▲10 | 1.96 ▼0.01 | 39.12 ▼4.36 | 38.20 ▲1.64 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 23.42 ▲0.51 | 589.95 ▲1.70 | 65.49 ▲15.35 |
Media Library /wp-admin/upload.php | 1,409 ▲9 | 4.17 ▼0.03 | 97.63 ▼1.85 | 42.19 ▼0.73 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- yit_recently_activated
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
The following issues need your attention
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/yith-woocommerce-product-add-ons/templates/front/addons-price-table.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function yith_wapo_get_addon_tabs() in wp-content/plugins/yith-woocommerce-product-add-ons/views/addon-editor/addon-tabs.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 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
Attributes that require attention:
- Tags: There are too many tags (11 tag instead of maximum 10)
yith-woocommerce-product-add-ons/init.php 85% from 13 tests
The main PHP file in "YITH WooCommerce Product Add-Ons" ver. 4.3.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 275 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("yith-woocommerce-product-add-ons.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
There were no executable files found in this plugin57,788 lines of code in 319 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 210 | 4,131 | 7,552 | 21,768 |
JavaScript | 49 | 1,977 | 1,167 | 11,971 |
CSS | 20 | 1,677 | 308 | 11,057 |
PO File | 12 | 5,267 | 10,567 | 9,718 |
SVG | 26 | 0 | 17 | 3,229 |
XML | 2 | 12 | 9 | 45 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for 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.53 |
Average class complexity | 50.92 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 336.00 |
Average method complexity | 4.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 47.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 38 | |
▷ Abstract classes | 1 | 2.63% |
▷ Concrete classes | 37 | 97.37% |
▷ Final classes | 0 | 0.00% |
Methods | 520 | |
▷ Static methods | 63 | 12.12% |
▷ Public methods | 433 | 83.27% |
▷ Protected methods | 56 | 10.77% |
▷ Private methods | 31 | 5.96% |
Functions | 170 | |
▷ Named functions | 162 | 95.29% |
▷ Anonymous functions | 8 | 4.71% |
Constants | 36 | |
▷ Global constants | 29 | 80.56% |
▷ Class constants | 7 | 19.44% |
▷ 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
60 PNG files occupy 0.14MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
plugin-fw/assets/images/ui-icons_2e83ff_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
assets/img/icon-edit.png | 2.58KB | 1.33KB | ▼ 48.33% |
assets/css/images/ui-bg_highlight-soft_75_ffe45c_1x100.png | 0.13KB | 0.18KB | 0.00% |
plugin-fw/assets/images/no-sidebar.png | 0.92KB | 0.08KB | ▼ 90.72% |
plugin-fw/assets/images/licence-error.png | 1.61KB | 0.94KB | ▼ 41.62% |