Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▼3.90ms] Passed 4 tests
Analyzing server-side resources used by Product Addons & Fields for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.19 | 46.05 ▲5.98 |
Dashboard /wp-admin | 3.51 ▲0.20 | 55.53 ▼4.50 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 56.49 ▲6.08 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.20 | 91.51 ▼23.17 |
Media Library /wp-admin/upload.php | 3.41 ▲0.19 | 44.38 ▲8.75 |
PPOM Fields /wp-admin/admin.php?page=ppom | 3.64 | 49.10 |
Server storage [IO: ▲8.93MB] [DB: ▲0.38MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 347 new files
Database: 1 new table, 10 new options
New tables |
---|
wp_nm_personalized |
New WordPress options |
---|
ppom_demo_meta_installed |
widget_recent-comments |
woocommerce_product_addon_install |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
personalizedproduct_db_version |
db_upgraded |
ppom_settings_migration_done |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Product Addons & Fields for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,917 ▲156 | 14.26 ▼0.09 | 1.81 ▲0.22 | 33.95 ▼8.71 |
Dashboard /wp-admin | 2,326 ▲146 | 5.69 ▲0.04 | 86.56 ▼7.21 | 47.12 ▲6.29 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.94 ▼0.17 | 38.88 ▲0.18 | 34.53 ▲0.17 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.19 ▼0.37 | 652.05 ▲1.07 | 62.90 ▲2.51 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.19 ▼0.01 | 100.27 ▼2.47 | 42.39 ▼3.54 |
PPOM Fields /wp-admin/admin.php?page=ppom | 1,415 | 4.65 | 75.07 | 37.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.38MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie tables detected upon uninstall: 1 table
- wp_nm_personalized
- The uninstall procedure has failed, leaving 10 options in the database
- widget_recent-posts
- woocommerce_product_addon_install
- ppom_settings_migration_done
- can_compress_scripts
- theysaidso_admin_options
- ppom_demo_meta_installed
- widget_theysaidso_widget
- db_upgraded
- personalizedproduct_db_version
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 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
Please fix the following
- 13× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/woocommerce-product-addon/classes/admin.class.php
- > /wp-content/plugins/woocommerce-product-addon/inc/admin.php
- > /wp-content/plugins/woocommerce-product-addon/inc/files.php
- > /wp-content/plugins/woocommerce-product-addon/inc/functions.php
- > /wp-content/plugins/woocommerce-product-addon/classes/fields.class.php
- > /wp-content/plugins/woocommerce-product-addon/templates/admin/addons-list.php
- > /wp-content/plugins/woocommerce-product-addon/inc/woocommerce.php
- > /wp-content/plugins/woocommerce-product-addon/inc/hooks.php
- > /wp-content/plugins/woocommerce-product-addon/inc/arrays.php
- > /wp-content/plugins/woocommerce-product-addon/templates/admin/products-list.php
- 28× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PPOM_Inputs' not found in wp-content/plugins/woocommerce-product-addon/classes/inputs/input.daterange.php:8
- > PHP Fatal error
Uncaught Error: Class 'PPOM_Inputs' not found in wp-content/plugins/woocommerce-product-addon/classes/inputs/input.palettes.php:8
- > PHP Fatal error
Uncaught Error: Class 'PPOM_Inputs' not found in wp-content/plugins/woocommerce-product-addon/classes/inputs/input.cropper.php:6
- > PHP Fatal error
Uncaught Error: Class 'PPOM_Inputs' not found in wp-content/plugins/woocommerce-product-addon/classes/inputs/input.email.php:8
- > PHP Fatal error
Uncaught Error: Class 'PPOM_Inputs' not found in wp-content/plugins/woocommerce-product-addon/classes/inputs/input.select.php:8
- > PHP Fatal error
Uncaught Error: Class 'PPOM_Inputs' not found in wp-content/plugins/woocommerce-product-addon/classes/inputs/input.image.php:8
- > PHP Fatal error
Uncaught Error: Class 'PPOM_Inputs' not found in wp-content/plugins/woocommerce-product-addon/classes/inputs/input.textarea.php:8
- > PHP Fatal error
Uncaught Error: Class 'PPOM_Inputs' not found in wp-content/plugins/woocommerce-product-addon/classes/inputs/input.color.php:8
- > PHP Fatal error
Uncaught Error: Class 'PPOM_Inputs' not found in wp-content/plugins/woocommerce-product-addon/classes/inputs/input.section.php:8
- > PHP Fatal error
Uncaught Error: Class 'PPOM_Inputs' not found in wp-content/plugins/woocommerce-product-addon/classes/inputs/input.audio.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: woocommerce product options, woocommerce product fields, woocommerce product, woocommerce product addon, woocommerce product addons
woocommerce-product-addon/woocommerce-product-addon.php 85% from 13 tests
The main PHP file in "Product Addons & Fields for WooCommerce" ver. 32.0.9 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Requires at least: Required version must match the one declared in readme.txt ("3.5" instead of "6.5")
- Description: Please keep the plugin description shorter than 140 characters (currently 150 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin89,278 lines of code in 245 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 128 | 6,280 | 5,317 | 24,512 |
PO File | 11 | 7,929 | 12,026 | 20,964 |
JavaScript | 42 | 3,509 | 2,009 | 19,003 |
CSS | 29 | 1,894 | 457 | 18,240 |
SVG | 2 | 0 | 0 | 2,702 |
Sass | 14 | 34 | 34 | 1,768 |
LESS | 14 | 34 | 44 | 1,758 |
Markdown | 3 | 208 | 0 | 281 |
JSON | 2 | 0 | 0 | 50 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
The following items need your attention
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 141)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 27.47 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 196.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 141.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 60 | |
▷ Abstract classes | 1 | 1.67% |
▷ Concrete classes | 59 | 98.33% |
▷ Final classes | 1 | 1.69% |
Methods | 521 | |
▷ Static methods | 92 | 17.66% |
▷ Public methods | 434 | 83.30% |
▷ Protected methods | 3 | 0.58% |
▷ Private methods | 84 | 16.12% |
Functions | 245 | |
▷ Named functions | 214 | 87.35% |
▷ Anonymous functions | 31 | 12.65% |
Constants | 28 | |
▷ Global constants | 12 | 42.86% |
▷ Class constants | 16 | 57.14% |
▷ Public constants | 16 | 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
64 PNG files occupy 2.04MB with 0.58MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/codeinwp/themeisle-sdk/assets/images/otter/otter-builder.png | 26.41KB | 26.24KB | ▼ 0.63% |
.wordpress-org/screenshot-2.png | 146.07KB | 40.35KB | ▼ 72.37% |
js/images/sort_desc.png | 0.15KB | 0.25KB | 0.00% |
images/delete.png | 5.62KB | 1.78KB | ▼ 68.26% |
js/images/sort_asc_disabled.png | 0.14KB | 0.25KB | 0.00% |