Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.01MB] [CPU: ▼9.45ms] Passed 4 tests
A check of server-side resources used by Direct checkout, Add to cart redirect, Quick purchase button, Buy now button, Quick View button for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 33.24 ▼7.45 |
Dashboard /wp-admin | 3.31 ▼0.04 | 44.36 ▼14.25 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.26 ▼9.53 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.73 ▼6.55 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.86 ▲1.10 |
Server storage [IO: ▲2.65MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 59 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Direct checkout, Add to cart redirect, Quick purchase button, Buy now button, Quick View button for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲49 | 14.34 ▲0.10 | 1.54 ▼0.07 | 38.30 ▼4.72 |
Dashboard /wp-admin | 2,201 ▲24 | 5.59 ▼0.12 | 94.04 ▼6.85 | 38.10 ▼6.29 |
Posts /wp-admin/edit.php | 2,110 ▲10 | 1.96 ▲0.00 | 40.41 ▼0.26 | 37.54 ▼0.95 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 23.35 ▲0.48 | 591.85 ▼78.68 | 51.79 ▼0.70 |
Media Library /wp-admin/upload.php | 1,409 ▲6 | 4.20 ▼0.07 | 94.59 ▼3.38 | 40.14 ▼6.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- 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)
Good news, no errors were detected
SRP 0% 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
Almost there! Just fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/add-to-cart-direct-checkout-for-woocommerce/includes/banner-sample.php
- > /wp-content/plugins/add-to-cart-direct-checkout-for-woocommerce/includes/pisol.class.form.php
- 13× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/add-to-cart-direct-checkout-for-woocommerce/includes/includes.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/add-to-cart-direct-checkout-for-woocommerce/admin/class-pi-dcw-woo.php:52
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/add-to-cart-direct-checkout-for-woocommerce/public/quickview/class-pi-dcw-quickview.php:110
- > PHP Notice
Undefined variable: percent in wp-content/plugins/add-to-cart-direct-checkout-for-woocommerce/includes/banner-sample.php on line 114
- > PHP Notice
Undefined variable: date in wp-content/plugins/add-to-cart-direct-checkout-for-woocommerce/includes/banner-sample.php on line 78
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/add-to-cart-direct-checkout-for-woocommerce/public/class-change-quantity-checkout.php:8
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/add-to-cart-direct-checkout-for-woocommerce/admin/class-pi-dcw-buy-now.php:112
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/add-to-cart-direct-checkout-for-woocommerce/admin/class-pi-dcw-add-to-cart.php:137
- > PHP Notice
Undefined variable: coupon_code in wp-content/plugins/add-to-cart-direct-checkout-for-woocommerce/includes/banner-sample.php on line 100
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/add-to-cart-direct-checkout-for-woocommerce/admin/class-pi-dcw-option.php:113
- > 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 issues were found
Optimizations
Plugin configuration 79% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Donate link: Invalid URI ("piwebsolution.com")
- Screenshots: These screenshots lack descriptions #1, #10, #12, #13, #2, #3, #4, #5, #6, #9 in add-to-cart-direct-checkout-for-woocommerce/assets to your readme.txt
add-to-cart-direct-checkout-for-woocommerce/pi-dcw.php 69% from 13 tests
The entry point to "Direct checkout, Add to cart redirect, Quick purchase button, Buy now button, Quick View button for WooCommerce" version 2.1.73.4 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("add-to-cart-direct-checkout-for-woocommerce.php" instead of "pi-dcw.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 214 characters long)
- Plugin Name: A shorter plugin name is better (currently 81 characters long instead of max. 70)
- Text Domain: The text domain must be the same as the plugin slug, although 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
There were no executable files found in this plugin14,082 lines of code in 49 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 2,127 | 24 | 9,865 |
PHP | 28 | 725 | 631 | 2,268 |
SVG | 5 | 4 | 4 | 1,226 |
JavaScript | 9 | 185 | 269 | 714 |
XML | 1 | 0 | 0 | 9 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 13.59 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 66.00 |
Average method complexity | 3.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 22 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 137 | |
▷ Static methods | 11 | 8.03% |
▷ Public methods | 128 | 93.43% |
▷ Protected methods | 4 | 2.92% |
▷ Private methods | 5 | 3.65% |
Functions | 10 | |
▷ Named functions | 7 | 70.00% |
▷ Anonymous functions | 3 | 30.00% |
Constants | 5 | |
▷ Global constants | 4 | 80.00% |
▷ Class constants | 1 | 20.00% |
▷ Public constants | 1 | 100.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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/pi-web-solution.png | 21.25KB | 9.42KB | ▼ 55.67% |