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
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.03ms] Passed 4 tests
Server-side resources used by Product Enquiry for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.60 ▲0.99 |
Dashboard /wp-admin | 3.31 ▲0.01 | 49.35 ▲2.63 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.97 ▼5.95 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.92 ▼13.12 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 31.91 ▼2.05 |
Server storage [IO: ▲2.54MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 120 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Product Enquiry for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲105 | 14.80 ▲0.51 | 1.95 ▲0.16 | 38.60 ▼7.20 |
Dashboard /wp-admin | 2,221 ▲33 | 5.83 ▲0.92 | 104.08 ▼7.63 | 41.01 ▼5.67 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 2.14 ▲0.14 | 35.01 ▼6.15 | 34.77 ▲0.02 |
Add New Post /wp-admin/post-new.php | 1,560 ▲41 | 18.53 ▼4.73 | 620.71 ▼6.95 | 63.46 ▲7.96 |
Media Library /wp-admin/upload.php | 1,406 ▲18 | 4.25 ▲0.03 | 97.81 ▲1.40 | 41.36 ▲0.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
Please take a closer look at the following
- 15× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Product_Enquiry_For_Woocommerce' not found in wp-content/plugins/product-enquiry-for-woocommerce/templates/pdf-options.php:8
- > PHP Fatal error
Uncaught Error: Class 'Product_Enquiry_For_Woocommerce' not found in wp-content/plugins/product-enquiry-for-woocommerce/templates/email-information.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/product-enquiry-for-woocommerce/templates/pro-banner.php:4
- > PHP Fatal error
Uncaught Error: Class 'Product_Enquiry_For_Woocommerce' not found in wp-content/plugins/product-enquiry-for-woocommerce/templates/terms-condition-options.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/product-enquiry-for-woocommerce/templates/premium.php:18
- > PHP Fatal error
Uncaught Error: Class 'Product_Enquiry_For_Woocommerce' not found in wp-content/plugins/product-enquiry-for-woocommerce/templates/enq-button-options.php:8
- > PHP Warning
Use of undefined constant WDM_PE_PLUGIN_URL - assumed 'WDM_PE_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/product-enquiry-for-woocommerce/templates/pro-banner.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'Product_Enquiry_For_Woocommerce' not found in wp-content/plugins/product-enquiry-for-woocommerce/templates/form-options.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/product-enquiry-for-woocommerce/templates/newsletter-subscribe-form.php:27
- > PHP Fatal error
Uncaught Error: Class 'Product_Enquiry_For_Woocommerce' not found in wp-content/plugins/product-enquiry-for-woocommerce/templates/styling-options.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, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
5 plugin tags: request a quote woocommerce, woocommerce enquiry, product enquiry for woocommerce, woocommerce inquiry, product inquiry for woocommerce
product-enquiry-for-woocommerce/product-enquiry-for-woocommerce.php Passed 13 tests
Analyzing the main PHP file in "Product Enquiry for WooCommerce" version 3.1.6
109 characters long description:
Allows prospective customers or visitors to make enquiry about a product, right from within the product page.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin6,120 lines of code in 58 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 358 | 174 | 2,674 |
PHP | 34 | 175 | 757 | 1,728 |
SVG | 3 | 0 | 1 | 716 |
PO File | 2 | 232 | 269 | 588 |
JavaScript | 14 | 29 | 36 | 414 |
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.28 |
Average class complexity | 7.60 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 2.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 1 | 6.67% |
Methods | 67 | |
▷ Static methods | 17 | 25.37% |
▷ Public methods | 64 | 95.52% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 4.48% |
Functions | 19 | |
▷ Named functions | 19 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
47 compressed PNG files occupy 0.69MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/public/images/ui-bg_glass_55_444444_1x400.png | 0.12KB | 0.16KB | 0.00% |
assets/admin/img/scroll-icon.png | 0.56KB | 0.58KB | 0.00% |
assets/admin/img/services-icons/shopping.png | 5.02KB | 2.98KB | ▼ 40.70% |
assets/public/images/ui-bg_glass_25_e1f0f5_1x400.png | 0.11KB | 0.11KB | 0.00% |
assets/admin/img/wisdm-BFCM.png | 27.51KB | 28.55KB | 0.00% |