Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.74ms] Passed 4 tests
Analyzing server-side resources used by Enable Quantity Field On Shop Page for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 39.19 ▼4.76 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.50 ▼2.47 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.26 ▼2.06 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 89.91 ▼1.65 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.69 ▼0.43 |
Quantity Field on Shop Page /wp-admin/admin.php?page=istwqfs-quantity-field | 3.00 | 23.89 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Enable Quantity Field On Shop Page for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲103 | 13.39 ▼1.00 | 1.73 ▼0.41 | 43.70 ▼3.41 |
Dashboard /wp-admin | 2,206 ▲18 | 4.86 ▼0.21 | 107.93 ▼1.18 | 42.22 ▼2.27 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.04 ▲0.04 | 39.04 ▼2.60 | 34.45 ▲1.16 |
Add New Post /wp-admin/post-new.php | 1,545 ▲12 | 18.69 ▼4.42 | 605.69 ▼75.32 | 55.75 ▲0.15 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.19 ▼0.04 | 96.07 ▼4.21 | 40.95 ▼4.91 |
Quantity Field on Shop Page /wp-admin/admin.php?page=istwqfs-quantity-field | 28 | 0.44 | 0.07 | 3.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
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 Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=istwqfs-quantity-field
- > Network (severe)
wp-admin/admin.php?page=istwqfs-quantity-field - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: quantity, woocommerce, shop page, shop, quantity field
enable-quantity-field-on-shop-page-for-woocommerce/enable-quantity-field-on-shop-page-for-woocommerce.php Passed 13 tests
The main file in "Enable Quantity Field On Shop Page for WooCommerce" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
102 characters long description:
This plugin allows you to Create Quantity Field on WooCommerce Shop Page and Product Category Pages...
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
Success! There were no dangerous files found in this plugin742 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 61 | 146 | 312 |
PHP | 4 | 72 | 31 | 294 |
CSS | 2 | 0 | 0 | 136 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 12.33 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 3.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 1 | 33.33% |
Methods | 15 | |
▷ Static methods | 3 | 20.00% |
▷ Public methods | 11 | 73.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 26.67% |
Functions | 4 | |
▷ Named functions | 4 | 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 Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/check-mark.png | 4.33KB | 2.52KB | ▼ 41.85% |