Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.17ms] Passed 4 tests
A check of server-side resources used by Woocommerce Quote Calculator
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 34.55 ▼2.00 |
Dashboard /wp-admin | 3.33 ▼0.02 | 45.11 ▼10.97 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 47.18 ▼1.31 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 92.91 ▼10.38 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.31 ▼0.59 |
Add New /wp-admin/admin.php?page=WooQco-newquote | 3.22 | 30.72 |
Export /wp-admin/admin.php?page=WooQco-export | 3.22 | 37.72 |
Import /wp-admin/admin.php?page=WooQco-import | 3.21 | 29.47 |
Woo Quotes /wp-admin/admin.php?page=woo-qco | 3.21 | 32.33 |
Help /wp-admin/admin.php?page=WooQco-help | 3.21 | 29.70 |
Server storage [IO: ▲1.53MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
Please try to fix the following items
- Illegal file modification found: 1 file (0.00KB) outside of "wp-content/plugins/woo-quote-calculator-order/" and "wp-content/uploads/"
- (new file) wp-admin/woo-simple-quote-2023-10-08.csv
Filesystem: 53 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_woo_quote_calculator |
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Woocommerce Quote Calculator
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲88 | 13.19 ▼1.21 | 1.58 ▼0.18 | 40.12 ▼2.69 |
Dashboard /wp-admin | 2,240 ▲49 | 4.95 ▼0.07 | 106.42 ▼0.35 | 78.75 ▲32.83 |
Posts /wp-admin/edit.php | 2,126 ▲34 | 1.97 ▼0.08 | 36.88 ▼5.85 | 33.68 ▼3.15 |
Add New Post /wp-admin/post-new.php | 1,545 ▲9 | 23.04 ▼0.27 | 690.63 ▲34.57 | 53.14 ▼1.42 |
Media Library /wp-admin/upload.php | 1,425 ▲37 | 4.23 ▲0.01 | 97.16 ▼10.33 | 73.73 ▲25.82 |
Add New /wp-admin/admin.php?page=WooQco-newquote | 1,046 | 1.87 | 28.64 | 56.93 |
Export /wp-admin/admin.php?page=WooQco-export | 916 | 2.07 | 23.90 | 33.71 |
Import /wp-admin/admin.php?page=WooQco-import | 929 | 2.02 | 21.08 | 33.66 |
Woo Quotes /wp-admin/admin.php?page=woo-qco | 949 | 2.17 | 22.56 | 35.58 |
Help /wp-admin/admin.php?page=WooQco-help | 1,163 | 1.87 | 23.35 | 125.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_woo_quote_calculator
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
Smoke tests 50% 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 everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-quote-calculator-order/classes/WooQcoModel.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/woo-quote-calculator-order/classes/WooQcoShortcode.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-quote-calculator-order/classes/WooQcoModel.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=WooQco-newquote
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=WooQco-newquote 291:27 Uncaught SyntaxError: Unexpected token '}'
- > GET request to /wp-admin/admin.php?page=WooQco-newquote
- > Network (severe)
wp-content/plugins/woo-quote-calculator-order/css/NewQuoteCss.css - Failed to load resource: the server responded with a status of 404 (Not 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: Please delete some tags, you are using 11 tag instead of maximum 10
woo-quote-calculator-order/woo_quote_calculator_and_order.php 85% from 13 tests
The primary PHP file in "Woocommerce Quote Calculator" version 1.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woo-quote-calculator-order.php" instead of "woo_quote_calculator_and_order.php")
- Description: Keep the plugin description shorter than 140 characters (currently 432 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin2,542 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 146 | 436 | 1,270 |
SVG | 1 | 0 | 0 | 655 |
CSS | 6 | 52 | 5 | 441 |
HTML | 1 | 35 | 0 | 154 |
JavaScript | 2 | 0 | 0 | 22 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
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 | 19.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 82.00 |
Average method complexity | 4.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 41.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 30 | 61.22% |
▷ Public methods | 47 | 95.92% |
▷ Protected methods | 1 | 2.04% |
▷ Private methods | 1 | 2.04% |
Functions | 1 | |
▷ Named functions | 1 | 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
22 PNG files occupy 0.60MB with 0.38MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon.png | 3.18KB | 0.78KB | ▼ 75.57% |
documentation/images/frontend-1.png | 33.53KB | 14.06KB | ▼ 58.05% |
images/close-icon.png | 3.80KB | 1.08KB | ▼ 71.70% |
documentation/images/fields.png | 43.17KB | 18.84KB | ▼ 56.35% |
documentation/images/edit.png | 72.50KB | 30.47KB | ▼ 57.98% |