Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼3.43ms] Passed 4 tests
This is a short check of server-side resources used by Direct Checkout - Quick View - Buy Now For WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 34.68 ▼5.41 |
Dashboard /wp-admin | 3.31 ▼0.04 | 53.22 ▼8.14 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.73 ▲2.72 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 88.05 ▲0.40 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.10 ▼0.56 |
Server storage [IO: ▲2.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 74 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Direct Checkout - Quick View - Buy Now For WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.84 ▲0.09 | 1.62 ▼0.19 | 37.74 ▼7.89 |
Dashboard /wp-admin | 2,206 ▲15 | 5.91 ▲1.08 | 109.14 ▼8.90 | 43.00 ▼8.65 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▲0.04 | 39.01 ▲1.80 | 35.89 ▲1.00 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.04 ▲5.38 | 586.23 ▼75.95 | 63.53 ▼0.26 |
Media Library /wp-admin/upload.php | 1,382 ▼9 | 4.22 ▼0.07 | 93.91 ▼6.10 | 41.01 ▼4.24 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
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
Even though no errors were found, this is by no means 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
Almost there! Just fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'GPLSCore\\GPLS_PLUGIN_ARCW\\Quantity\\QuantityBase' not found in wp-content/plugins/quick-view-and-buy-now-for-woocommerce/includes/quantity/QuantityInput1.php:7
- > PHP Fatal error
Uncaught Error: Class 'GPLSCore\\GPLS_PLUGIN_ARCW\\Quantity\\QuantityBase' not found in wp-content/plugins/quick-view-and-buy-now-for-woocommerce/includes/quantity/QuantityInput2.php:7
- > 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 errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5, #7, #8, #9 in quick-view-and-buy-now-for-woocommerce/assets to your readme.txt
quick-view-and-buy-now-for-woocommerce/gpls-arcw-quick-view-buy-now-for-woocommerce.php 85% from 13 tests
The primary PHP file in "Direct Checkout - Quick View - Buy Now For WooCommerce" version 1.5.9 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Requires PHP: The required version number did not match the one declared in readme.txt ("5.4" instead of "5.6")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("quick-view-and-buy-now-for-woocommerce.php" instead of "gpls-arcw-quick-view-buy-now-for-woocommerce.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin4,521 lines of code in 45 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 27 | 649 | 1,910 | 4,502 |
JavaScript | 9 | 0 | 19 | 10 |
CSS | 9 | 0 | 11 | 9 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 29.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 193.00 |
Average method complexity | 3.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 1 | 5.56% |
▷ Concrete classes | 17 | 94.44% |
▷ Final classes | 0 | 0.00% |
Methods | 239 | |
▷ Static methods | 57 | 23.85% |
▷ Public methods | 209 | 87.45% |
▷ Protected methods | 6 | 2.51% |
▷ Private methods | 24 | 10.04% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
14 PNG files occupy 0.18MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/dist/images/thumbnail-circle.png | 5.88KB | 2.95KB | ▼ 49.84% |
core/assets/dist/images/logo-icon-sm.png | 0.62KB | 0.72KB | 0.00% |
core/assets/images/wp-paypal-subscriptions.png | 17.91KB | 7.09KB | ▼ 60.39% |
core/assets/images/woo-maintenance-mode.png | 33.48KB | 11.56KB | ▼ 65.46% |
core/assets/images/wp-watermark-images.png | 38.45KB | 14.82KB | ▼ 61.45% |