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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.31ms] Passed 4 tests
An overview of server-side resources used by WooCommerce Checkout by CheckoutWC - Custom Checkout Templates, Reduce Cart Abandonment and Increase Conversions
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 34.64 ▼2.78 |
Dashboard /wp-admin | 3.33 ▼0.02 | 47.57 ▼19.05 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 48.05 ▲4.28 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 82.31 ▼8.41 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.08 ▲1.00 |
Server storage [IO: ▲4.96MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 747 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by WooCommerce Checkout by CheckoutWC - Custom Checkout Templates, Reduce Cart Abandonment and Increase Conversions
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.30 ▼0.06 | 1.59 ▲0.10 | 40.08 ▼1.20 |
Dashboard /wp-admin | 2,198 ▲21 | 5.55 ▲0.01 | 81.26 ▼4.05 | 41.85 ▼2.54 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.01 ▲0.01 | 39.71 ▲6.03 | 36.12 ▲3.33 |
Add New Post /wp-admin/post-new.php | 1,539 ▲2 | 23.29 ▲5.03 | 664.26 ▲62.43 | 52.70 ▼9.79 |
Media Library /wp-admin/upload.php | 1,406 ▲3 | 4.21 ▲0.00 | 112.17 ▲12.99 | 48.69 ▲1.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
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)
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 5× PHP files output text when accessed directly:
- > /wp-content/plugins/checkoutwc-lite/vendor/smartystreets/phpsdk/examples/UsStreetMultipleAddressesExample.php
- > /wp-content/plugins/checkoutwc-lite/vendor/smartystreets/phpsdk/examples/UsZIPCodeMultipleLookupsExample.php
- > /wp-content/plugins/checkoutwc-lite/vendor/smartystreets/phpsdk/examples/USStreetLookupsWithMatchStrategyExamples.php
- > /wp-content/plugins/checkoutwc-lite/vendor/smartystreets/phpsdk/examples/UsZIPCodeSingleLookupExample.php
- > /wp-content/plugins/checkoutwc-lite/vendor/smartystreets/phpsdk/examples/UsStreetSingleAddressExample.php
- 260× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/checkoutwc-lite/vendor/smartystreets/phpsdk/tests/US_ZIPCode/ClientTest.php:27
- > PHP Fatal error
Uncaught Error: Class 'Objectiv\\Plugins\\Checkout\\Admin\\Pages\\PageAbstract' not found in wp-content/plugins/checkoutwc-lite/includes/Admin/Pages/Appearance.php:14
- > PHP Fatal error
Uncaught Error: Class 'Objectiv\\Plugins\\Checkout\\Compatibility\\CompatibilityAbstract' not found in wp-content/plugins/checkoutwc-lite/includes/Compatibility/Plugins/WooCommerceAdvancedMessages.php:7
- > PHP Fatal error
Uncaught Error: Class 'Objectiv\\Plugins\\Checkout\\Compatibility\\CompatibilityAbstract' not found in wp-content/plugins/checkoutwc-lite/includes/Compatibility/Plugins/CartFlows.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/checkoutwc-lite/vendor/smartystreets/phpsdk/tests/International_Street/LookupTest.php:9
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/checkoutwc-lite/vendor/smartystreets/phpsdk/tests/US_Extract/ResultTest.php:9
- > PHP Fatal error
Uncaught Error: Class 'Objectiv\\Plugins\\Checkout\\SingletonAbstract' not found in wp-content/plugins/checkoutwc-lite/includes/FormFieldAugmenter.php:5
- > PHP Fatal error
Uncaught Error: Class 'Objectiv\\Plugins\\Checkout\\Compatibility\\CompatibilityAbstract' not found in wp-content/plugins/checkoutwc-lite/includes/Compatibility/Themes/Genesis.php:7
- > PHP Fatal error
Uncaught Error: Class 'Objectiv\\Plugins\\Checkout\\Compatibility\\CompatibilityAbstract' not found in wp-content/plugins/checkoutwc-lite/includes/Compatibility/Themes/BeTheme.php:7
- > PHP Fatal error
Uncaught Error: Class 'Objectiv\\Plugins\\Checkout\\Compatibility\\CompatibilityAbstract' not found in wp-content/plugins/checkoutwc-lite/includes/Compatibility/Themes/JupiterX.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: shopify, woo checkout, multi step checkout, woocommerce checkout template, woocommerce checkout theme...
checkoutwc-lite/checkout-for-woocommerce.php 85% from 13 tests
"WooCommerce Checkout by CheckoutWC - Custom Checkout Templates, Reduce Cart Abandonment and Increase Conversions" version 1.1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: The principal plugin file should be the same as the plugin slug ("checkoutwc-lite.php" instead of "checkout-for-woocommerce.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin59,302 lines of code in 680 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 12 | 0 | 0 | 20,799 |
PHP | 364 | 4,895 | 4,867 | 18,969 |
PO File | 39 | 10,557 | 26,718 | 8,024 |
TypeScript | 114 | 1,196 | 828 | 4,785 |
Sass | 112 | 780 | 60 | 4,469 |
CSS | 6 | 440 | 171 | 1,670 |
JavaScript | 14 | 13 | 15 | 286 |
Markdown | 3 | 40 | 0 | 178 |
XML | 3 | 7 | 3 | 70 |
SVG | 10 | 1 | 0 | 30 |
YAML | 1 | 0 | 0 | 13 |
make | 1 | 4 | 2 | 6 |
Dockerfile | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 4.31 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 1.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 39 | |
Interfaces | 8 | |
Traits | 0 | |
Classes | 332 | |
▷ Abstract classes | 7 | 2.11% |
▷ Concrete classes | 325 | 97.89% |
▷ Final classes | 0 | 0.00% |
Methods | 1,633 | |
▷ Static methods | 56 | 3.43% |
▷ Public methods | 1,565 | 95.84% |
▷ Protected methods | 16 | 0.98% |
▷ Private methods | 52 | 3.18% |
Functions | 188 | |
▷ Named functions | 125 | 66.49% |
▷ Anonymous functions | 63 | 33.51% |
Constants | 49 | |
▷ Global constants | 21 | 42.86% |
▷ Class constants | 28 | 57.14% |
▷ Public constants | 28 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.22MB with 0.05MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/flags.png | 23.45KB | 23.45KB | 0.00% |
assets/images/amazon-pay.png | 16.69KB | 2.40KB | ▼ 85.63% |
templates/default/screenshot.png | 120.01KB | 118.60KB | ▼ 1.18% |
assets/images/flags@2x.png | 66.35KB | 66.34KB | 0.01% |