Benchmarks
Plugin footprint Passed 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: ▼0.00MB] [CPU: ▼143.73ms] Passed 4 tests
An overview of server-side resources used by Direct Checkout for WooCommerce - Skip Cart with Buy Buttons
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.00 | 28.31 ▲5.12 |
Dashboard /wp-admin | 3.07 ▲0.00 | 36.38 ▼6.12 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 35.66 ▲3.04 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.01 | 72.71 ▼569.50 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 26.64 ▼2.32 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Direct Checkout for WooCommerce - Skip Cart with Buy Buttons: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,666 ▲65 | 15.57 ▼0.05 | 6.14 ▲1.27 | 77.73 ▲2.86 |
Dashboard /wp-admin | 2,930 ▲35 | 6.09 ▼0.07 | 120.86 ▼12.56 | 169.12 ▼2.00 |
Posts /wp-admin/edit.php | 2,740 ▼0 | 3.23 ▲0.01 | 61.14 ▼2.47 | 139.41 ▲2.19 |
Add New Post /wp-admin/post-new.php | 3,743 ▲7 | 19.10 ▲1.26 | 426.20 ▼25.48 | 159.33 ▼4.84 |
Media Library /wp-admin/upload.php | 1,749 ▼3 | 5.47 ▼0.03 | 138.85 ▼0.26 | 189.06 ▲3.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% 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 | 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
Almost there! Just fix the following items
- 7× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/direct-checkout-for-woocommerce/admin/class-wc-direct-checkout-tools.php
- > /wp-content/plugins/direct-checkout-for-woocommerce/wc-direct-to-checkout-with-buttons.php
- > /wp-content/plugins/direct-checkout-for-woocommerce/admin/templates/admin-info-message.php
- > /wp-content/plugins/direct-checkout-for-woocommerce/admin/class-wc-direct-checkout-admin.php
- > /wp-content/plugins/direct-checkout-for-woocommerce/admin/templates/admin-error-message.php
- > /wp-content/plugins/direct-checkout-for-woocommerce/admin/templates/main-admin.php
- > /wp-content/plugins/direct-checkout-for-woocommerce/class-wc-direct-checkout-frontend.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 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
6 plugin tags: buy button, woocommerce, skip cart, direct checkout, straight to checkout...
direct-checkout-for-woocommerce/wc-direct-to-checkout-with-buttons.php 92% from 13 tests
The primary PHP file in "Direct Checkout for WooCommerce - Skip Cart with Buy Buttons" version 1.3 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("direct-checkout-for-woocommerce.php" instead of "wc-direct-to-checkout-with-buttons.php")
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 detected395 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 72 | 94 | 395 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 1 | 6.67% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 3 | |
▷ Global constants | 3 | 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 files were detected