Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼5.38ms] Passed 4 tests
A check of server-side resources used by Direct Checkout Button for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.23 ▲2.87 |
Dashboard /wp-admin | 3.34 ▲0.03 | 45.59 ▼5.30 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 43.69 ▼2.58 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 79.32 ▼13.86 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.81 ▲0.24 |
Direct checkout /wp-admin/admin.php?page=dicbw_wc_direct_checkout | 3.25 | 30.18 |
Server storage [IO: ▲1.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Direct Checkout Button for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.72 ▲0.44 | 1.66 ▲0.03 | 45.78 ▲7.30 |
Dashboard /wp-admin | 2,198 ▲21 | 5.60 ▲0.01 | 94.24 ▼8.19 | 42.74 ▲0.18 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 2.02 ▲0.08 | 33.63 ▼2.62 | 33.29 ▼0.82 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.60 ▲0.68 | 675.89 ▲42.81 | 62.07 ▲17.03 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.18 ▼0.03 | 95.85 ▼11.85 | 42.71 ▼3.26 |
Direct checkout /wp-admin/admin.php?page=dicbw_wc_direct_checkout | 803 | 2.00 | 24.55 | 26.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'deactivate' not found or invalid function name
- This plugin does not fully uninstall, leaving 6 options in the database
- 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 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/woo-direct-checkout-button/templates/page-admin.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 86% 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
Attributes that need to be fixed:
- Screenshots: Add descriptions for screenshots #3, #4, #5 in woo-direct-checkout-button/assets to your readme.txt
woo-direct-checkout-button/direct-checkout-button-for-woocommerce.php 77% from 13 tests
The main PHP script in "Direct Checkout Button for WooCommerce" version 1.0 is automatically included on every request by WordPress
The following require your attention:
- Requires at least: Required version must match the one declared in readme.txt ("3.0.1" instead of "3.0.0")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woo-direct-checkout-button.php" instead of "direct-checkout-button-for-woocommerce.php")
- Description: Keep the plugin description shorter than 140 characters (currently 158 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin365 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 194 | 114 | 365 |
HTML | 1 | 3 | 8 | 0 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 2.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 1 | 11.11% |
Methods | 33 | |
▷ Static methods | 3 | 9.09% |
▷ Public methods | 33 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.99MB with 0.58MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
views/Screenshot_3.png | 18.97KB | 10.17KB | ▼ 46.38% |
views/Screenshot_1.png | 15.93KB | 8.10KB | ▼ 49.14% |
views/Screenshot_6.png | 477.09KB | 114.19KB | ▼ 76.06% |
views/Screenshot_2.png | 5.65KB | 3.14KB | ▼ 44.31% |
views/Screenshot_5.png | 478.14KB | 114.88KB | ▼ 75.97% |