Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.45MB] [CPU: ▲1.24ms] Passed 4 tests
Server-side resources used by Direct Checkout for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.92 ▲0.45 | 45.41 ▲6.58 |
Dashboard /wp-admin | 3.84 ▲0.49 | 50.14 ▼8.21 |
Posts /wp-admin/edit.php | 3.85 ▲0.49 | 55.46 ▲8.63 |
Add New Post /wp-admin/post-new.php | 6.32 ▲0.42 | 93.65 ▼2.06 |
Media Library /wp-admin/upload.php | 3.66 ▲0.42 | 44.78 ▲10.93 |
Suggestions /wp-admin/admin.php?page=wc-settings_suggestions | 4.15 | 494.90 |
Server storage [IO: ▲0.71MB] [DB: ▲0.06MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 104 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
qlwcdc_wcd_imported2 |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Direct Checkout for WooCommerce: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,913 ▲151 | 14.24 ▼0.47 | 1.61 ▼0.00 | 40.44 ▼1.31 |
Dashboard /wp-admin | 2,318 ▲140 | 5.62 ▼0.21 | 92.01 ▼16.81 | 40.81 ▲4.30 |
Posts /wp-admin/edit.php | 2,126 ▲26 | 1.96 ▼0.04 | 40.02 ▲0.13 | 36.32 ▼1.41 |
Add New Post /wp-admin/post-new.php | 1,548 ▲22 | 23.03 ▼0.18 | 685.82 ▲13.46 | 59.59 ▲10.81 |
Media Library /wp-admin/upload.php | 1,428 ▲28 | 4.28 ▲0.09 | 98.38 ▼2.01 | 40.86 ▼5.66 |
Suggestions /wp-admin/admin.php?page=wc-settings_suggestions | 1,957 | 2.47 | 35.28 | 57.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.06MB] 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
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- theysaidso_admin_options
- qlwcdc_wcd_imported2
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- 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)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/woocommerce-direct-checkout/woocommerce-direct-checkout.php
- 20× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-plugin-install-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/woocommerce-direct-checkout/jetpack_vendor/quadlayers/wp-plugin-suggestions/src/Table.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/woocommerce-direct-checkout/lib/view/backend/pages/parts/tabs.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/woocommerce-direct-checkout/jetpack_vendor/quadlayers/wp-plugin-suggestions/src/view/suggestions.php:21
- > PHP Fatal error
Trait 'QuadLayers\\WP_Notice_Plugin_Promote\\Traits\\PluginActionsLinks' not found in wp-content/plugins/woocommerce-direct-checkout/jetpack_vendor/quadlayers/wp-notice-plugin-promote/src/Traits/PluginActions.php on line 20
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/woocommerce-direct-checkout/jetpack_vendor/quadlayers/wp-plugin-suggestions/src/Table.php on line 14
- > PHP Fatal error
Uncaught Error: Class 'QuadLayers\\WCDC\\Install' not found in wp-content/plugins/woocommerce-direct-checkout/lib/class-plugin.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/woocommerce-direct-checkout/lib/view/backend/pages/parts/tabs.php:16
- > PHP Fatal error
Uncaught Error: Interface 'Composer\\Plugin\\PluginInterface' not found in wp-content/plugins/woocommerce-direct-checkout/vendor/automattic/jetpack-composer-plugin/src/class-plugin.php:24
- > PHP Fatal error
Trait 'QuadLayers\\WP_Notice_Plugin_Promote\\Traits\\PluginDataByFile' not found in wp-content/plugins/woocommerce-direct-checkout/jetpack_vendor/quadlayers/wp-notice-plugin-promote/src/PluginByFile.php on line 20
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installer\\LibraryInstaller' not found in wp-content/plugins/woocommerce-direct-checkout/vendor/automattic/jetpack-composer-plugin/src/class-manager.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #5, #6, #7 in woocommerce-direct-checkout/assets to your readme.txt
woocommerce-direct-checkout/woocommerce-direct-checkout.php 92% from 13 tests
The main file in "Direct Checkout for WooCommerce" v. 3.3.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("4.7" instead of "4.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected5,527 lines of code in 85 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 64 | 758 | 2,222 | 3,904 |
Markdown | 12 | 270 | 0 | 730 |
JSON | 1 | 0 | 0 | 458 |
JavaScript | 6 | 13 | 22 | 433 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 12.69 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 91.00 |
Average method complexity | 2.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 14 | |
Interfaces | 0 | |
Traits | 3 | |
Classes | 32 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 32 | 100.00% |
▷ Final classes | 1 | 3.12% |
Methods | 211 | |
▷ Static methods | 71 | 33.65% |
▷ Public methods | 185 | 87.68% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 26 | 12.32% |
Functions | 18 | |
▷ Named functions | 1 | 5.56% |
▷ Anonymous functions | 17 | 94.44% |
Constants | 26 | |
▷ Global constants | 26 | 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
2 compressed PNG files occupy 0.12MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/backend/img/checkout.png | 54.60KB | 56.63KB | 0.00% |
assets/backend/img/modal.png | 70.65KB | 74.62KB | 0.00% |