Benchmarks
Plugin footprint 65% 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.44MB] [CPU: ▼0.02ms] Passed 4 tests
Server-side resources used by Extra Product Options Builder for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.93 ▲0.46 | 37.23 ▼6.70 |
Dashboard /wp-admin | 3.78 ▲0.48 | 52.12 ▲3.04 |
Posts /wp-admin/edit.php | 3.83 ▲0.47 | 50.69 ▲5.87 |
Add New Post /wp-admin/post-new.php | 6.31 ▲0.42 | 97.85 ▼2.29 |
Media Library /wp-admin/upload.php | 3.64 ▲0.41 | 38.82 ▲7.72 |
Welcome /wp-admin/index.php?page=woo-extra-product-welcome | 3.61 | 35.40 |
Server storage [IO: ▲10.09MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 304 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_rednaowooextraproduct_global_table |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
rednao_rednaowooextraproduct_db_version |
theysaidso_admin_options |
_woo_extra_products_go_to_welcome |
AllInOneNoticeTime |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Extra Product Options Builder for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,886 ▲139 | 14.03 ▼0.25 | 1.77 ▲0.08 | 38.26 ▼4.72 |
Dashboard /wp-admin | 2,251 ▲76 | 5.35 ▼0.23 | 102.30 ▼14.37 | 89.48 ▲46.22 |
Posts /wp-admin/edit.php | 2,182 ▲82 | 2.67 ▲0.71 | 40.70 ▲1.30 | 42.03 ▲6.21 |
Add New Post /wp-admin/post-new.php | 1,588 ▲62 | 23.33 ▲0.14 | 709.45 ▲60.22 | 35.91 ▼13.27 |
Media Library /wp-admin/upload.php | 1,463 ▲69 | 4.92 ▲0.71 | 101.85 ▲3.08 | 79.13 ▲36.65 |
Welcome /wp-admin/index.php?page=woo-extra-product-welcome | 912 | 2.60 | 28.64 | 29.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie tables were found after uninstall: 1 table
- wp_rednaowooextraproduct_global_table
- Zombie WordPress options were found after uninstall: 9 options
- _woo_extra_products_go_to_welcome
- widget_recent-comments
- AllInOneNoticeTime
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- rednao_rednaowooextraproduct_db_version
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/additional-product-fields-for-woocommerce/pages/Welcome.php
- > /wp-content/plugins/additional-product-fields-for-woocommerce/templates/cart/cart-item-data.php
- > /wp-content/plugins/additional-product-fields-for-woocommerce/templates/cart/cart-item-data2.php
- 89× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'rednaowooextraproduct\\core\\Managers\\FormManager\\Calculator\\CalculatorBase' not found in wp-content/plugins/additional-product-fields-for-woocommerce/core/Managers/FormManager/Calculator/PricePerCharCalculator.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/additional-product-fields-for-woocommerce/jstranslations/ProductFieldBuilder.php:2
- > PHP Fatal error
Uncaught Error: Class 'rednaowooextraproduct\\core\\Managers\\SlateGenerator\\Core\odeElementBase' not found in wp-content/plugins/additional-product-fields-for-woocommerce/core/Managers/SlateGenerator/Text/Span.php:10
- > PHP Fatal error
Uncaught Error: Class 'rednaowooextraproduct\\core\\Managers\\FormManager\\Calculator\\CalculatorBase' not found in wp-content/plugins/additional-product-fields-for-woocommerce/core/Managers/FormManager/Calculator/GlobalCalculator.php:7
- > PHP Fatal error
Uncaught Error: Class 'rednaowooextraproduct\\core\\Managers\\FormManager\\Fields\\FBFieldBase' not found in wp-content/plugins/additional-product-fields-for-woocommerce/core/Managers/FormManager/Fields/FBTextField.php:7
- > PHP Fatal error
Uncaught Error: Class 'rednaowooextraproduct\\core\\Managers\\FormManager\\Fields\\FBFieldBase' not found in wp-content/plugins/additional-product-fields-for-woocommerce/core/Managers/FormManager/Fields/FBAppointment.php:7
- > PHP Fatal error
Uncaught Error: Class 'rednaowooextraproduct\\core\\Managers\\ConditionManager\\Comparator\\ComparatorBase' not found in wp-content/plugins/additional-product-fields-for-woocommerce/core/Managers/ConditionManager/Comparator/NumericalValueComparator.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/additional-product-fields-for-woocommerce/jstranslations/InternalShared.php:2
- > PHP Fatal error
Uncaught Error: Class 'rednaowooextraproduct\\core\\Managers\\FormManager\\Calculator\\CalculatorBase' not found in wp-content/plugins/additional-product-fields-for-woocommerce/core/Managers/FormManager/Calculator/PricePerItemCalculator.php:11
- > PHP Fatal error
Uncaught Error: Class 'rednaowooextraproduct\\core\\Managers\\FormManager\\Fields\\FBFieldBase' not found in wp-content/plugins/additional-product-fields-for-woocommerce/core/Managers/FormManager/Fields/FBSignature.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Screenshots: A description for screenshot #0 is missing in additional-product-fields-for-woocommerce/assets to your readme.txt
additional-product-fields-for-woocommerce/rednaowooextraproduct.php 85% from 13 tests
This is the main PHP file of "Extra Product Options Builder for WooCommerce" version 1.2.100, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("additional-product-fields-for-woocommerce.php" instead of "rednaowooextraproduct.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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
Good job! No executable or dangerous file extensions detected20,767 lines of code in 259 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 38 | 1,422 | 178 | 11,019 |
PHP | 137 | 2,116 | 340 | 7,980 |
JavaScript | 73 | 350 | 767 | 1,334 |
PO File | 1 | 157 | 176 | 339 |
SVG | 7 | 0 | 7 | 63 |
JSON | 2 | 0 | 0 | 26 |
TypeScript | 1 | 1 | 0 | 6 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 9.48 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 87.00 |
Average method complexity | 3.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 64.00 |
Code structure | ||
---|---|---|
Namespaces | 36 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 121 | |
▷ Abstract classes | 10 | 8.26% |
▷ Concrete classes | 111 | 91.74% |
▷ Final classes | 0 | 0.00% |
Methods | 460 | |
▷ Static methods | 28 | 6.09% |
▷ Public methods | 403 | 87.61% |
▷ Protected methods | 8 | 1.74% |
▷ Private methods | 49 | 10.65% |
Functions | 20 | |
▷ Named functions | 1 | 5.00% |
▷ Anonymous functions | 19 | 95.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
32 PNG files occupy 0.15MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/fieldimages/likertscale.png | 0.37KB | 0.44KB | 0.00% |
images/promo.png | 22.75KB | 9.66KB | ▼ 57.52% |
images/fieldimages/popup.png | 0.19KB | 0.18KB | ▼ 5.70% |
images/fieldimages/textarea.png | 0.15KB | 0.11KB | ▼ 25.49% |
images/fieldimages/date.png | 0.92KB | 0.74KB | ▼ 18.96% |