Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.69ms] Passed 4 tests
Analyzing server-side resources used by Buy Now Button, Direct Checkout, Quick Checkout / Purchase Button For WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.60 ▼2.16 |
Dashboard /wp-admin | 3.31 ▲0.00 | 42.77 ▼7.57 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.30 ▼1.28 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 78.34 ▼10.10 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.26 ▼2.94 |
Buy Now Button /wp-admin/admin.php?page=buy-now-direct-checkout-for-woocommerce | 3.00 | 22.34 |
Server storage [IO: ▲0.20MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 52 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
bndcfw-buy-now-button-classes |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
bndcfw-buy-now-empty-cart |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Buy Now Button, Direct Checkout, Quick Checkout / Purchase Button For WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲43 | 14.36 ▼0.27 | 1.65 ▼0.13 | 43.45 ▼0.28 |
Dashboard /wp-admin | 2,198 ▲21 | 5.65 ▲0.04 | 83.93 ▼15.81 | 37.86 ▼4.38 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.95 ▼0.08 | 34.91 ▼2.48 | 31.30 ▼2.31 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.32 ▲0.22 | 657.52 ▼2.74 | 64.12 ▲4.00 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.21 ▲0.05 | 97.88 ▼9.52 | 42.20 ▼4.57 |
Buy Now Button /wp-admin/admin.php?page=buy-now-direct-checkout-for-woocommerce | 28 | 0.42 | 0.11 | 4.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 8 options in the database
- bndcfw-buy-now-button-classes
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- bndcfw-buy-now-empty-cart
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
Please fix the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/buy-now-button-direct-checkout-quick-checkoutpurchase-button-for-woocommerce/public/partials/buy-now-direct-checkout-for-woocommerce-public-display.php
- > /wp-content/plugins/buy-now-button-direct-checkout-quick-checkoutpurchase-button-for-woocommerce/admin/partials/buy-now-direct-checkout-for-woocommerce-admin-display.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=buy-now-direct-checkout-for-woocommerce
- > Network (severe)
wp-admin/admin.php?page=buy-now-direct-checkout-for-woocommerce - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: Please add images for these screenshots: #1 (This screen shot shows that "Buy now" button has been added to simple product.), #2 (This screen shot shows that "Buy now" button has been added to variable product.), #3 (This screen shot shows options of settings provided by plugin.)
buy-now-button-direct-checkout-quick-checkoutpurchase-button-for-woocommerce/buy-now-direct-checkout-for-woocommerce.php 69% from 13 tests
The main file in "Buy Now Button, Direct Checkout, Quick Checkout / Purchase Button For WooCommerce" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 479 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("buy-now-button-direct-checkout-quick-checkoutpurchase-button-for-woocommerce.php" instead of "buy-now-direct-checkout-for-woocommerce.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Plugin Name: A shorter plugin name is better (currently 81 characters long instead of max. 70)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected1,397 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 11 | 198 | 231 | 948 |
PHP | 12 | 107 | 548 | 327 |
JavaScript | 2 | 4 | 55 | 92 |
CSS | 2 | 2 | 8 | 30 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 3.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 1.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 2 | 6.90% |
▷ Public methods | 24 | 82.76% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.24% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
No PNG images were found in this plugin