Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼4.68ms] Passed 4 tests
A check of server-side resources used by One page checkout and layouts for woocommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.95 ▼0.52 | 19.92 ▼22.02 |
Dashboard /wp-admin | 3.57 ▲0.27 | 46.90 ▲0.19 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 51.34 ▲5.39 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.27 | 94.18 ▲1.26 |
Media Library /wp-admin/upload.php | 3.49 ▲0.26 | 37.44 ▲1.84 |
Customize Checkout Fields /wp-admin/admin.php?page=custom_checkout_settings&page=cclw_checkout_fields | 4.57 | 48.62 |
Replace Text /wp-admin/admin.php?page=custom_checkout_settings&page=cclw_pro_version | 3.48 | 32.62 |
Global Style /wp-admin/admin.php?page=custom_checkout_settings&page=cclw_global_css | 3.57 | 32.39 |
Server storage [IO: ▲3.76MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 379 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
One page checkout and layouts for woocommerce: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,481 ▼306 | 14.73 ▲0.63 | 0.59 ▼1.29 | 18.69 ▼26.54 |
Dashboard /wp-admin | 2,234 ▲54 | 5.73 ▲0.12 | 96.95 ▲9.03 | 41.17 ▲3.06 |
Posts /wp-admin/edit.php | 2,136 ▲33 | 2.07 ▲0.11 | 42.14 ▲0.93 | 29.66 ▼4.95 |
Add New Post /wp-admin/post-new.php | 1,556 ▲26 | 23.73 ▲0.70 | 660.83 ▼6.28 | 67.95 ▲5.75 |
Media Library /wp-admin/upload.php | 1,439 ▲42 | 4.27 ▲0.05 | 96.30 ▲0.22 | 40.34 ▼1.80 |
Customize Checkout Fields /wp-admin/admin.php?page=custom_checkout_settings&page=cclw_checkout_fields | 3,140 | 2.04 | 33.41 | 28.16 |
Replace Text /wp-admin/admin.php?page=custom_checkout_settings&page=cclw_pro_version | 879 | 2.29 | 33.94 | 23.43 |
Global Style /wp-admin/admin.php?page=custom_checkout_settings&page=cclw_global_css | 1,858 | 2.59 | 80.86 | 23.93 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
- 4× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/custom-checkout-layouts-for-woocommerce/WooCommerce/checkout/layouts/two-column-layout.php
- > /wp-content/plugins/custom-checkout-layouts-for-woocommerce/WooCommerce/checkout/layouts/three-column-layout.php
- > /wp-content/plugins/custom-checkout-layouts-for-woocommerce/WooCommerce/checkout/layouts/one-column-layout.php
- > /wp-content/plugins/custom-checkout-layouts-for-woocommerce/WooCommerce/checkout/layouts/cart-checkout-layout.php
- 92× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/custom-checkout-layouts-for-woocommerce/includes/front/shipping_fields.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/custom-checkout-layouts-for-woocommerce/WooCommerce/checkout/cclw_includes/cclw_additional_fields.php:3
- > PHP Warning
Use of undefined constant CCLW_PLUGIN_DIR - assumed 'CCLW_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/custom-checkout-layouts-for-woocommerce/WooCommerce/checkout/layouts/two-column-layout.php on line 11
- > PHP Warning
include_once(CCLW_PLUGIN_DIRWooCommerce/checkout/cclw_includes/cclw_billing_details_section.php): failed to open stream: No such file or directory in wp-content/plugins/custom-checkout-layouts-for-woocommerce/WooCommerce/checkout/layouts/three-column-layout.php on line 2
- > PHP Warning
Use of undefined constant CCLW_PLUGIN_DIR - assumed 'CCLW_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/custom-checkout-layouts-for-woocommerce/WooCommerce/checkout/layouts/cart-checkout-layout.php on line 12
- > PHP Warning
Use of undefined constant CCLW_PLUGIN_DIR - assumed 'CCLW_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/custom-checkout-layouts-for-woocommerce/WooCommerce/checkout/layouts/one-column-layout.php on line 4
- > PHP Warning
Use of undefined constant CCLW_PLUGIN_DIR - assumed 'CCLW_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/custom-checkout-layouts-for-woocommerce/WooCommerce/checkout/layouts/two-column-layout.php on line 8
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/custom-checkout-layouts-for-woocommerce/cmb2/includes/types/CMB2_Type_Title.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/custom-checkout-layouts-for-woocommerce/includes/template_style.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function new_cmb2_box() in wp-content/plugins/custom-checkout-layouts-for-woocommerce/includes/admin/setting_panel.php:4
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
9 plugin tags: checkout, woocommerce one page checkout, woocommerce checkout, single page checkout, multi step checkout...
custom-checkout-layouts-for-woocommerce/woocommerce-one-page-checkout-and-layouts.php 77% from 13 tests
The main file in "One page checkout and layouts for woocommerce" v. 4.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Requires at least: Required version must match the one declared in readme.txt ("4.5" instead of "3.4")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Name the main plugin file the same as the plugin slug ("custom-checkout-layouts-for-woocommerce.php" instead of "woocommerce-one-page-checkout-and-layouts.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin55,671 lines of code in 232 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 120 | 14,315 | 18,502 | 32,323 |
PHP | 84 | 2,621 | 6,553 | 9,470 |
JavaScript | 10 | 1,758 | 1,390 | 7,197 |
CSS | 15 | 353 | 1,258 | 5,926 |
Markdown | 3 | 244 | 0 | 755 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 19.13 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 188.00 |
Average method complexity | 3.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 71 | |
▷ Abstract classes | 9 | 12.68% |
▷ Concrete classes | 62 | 87.32% |
▷ Final classes | 0 | 0.00% |
Methods | 570 | |
▷ Static methods | 93 | 16.32% |
▷ Public methods | 477 | 83.68% |
▷ Protected methods | 90 | 15.79% |
▷ Private methods | 3 | 0.53% |
Functions | 36 | |
▷ Named functions | 36 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 6 | 46.15% |
▷ Class constants | 7 | 53.85% |
▷ Public constants | 7 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
16 PNG files occupy 0.52MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
cmb2/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
cmb2/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
asserts/images/icon.png | 1.06KB | 1.35KB | 0.00% |
asserts/images/cclw_pro_features.png | 503.25KB | 176.13KB | ▼ 65.00% |
cmb2/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |