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
This plugin's installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼6.25ms] Passed 4 tests
Server-side resources used by YITH Request a Quote for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.02 ▼5.59 |
Dashboard /wp-admin | 3.31 ▼0.03 | 46.36 ▼17.28 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 51.54 ▲8.03 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 82.89 ▼1.88 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 33.76 ▼0.24 |
Server storage [IO: ▲5.72MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 351 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
yit_recently_activated |
Browser metrics Passed 4 tests
Checking browser requirements for YITH Request a Quote for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲49 | 14.65 ▲0.41 | 1.90 ▲0.33 | 43.50 ▲0.52 |
Dashboard /wp-admin | 2,204 ▲26 | 5.62 ▼0.09 | 96.93 ▼16.55 | 44.18 ▼1.86 |
Posts /wp-admin/edit.php | 2,107 ▲4 | 2.03 ▲0.00 | 33.53 ▼2.02 | 33.19 ▲1.73 |
Add New Post /wp-admin/post-new.php | 1,532 ▼4 | 23.34 ▲0.01 | 674.80 ▲34.37 | 65.73 ▲18.23 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.19 ▲0.05 | 100.29 ▲4.73 | 42.97 ▲0.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- yit_recently_activated
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 | 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 fix the following items
- 7× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/yith-woocommerce-request-a-quote/templates/request-quote.php:15
- > PHP Notice
Undefined variable: product_id in wp-content/plugins/yith-woocommerce-request-a-quote/templates/add-to-quote.php on line 17
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/yith-woocommerce-request-a-quote/templates/add-to-quote.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/yith-woocommerce-request-a-quote/templates/request-quote-view.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/yith-woocommerce-request-a-quote/templates/add-to-quote-button.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/yith-woocommerce-request-a-quote/templates/emails/request-quote.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/yith-woocommerce-request-a-quote/templates/request-quote-form.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 90% 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:
- Tags: There are too many tags (18 tag instead of maximum 10)
yith-woocommerce-request-a-quote/yith-woocommerce-request-a-quote.php 85% from 13 tests
The main PHP script in "YITH Request a Quote for WooCommerce" version 2.27.0 is automatically included on every request by WordPress
It is important to fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("6.2" instead of "8.1.0")
- Description: Keep the plugin description shorter than 140 characters (currently 394 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected44,427 lines of code in 270 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 182 | 3,016 | 6,029 | 16,648 |
JavaScript | 49 | 1,343 | 838 | 9,403 |
CSS | 19 | 1,675 | 258 | 9,219 |
PO File | 10 | 2,474 | 3,822 | 6,176 |
SVG | 8 | 0 | 1 | 2,926 |
XML | 2 | 12 | 9 | 55 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 42.94 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 336.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 32 | |
▷ Abstract classes | 1 | 3.12% |
▷ Concrete classes | 31 | 96.88% |
▷ Final classes | 0 | 0.00% |
Methods | 434 | |
▷ Static methods | 52 | 11.98% |
▷ Public methods | 360 | 82.95% |
▷ Protected methods | 52 | 11.98% |
▷ Private methods | 22 | 5.07% |
Functions | 156 | |
▷ Named functions | 148 | 94.87% |
▷ Anonymous functions | 8 | 5.13% |
Constants | 19 | |
▷ Global constants | 18 | 94.74% |
▷ Class constants | 1 | 5.26% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
30 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
plugin-fw/assets/css/jquery-ui/images/ui-icons_454545_256x240.png | 3.69KB | 4.18KB | 0.00% |
plugin-fw/assets/images/no-sidebar.png | 0.92KB | 0.08KB | ▼ 90.72% |
plugin-fw/assets/css/jquery-ui/images/ui-bg_glass_75_dadada_1x400.png | 0.09KB | 0.16KB | 0.00% |
plugin-fw/assets/images/ui-icons_454545_256x240.png | 6.83KB | 4.17KB | ▼ 38.86% |
plugin-fw/assets/css/jquery-ui/images/ui-icons_888888_256x240.png | 3.69KB | 4.18KB | 0.00% |