Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.26ms] Passed 4 tests
This is a short check of server-side resources used by Flance Add Multiple Products order form for Woocommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 35.72 ▼6.08 |
Dashboard /wp-admin | 3.33 ▲0.03 | 46.94 ▼8.01 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 47.96 ▼4.02 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 92.07 ▼6.72 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 32.51 ▼4.22 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 37 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
flance_amp_product_cat |
flance_amp_do_activation_redirect |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Flance Add Multiple Products order form for Woocommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲42 | 14.33 ▼0.03 | 1.67 ▼0.12 | 37.51 ▼7.51 |
Dashboard /wp-admin | 2,209 ▲32 | 5.62 ▼0.02 | 95.50 ▼9.06 | 44.15 ▼2.37 |
Posts /wp-admin/edit.php | 2,115 ▲15 | 2.00 ▲0.00 | 41.44 ▲2.74 | 35.90 ▲0.57 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 23.33 ▼0.13 | 597.17 ▼69.40 | 54.51 ▼6.79 |
Media Library /wp-admin/upload.php | 1,414 ▲14 | 4.17 ▼0.08 | 95.59 ▼0.52 | 44.01 ▲3.46 |
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
- This plugin does not fully uninstall, leaving 8 options in the database
- flance_amp_product_cat
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- flance_amp_do_activation_redirect
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 10× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/flance-add-multiple-products-order-form-for-woocommerce/public/partials/html-calculas.php on line 66
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/flance-add-multiple-products-order-form-for-woocommerce/widget/partials/html-public-view.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wc_get_cart_url() in wp-content/plugins/flance-add-multiple-products-order-form-for-woocommerce/public/partials/html-calculas.php:168
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/flance-add-multiple-products-order-form-for-woocommerce/public/partials/html-public-table.php:21
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/flance-add-multiple-products-order-form-for-woocommerce/widget/class-flance-add-multiple-products-widget.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/flance-add-multiple-products-order-form-for-woocommerce/widget/partials/html-admin-view.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function shortcode_atts() in wp-content/plugins/flance-add-multiple-products-order-form-for-woocommerce/public/partials/html-public-shortcode-input-field.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/flance-add-multiple-products-order-form-for-woocommerce/admin/partials/html-admin-form.php:2
- > PHP Notice
Undefined variable: idi in wp-content/plugins/flance-add-multiple-products-order-form-for-woocommerce/public/partials/html-calculas.php on line 14
- > PHP Notice
Undefined variable: formclass in wp-content/plugins/flance-add-multiple-products-order-form-for-woocommerce/public/partials/html-calculas.php on line 6
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 79% from 29 tests
readme.txt 81% 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
These attributes need your attention:
- Screenshots: Add an image for screenshot #2 (Settings page. You can change or set the necessary settings form this page.)
- Tags: You are using too many tags: 14 tag instead of maximum 10
- Requires at least: Version format is invalid
flance-add-multiple-products-order-form-for-woocommerce/flance_add_multiple_products_order_form_woocommerce.php 77% from 13 tests
The main PHP script in "Flance Add Multiple Products order form for Woocommerce" version 4.1.0 is automatically included on every request by WordPress
The following require your attention:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("flance-add-multiple-products-order-form-for-woocommerce.php" instead of "flance_add_multiple_products_order_form_woocommerce.php")
- Description: Keep the plugin description shorter than 140 characters (currently 195 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin1,015 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 207 | 575 | 905 |
CSS | 2 | 19 | 5 | 91 |
JavaScript | 1 | 3 | 1 | 19 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 8.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 2.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 5 | 12.50% |
▷ Public methods | 35 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 12.50% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/sodathemes-typw.png | 9.64KB | 5.05KB | ▼ 47.56% |
admin/img/logo.png | 67.70KB | 40.89KB | ▼ 39.59% |
admin/img/sodathemes-wsc.png | 6.94KB | 3.49KB | ▼ 49.66% |
admin/img/sodathemes-wamp.png | 5.63KB | 2.96KB | ▼ 47.41% |