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.22MB] [CPU: ▼140.66ms] Passed 4 tests
A check of 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.02 ▲0.30 | 53.73 ▲27.75 |
Dashboard /wp-admin | 3.26 ▲0.21 | 63.83 ▲2.09 |
Posts /wp-admin/edit.php | 3.37 ▲0.27 | 59.17 ▲6.90 |
Add New Post /wp-admin/post-new.php | 5.62 ▲0.19 | 100.66 ▼575.41 |
Media Library /wp-admin/upload.php | 3.20 ▲0.20 | 42.93 ▲3.80 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 16 new options
New WordPress options |
---|
gmwqp_sp_bl |
gmwqp_field_customizer_required |
gmwqp_field_customizer_order |
gmwqp_label_show |
gmwqp_cart_display |
gmwqp_display |
gmwqp_cart_button_label |
gmwqp_email_sucesemsg |
gmwqp_field_customizer_field |
gmwqp_field_customizer_type |
... |
Browser metrics Passed 4 tests
This is 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 / | 3,823 ▲251 | 15.91 ▲0.14 | 12.26 ▼2.06 | 52.05 ▼10.78 |
Dashboard /wp-admin | 3,020 ▲86 | 7.10 ▲1.11 | 156.28 ▼3.54 | 114.45 ▼2.31 |
Posts /wp-admin/edit.php | 2,795 ▲56 | 2.72 ▲0.00 | 83.76 ▼8.27 | 104.12 ▼1.44 |
Add New Post /wp-admin/post-new.php | 1,655 ▲40 | 21.73 ▲0.28 | 327.48 ▲13.50 | 124.02 ▲15.37 |
Media Library /wp-admin/upload.php | 1,860 ▲53 | 5.54 ▲0.50 | 162.67 ▼4.49 | 126.40 ▲1.51 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 16 options in the database
- gmwqp_email_sucesemsg
- gmwqp_field_customizer_order
- gmwqp_field_customizer_field
- gmwqp_sp_bl
- gmwqp_button_label
- gmwqp_field_customizer_type
- gmwqp_label_show
- gmwqp_field_customizer_enble
- gmwqp_customer_email_subject
- gmwqp_usershow
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 10× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/gm-woocommerce-quote-popup/includes/GMWQP_list.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/gm-woocommerce-quote-popup/includes/GMWQP_Exclude.php:2
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/gm-woocommerce-quote-popup/includes/GMWQP_list.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/gm-woocommerce-quote-popup/includes/GMWQP_Enquiry_Button_Cart.php:2
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/gm-woocommerce-quote-popup/includes/GMWQP_list.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/gm-woocommerce-quote-popup/includes/GMWQP_Email_customizer.php:2
- > PHP Fatal error
Uncaught Error: Class 'GMWQP_Shortcode' not found in wp-content/plugins/gm-woocommerce-quote-popup/includes/GMWQP_Frontend.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/gm-woocommerce-quote-popup/includes/GMWQP_General.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/gm-woocommerce-quote-popup/includes/GMWQP_Enquiry_Button.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/gm-woocommerce-quote-popup/includes/GMWQP_Form_customizer.php:3
- > PHP Warning
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 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Contributors: Plugin contributors not specified
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5, #6, #7, #8, #9 in gm-woocommerce-quote-popup/assets to your readme.txt
gm-woocommerce-quote-popup/gm-woo-request-quote.php 85% from 13 tests
The primary PHP file in "Product Enquiry for WooCommerce" version 3.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("gm-woocommerce-quote-popup.php" instead of "gm-woo-request-quote.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin4,865 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 563 | 387 | 2,649 |
PHP | 13 | 256 | 124 | 1,478 |
CSS | 3 | 117 | 39 | 738 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 19.83 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 3.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 42 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/select2/select2.png | 0.51KB | 0.99KB | 0.00% |
assents/img/close_btn.png | 36.22KB | 17.59KB | ▼ 51.42% |