Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.58ms] Passed 4 tests
An overview of server-side resources used by Quotes for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 35.01 ▼6.91 |
Dashboard /wp-admin | 3.31 ▲0.00 | 50.66 ▼0.85 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.53 ▲2.16 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 85.07 ▼3.53 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.64 ▼3.04 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Quotes for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.43 ▲0.03 | 1.86 ▼0.12 | 38.18 ▼12.53 |
Dashboard /wp-admin | 2,195 ▲15 | 5.58 ▼0.09 | 91.24 ▼6.00 | 38.20 ▼4.07 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.00 ▼0.01 | 35.54 ▼2.48 | 31.83 ▼5.74 |
Add New Post /wp-admin/post-new.php | 1,526 ▼3 | 23.34 ▲0.21 | 686.53 ▲73.91 | 60.73 ▲0.27 |
Media Library /wp-admin/upload.php | 1,400 ▲6 | 4.25 ▲0.05 | 97.36 ▼1.73 | 41.83 ▲0.21 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% 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 | 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
- 15× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WC_Email' not found in wp-content/plugins/quotes-for-woocommerce/includes/emails/class-qwc-request-sent.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quotes-for-woocommerce/includes/blocks/class-quotes-wc-blocks-integration.php:21
- > PHP Fatal error
Uncaught Error: Class 'Automattic\\WooCommerce\\Blocks\\Payments\\Integrations\\AbstractPaymentMethodType' not found in wp-content/plugins/quotes-for-woocommerce/includes/blocks/class-quotes-payment-gateway-blocks.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function is_rtl() in wp-content/plugins/quotes-for-woocommerce/templates/emails/new-quote-request-sent-customer.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function is_rtl() in wp-content/plugins/quotes-for-woocommerce/templates/emails/plain/request-new-quote.php:5
- > PHP Fatal error
Uncaught Error: Class 'WC_Email' not found in wp-content/plugins/quotes-for-woocommerce/includes/emails/class-qwc-send-quote.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function is_rtl() in wp-content/plugins/quotes-for-woocommerce/templates/emails/request-new-quote.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function is_rtl() in wp-content/plugins/quotes-for-woocommerce/templates/emails/plain/new-quote-request-sent-customer.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/quotes-for-woocommerce/class-quotes-wc.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quotes-for-woocommerce/includes/admin/class-quotes-general-settings-page.php:21
- > PHP Fatal error
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, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots require images: #1 (Plugin settings.), #2 (Product page.), #3 (WooCommerce Orders page.), #4 (Quote email.)
quotes-for-woocommerce/quotes-woocommerce.php 77% from 13 tests
This is the main PHP file of "Quotes for WooCommerce" version 2.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 254 characters long)
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: It is recommended to name the main PHP file as the plugin slug ("quotes-for-woocommerce.php" instead of "quotes-woocommerce.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected3,067 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 519 | 864 | 1,946 |
PO File | 4 | 313 | 561 | 956 |
JavaScript | 4 | 15 | 60 | 87 |
CSS | 2 | 2 | 14 | 43 |
JSON | 1 | 1 | 0 | 28 |
XML | 1 | 2 | 0 | 7 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 18.18 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 112.00 |
Average method complexity | 2.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 1 | 9.09% |
Methods | 96 | |
▷ Static methods | 7 | 7.29% |
▷ Public methods | 96 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 8 | 61.54% |
▷ Anonymous functions | 5 | 38.46% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot_2.png | 14.81KB | 5.93KB | ▼ 59.95% |
screenshot_1.png | 18.56KB | 8.78KB | ▼ 52.71% |
screenshot_3.png | 16.46KB | 6.89KB | ▼ 58.12% |
screenshot_4.png | 24.40KB | 9.91KB | ▼ 59.39% |