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.00MB] [CPU: ▼1.74ms] Passed 4 tests
This is a short check of server-side resources used by Product Enquiry for WooCommerce, WooCommerce product catalog
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.12 ▼4.87 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.06 ▼1.94 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.80 ▲3.26 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.77 ▲0.17 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.18 ▼0.31 |
Server storage [IO: ▲1.28MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 70 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Product Enquiry for WooCommerce, WooCommerce product catalog
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.27 ▲0.03 | 1.82 ▼0.05 | 38.26 ▼6.84 |
Dashboard /wp-admin | 2,195 ▲18 | 5.62 ▼0.01 | 90.43 ▼5.22 | 38.80 ▼2.27 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▲0.03 | 39.70 ▲1.94 | 36.97 ▼0.09 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.15 ▼0.05 | 589.26 ▼107.28 | 62.81 ▲11.27 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.15 ▼0.03 | 96.09 ▼0.67 | 41.77 ▼0.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Please fix the following
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/enquiry-quotation-for-woocommerce/public/partials/email-template.php
- > /wp-content/plugins/enquiry-quotation-for-woocommerce/includes/pisol.class.form.php
- 13× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/enquiry-quotation-for-woocommerce/includes/includes.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/enquiry-quotation-for-woocommerce/admin/class-eqw-product-options.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/enquiry-quotation-for-woocommerce/admin/partials/enquiry_detail.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function pisol_email_table_row() in wp-content/plugins/enquiry-quotation-for-woocommerce/public/partials/pisol-eqw-email.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/enquiry-quotation-for-woocommerce/includes/banner-sample.php:63
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/enquiry-quotation-for-woocommerce/public/class-eqw-product.php:14
- > PHP Notice
Trying to get property 'ID' of non-object in wp-content/plugins/enquiry-quotation-for-woocommerce/admin/partials/enquiry_detail.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/enquiry-quotation-for-woocommerce/public/partials/pisol-eqw-shortcode.php:7
- > PHP Notice
Undefined variable: enquiry in wp-content/plugins/enquiry-quotation-for-woocommerce/admin/partials/enquiry_detail.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/enquiry-quotation-for-woocommerce/public/class-eqw-enquiry-shortcode.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
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: These screenshots lack descriptions #10, #11, #13, #14, #15, #16, #17, #18, #19, #7, #9 in enquiry-quotation-for-woocommerce/assets to your readme.txt
enquiry-quotation-for-woocommerce/pisol-enquiry-quotation-woocommerce.php 85% from 13 tests
This is the main PHP file of "Product Enquiry for WooCommerce, WooCommerce product catalog" version 2.2.33.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("enquiry-quotation-for-woocommerce.php" instead of "pisol-enquiry-quotation-woocommerce.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin16,364 lines of code in 57 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 2,096 | 25 | 9,556 |
SVG | 8 | 6 | 6 | 3,424 |
PHP | 37 | 784 | 489 | 3,028 |
JavaScript | 7 | 83 | 112 | 348 |
XML | 1 | 0 | 0 | 8 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 13.28 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 66.00 |
Average method complexity | 2.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 25 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 25 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 185 | |
▷ Static methods | 19 | 10.27% |
▷ Public methods | 180 | 97.30% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 2.70% |
Functions | 10 | |
▷ Named functions | 9 | 90.00% |
▷ Anonymous functions | 1 | 10.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.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
6 PNG files occupy 0.25MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/pi-web-solution.png | 21.25KB | 9.42KB | ▼ 55.67% |
includes/background.png | 74.27KB | 26.29KB | ▼ 64.60% |
admin/img/pi.png | 1.48KB | 1.11KB | ▼ 24.83% |
admin/img/close.png | 4.32KB | 3.39KB | ▼ 21.57% |
public/img/Logo.png | 23.41KB | 10.43KB | ▼ 55.44% |