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
Installer ran successfully
Server metrics [RAM: ▲1.39MB] [CPU: ▲3.65ms] Passed 4 tests
A check of server-side resources used by Quick Buy For Woocommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.81 ▲1.35 | 50.75 ▲10.44 |
Dashboard /wp-admin | 4.76 ▲1.41 | 60.07 ▼0.84 |
Posts /wp-admin/edit.php | 4.81 ▲1.45 | 53.38 ▲13.90 |
Add New Post /wp-admin/post-new.php | 7.31 ▲1.43 | 90.60 ▼8.92 |
Media Library /wp-admin/upload.php | 4.62 ▲1.39 | 51.67 ▲21.81 |
Server storage [IO: ▲3.08MB] [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: 563 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Quick Buy For Woocommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.21 ▼1.54 | 2.11 ▲0.37 | 41.65 ▼2.30 |
Dashboard /wp-admin | 2,206 ▲18 | 5.82 ▲0.90 | 100.40 ▼14.91 | 40.21 ▼5.17 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.01 ▲0.04 | 36.62 ▼4.22 | 29.87 ▼9.00 |
Add New Post /wp-admin/post-new.php | 1,519 ▼0 | 23.16 ▲0.12 | 679.97 ▲50.18 | 52.13 ▲2.53 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.19 ▼0.03 | 98.15 ▲0.92 | 45.70 ▲2.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 42× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WPOnion\\DB\\Storage\\Base' not found in wp-content/plugins/woocommerce-quick-buy/vendor/wponion/wponion/core/db/storage/class-user.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function wponion() in wp-content/plugins/woocommerce-quick-buy/vendor/wponion/wponion/includes/templates/wc/taxonomy.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wponion() in wp-content/plugins/woocommerce-quick-buy/vendor/wponion/wponion/includes/templates/wp/widgets.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wponion() in wp-content/plugins/woocommerce-quick-buy/vendor/wponion/wponion/includes/templates/wp-modern/nav_menu.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wponion() in wp-content/plugins/woocommerce-quick-buy/vendor/wponion/wponion/includes/templates/wp-lite/taxonomy.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wponion() in wp-content/plugins/woocommerce-quick-buy/vendor/wponion/wponion/includes/templates/wp-modern/widgets.php:2
- > PHP Fatal error
Uncaught Error: Class 'WPOnion\\Bridge\\Module_Utility' not found in wp-content/plugins/woocommerce-quick-buy/vendor/wponion/wponion/core/modules/admin/class-pointers.php:15
- > PHP Fatal error
Uncaught Error: Class 'WPOnion\\Field' not found in wp-content/plugins/woocommerce-quick-buy/vendor/wponion/wponion/includes/fields/visual-button-editor/class-visual-button-editor.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function wponion() in wp-content/plugins/woocommerce-quick-buy/vendor/wponion/wponion/includes/templates/wc/widgets.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wponion() in wp-content/plugins/woocommerce-quick-buy/vendor/wponion/wponion/includes/templates/wp/nav_menu.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Tags: Please delete some tags, you are using 28 tag instead of maximum 10
woocommerce-quick-buy/wc-quick-buy.php 85% from 13 tests
This is the main PHP file of "Quick Buy For Woocommerce" version 2.8.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("woocommerce-quick-buy.php" instead of "wc-quick-buy.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin36,411 lines of code in 481 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 461 | 6,173 | 21,148 | 36,214 |
SVG | 2 | 0 | 0 | 108 |
JavaScript | 5 | 9 | 0 | 72 |
JSON | 8 | 0 | 0 | 8 |
XML | 1 | 0 | 0 | 5 |
CSS | 4 | 0 | 0 | 4 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 12.13 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 230.00 |
Average method complexity | 2.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 70 | |
Interfaces | 4 | |
Traits | 43 | |
Classes | 334 | |
▷ Abstract classes | 51 | 15.27% |
▷ Concrete classes | 283 | 84.73% |
▷ Final classes | 14 | 4.95% |
Methods | 2,437 | |
▷ Static methods | 246 | 10.09% |
▷ Public methods | 1,681 | 68.98% |
▷ Protected methods | 699 | 28.68% |
▷ Private methods | 57 | 2.34% |
Functions | 302 | |
▷ Named functions | 292 | 96.69% |
▷ Anonymous functions | 10 | 3.31% |
Constants | 27 | |
▷ Global constants | 17 | 62.96% |
▷ Class constants | 10 | 37.04% |
▷ Public constants | 10 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
52 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/wponion/wponion/assets/img/layouts/100/body/full-width.png | 0.46KB | 0.27KB | ▼ 40.21% |
vendor/wponion/wponion/assets/img/layouts/125/body/boxed.png | 0.41KB | 0.21KB | ▼ 49.53% |
vendor/wponion/wponion/assets/img/layouts/100/sidebar/dual-sidebar.png | 0.37KB | 0.16KB | ▼ 55.56% |
vendor/wponion/wponion/assets/img/layouts/100/sidebar/dual-sidebar-right.png | 0.37KB | 0.17KB | ▼ 53.72% |
vendor/varunsridharan/vsp-framework/assets/img/noimage.png | 2.54KB | 1.54KB | ▼ 39.40% |