Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > User deprecated in wp-includes/functions.php+5453
Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.57ms] Passed 4 tests
Analyzing server-side resources used by Woo Product Inquiry & Quote
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.16 ▼4.70 |
Dashboard /wp-admin | 3.31 ▲0.00 | 48.36 ▼1.57 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 52.06 ▼1.99 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 83.54 ▼22.01 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.67 ▲5.07 |
Our Themes /wp-admin/admin.php?page=wbcom-themes-page | 3.00 | 27.24 |
Support /wp-admin/admin.php?page=wbcom-support-page | 3.00 | 23.27 |
Our Plugins /wp-admin/admin.php?page=wbcom-plugins-page | 3.00 | 26.71 |
Price Quote /wp-admin/admin.php?page=wcpq-settings | 3.00 | 22.66 |
Server storage [IO: ▲1.45MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 81 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
wcpq_gen_stngs |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Woo Product Inquiry & Quote
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲18 | 14.37 ▼0.22 | 1.70 ▼0.32 | 40.73 ▼1.57 |
Dashboard /wp-admin | 2,198 ▲21 | 5.66 ▲0.04 | 94.21 ▲5.04 | 37.61 ▼3.13 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.01 ▼0.01 | 39.04 ▲4.60 | 35.49 ▼1.06 |
Add New Post /wp-admin/post-new.php | 1,545 ▲19 | 23.26 ▲5.80 | 655.85 ▲6.12 | 57.99 ▼2.96 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.28 ▲0.07 | 94.46 ▼6.79 | 43.11 ▼3.35 |
Our Themes /wp-admin/admin.php?page=wbcom-themes-page | 28 | 0.44 | 0.09 | 3.87 |
Support /wp-admin/admin.php?page=wbcom-support-page | 28 | 0.44 | 0.13 | 4.69 |
Our Plugins /wp-admin/admin.php?page=wbcom-plugins-page | 28 | 0.44 | 0.06 | 4.78 |
Price Quote /wp-admin/admin.php?page=wcpq-settings | 28 | 0.44 | 0.09 | 4.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- wcpq_gen_stngs
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/woo-price-quote-inquiry/admin/wbcom/templates/wbcom-plugins-page.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/woo-price-quote-inquiry/admin/wbcom/templates/wbcom-license-page.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/woo-price-quote-inquiry/admin/wbcom/templates/wbcom-support-page.php:5
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=wbcom-themes-page
- > Network (severe)
wp-admin/admin.php?page=wbcom-themes-page - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/admin.php?page=wbcom-support-page
- > Network (severe)
wp-admin/admin.php?page=wbcom-support-page - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/admin.php?page=wbcom-plugins-page
- > Network (severe)
wp-admin/admin.php?page=wbcom-plugins-page - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/admin.php?page=wcpq-settings
- > Network (severe)
wp-admin/admin.php?page=wcpq-settings - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4 in woo-price-quote-inquiry/assets to your readme.txt
woo-price-quote-inquiry/woo-price-quote-inquiry.php 85% from 13 tests
The principal PHP file in "Woo Product Inquiry & Quote" v. 1.3.3 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Description: Keep the plugin description shorter than 140 characters (currently 281 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected10,782 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 6,113 |
PHP | 24 | 348 | 817 | 2,234 |
CSS | 4 | 309 | 76 | 2,062 |
JavaScript | 5 | 41 | 66 | 364 |
XML | 1 | 0 | 0 | 9 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 14.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 86.00 |
Average method complexity | 2.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 65 | |
▷ Static methods | 2 | 3.08% |
▷ Public methods | 59 | 90.77% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 9.23% |
Functions | 21 | |
▷ Named functions | 21 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
10 PNG files occupy 0.76MB with 0.51MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 203.97KB | 52.58KB | ▼ 74.22% |
admin/images/single-product.png | 54.75KB | 14.50KB | ▼ 73.51% |
screenshot-3.png | 126.48KB | 48.54KB | ▼ 61.63% |
screenshot-4.png | 154.16KB | 41.56KB | ▼ 73.04% |
admin/wbcom/assets/imgs/wbcom-offer-notice.png | 67.64KB | 32.40KB | ▼ 52.11% |