Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.08MB] [CPU: ▼1.73ms] Passed 4 tests
This is a short check of server-side resources used by Add to Quote For Woocommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 44.90 ▲4.17 |
Dashboard /wp-admin | 3.39 ▲0.08 | 45.13 ▼4.73 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 48.02 ▲0.73 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 83.51 ▼6.48 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 36.56 ▲3.56 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: no new tables, 25 new options
New WordPress options |
---|
widget_recent-comments |
gmpqcw_field_customizer_enble |
gmpqcw_customer_email_subject |
widget_recent-posts |
gmpqcw_field_customizer_order |
gmpqcw_button_label |
gmpqcw_field_customizer_field |
gmpqcw_email_sucesemsg |
gmpqcw_field_customizer_required |
gmpqcw_sp_bl |
... |
Browser metrics Passed 4 tests
Add to Quote For Woocommerce: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,946 ▲211 | 13.22 ▼1.18 | 5.26 ▲3.42 | 40.02 ▼7.59 |
Dashboard /wp-admin | 2,222 ▲37 | 5.86 ▲0.05 | 102.93 ▲1.47 | 40.53 ▼1.00 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.03 ▲0.03 | 40.36 ▲6.98 | 37.05 ▲1.29 |
Add New Post /wp-admin/post-new.php | 1,547 ▲9 | 23.46 ▲0.34 | 663.73 ▲3.63 | 45.23 ▼6.29 |
Media Library /wp-admin/upload.php | 1,404 ▲16 | 4.37 ▲0.14 | 96.58 ▲3.01 | 42.35 ▲3.04 |
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
- Zombie WordPress options were found after uninstall: 25 options
- gmpqcw_button_label
- gmpqcw_sp_bl
- gmpqcw_email_body
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- gmpqcw_email_sub
- gmpqcw_field_customizer_enble
- theysaidso_admin_options
- gmpqcw_usershow
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
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
- 10× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'GMPQCW_Shortcode' not found in wp-content/plugins/product-quote-cart-for-wc/includes/GMPQCW_Frontend.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/product-quote-cart-for-wc/includes/GMPQCW_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/product-quote-cart-for-wc/includes/GMPQCW_list.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/product-quote-cart-for-wc/includes/GMPQCW_Email_customizer.php:2
- > 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/product-quote-cart-for-wc/includes/GMPQCW_list.php on line 3
- > 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/product-quote-cart-for-wc/includes/GMPQCW_list.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/product-quote-cart-for-wc/includes/GMPQCW_Translate.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/product-quote-cart-for-wc/includes/GMPQCW_Exclude.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/product-quote-cart-for-wc/includes/GMPQCW_Form_customizer.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/product-quote-cart-for-wc/includes/GMPQCW_General.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Contributors: Plugin contributors field is missing
- Screenshots: Add descriptions for screenshots #1, #3, #5, #6, #7 in product-quote-cart-for-wc/assets to your readme.txt
product-quote-cart-for-wc/product-quote-cart-for-woocommerce.php 85% from 13 tests
Analyzing the main PHP file in "Add to Quote For Woocommerce" version 1.0
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: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("product-quote-cart-for-wc.php" instead of "product-quote-cart-for-woocommerce.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin5,002 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 564 | 389 | 2,660 |
PHP | 13 | 254 | 154 | 1,621 |
CSS | 3 | 117 | 39 | 721 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 22.33 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 4.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.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
All PNG images should be compressed to minimize bandwidth usage for end users
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% |