Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.71MB] [CPU: ▼0.05ms] Passed 4 tests
Server-side resources used by Product Quotation - Request a Quote for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.19 ▲0.73 | 42.22 ▲0.36 |
Dashboard /wp-admin | 4.01 ▲0.71 | 50.64 ▲2.29 |
Posts /wp-admin/edit.php | 4.06 ▲0.71 | 53.03 ▲6.78 |
Add New Post /wp-admin/post-new.php | 6.59 ▲0.71 | 93.25 ▼9.63 |
Media Library /wp-admin/upload.php | 3.93 ▲0.70 | 45.28 ▲11.40 |
Settings /wp-admin/edit.php?post_type=pqfw_quotations&page=pqfw-settings | 3.93 | 38.33 |
Help /wp-admin/edit.php?post_type=pqfw_quotations&page=pqfw-help | 3.84 | 40.34 |
Quotations /wp-admin/edit.php?post_type=pqfw_quotations | 3.98 | 41.73 |
Server storage [IO: ▲0.38MB] [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: 60 new files
Database: no new tables, 7 new options
New WordPress options |
---|
pqfw_quotations_cart |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Product Quotation - Request a Quote for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,988 ▲253 | 14.00 ▼0.38 | 9.81 ▲7.86 | 37.24 ▼17.36 |
Dashboard /wp-admin | 2,256 ▲68 | 5.85 ▲0.92 | 113.47 ▲5.69 | 96.69 ▲47.04 |
Posts /wp-admin/edit.php | 2,156 ▲67 | 2.14 ▲0.15 | 38.40 ▼2.48 | 34.62 ▼3.92 |
Add New Post /wp-admin/post-new.php | 1,584 ▲40 | 23.08 ▲4.98 | 679.79 ▲41.57 | 56.28 ▲3.95 |
Media Library /wp-admin/upload.php | 1,453 ▲68 | 4.27 ▲0.08 | 101.77 ▲2.45 | 74.32 ▲31.21 |
Settings /wp-admin/edit.php?post_type=pqfw_quotations&page=pqfw-settings | 1,029 | 6.85 | 174.59 | 57.98 |
Help /wp-admin/edit.php?post_type=pqfw_quotations&page=pqfw-help | 917 | 2.15 | 31.21 | 36.40 |
Quotations /wp-admin/edit.php?post_type=pqfw_quotations | 1,159 | 2.09 | 30.80 | 29.84 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- pqfw_quotations_cart
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% 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)
Even though no errors were found, 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
Please take a closer look at the following
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/product-quotation-for-woocommerce/includes/Views/help.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/product-quotation-for-woocommerce/includes/Views/quotation-detail.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/product-quotation-for-woocommerce/includes/Views/quotation-products-detail.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/product-quotation-for-woocommerce/includes/Views/pqfw-cart-shortcode.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Screenshots: Please add descriptions for these screenshots #6, #7, #8, #9 in product-quotation-for-woocommerce/assets to your readme.txt
product-quotation-for-woocommerce/product-quotation-for-woocommerce.php 92% from 13 tests
"Product Quotation - Request a Quote for WooCommerce" version 2.0.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
No dangerous file extensions were detected5,029 lines of code in 48 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 30 | 775 | 1,650 | 3,253 |
PO File | 3 | 354 | 408 | 1,001 |
JavaScript | 3 | 40 | 29 | 304 |
CSS | 4 | 60 | 18 | 265 |
Markdown | 1 | 65 | 0 | 179 |
JSON | 1 | 0 | 0 | 21 |
SVG | 6 | 0 | 0 | 6 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 15.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 70.00 |
Average method complexity | 2.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 22 | 100.00% |
▷ Final classes | 1 | 4.55% |
Methods | 196 | |
▷ Static methods | 2 | 1.02% |
▷ Public methods | 139 | 70.92% |
▷ Protected methods | 9 | 4.59% |
▷ Private methods | 48 | 24.49% |
Functions | 7 | |
▷ Named functions | 2 | 28.57% |
▷ Anonymous functions | 5 | 71.43% |
Constants | 9 | |
▷ Global constants | 8 | 88.89% |
▷ Class constants | 1 | 11.11% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
build/images/form.3bf7f595.png | 3.33KB | 1.97KB | ▼ 40.72% |
assets/images/pqfw-dashboard-icon.png | 1.24KB | 0.64KB | ▼ 47.91% |
build/images/reset.3bcbcd44.png | 7.77KB | 8.56KB | 0.00% |
build/images/button.3f1daf8f.png | 16.96KB | 6.93KB | ▼ 59.13% |
build/images/email.5183ffb9.png | 7.45KB | 3.84KB | ▼ 48.45% |