Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.16MB] [CPU: ▼4.15ms] Passed 4 tests
Analyzing server-side resources used by Cart Checkout Confirmation
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 25.64 ▼12.31 |
Dashboard /wp-admin | 3.49 ▲0.14 | 48.77 ▼10.30 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 47.74 ▲3.65 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 96.21 ▲2.37 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 40.42 ▲6.93 |
Edit /wp-admin/admin.php?page=cart-checkout-confirmation | 3.37 | 32.92 |
Install Paid Version /wp-admin/admin.php?page=checkout-confirm-configure-fields | 3.39 | 37.67 |
Server storage [IO: ▲0.22MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 33 new files
Database: no new tables, 9 new options
New WordPress options |
---|
recovery_mode_email_last_sent |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
license_checkout_confirm |
widget_theysaidso_widget |
db_upgraded |
confirm_on_off_text_bill |
widget_recent-comments |
Browser metrics Passed 4 tests
Cart Checkout Confirmation: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,532 ▼214 | 15.27 ▲1.15 | 0.46 ▼1.18 | 17.53 ▼21.26 |
Dashboard /wp-admin | 2,261 ▲86 | 6.50 ▲0.93 | 101.02 ▼5.33 | 65.24 ▲26.65 |
Posts /wp-admin/edit.php | 2,334 ▲234 | 3.39 ▲1.38 | 47.13 ▲4.96 | 73.01 ▲35.64 |
Add New Post /wp-admin/post-new.php | 1,750 ▲224 | 24.53 ▲1.63 | 641.18 ▲31.36 | 43.53 ▼14.93 |
Media Library /wp-admin/upload.php | 1,627 ▲224 | 5.14 ▲0.98 | 112.95 ▲15.72 | 85.55 ▲40.93 |
Edit /wp-admin/admin.php?page=cart-checkout-confirmation | 748 | 1.51 | 6.90 | 28.97 |
Install Paid Version /wp-admin/admin.php?page=checkout-confirm-configure-fields | 1,125 | 3.16 | 45.93 | 71.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 9 options in the database
- widget_recent-posts
- confirm_on_off_text_bill
- license_checkout_confirm
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- recovery_mode_email_last_sent
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=cart-checkout-confirmation
- > Error in wp-content/plugins/cart-checkout-confirmation/admin/class-checkout-confirm-admin.php+197
Uncaught Error: Call to undefined function WC() in wp-content/plugins/cart-checkout-confirmation/admin/class-checkout-confirm-admin.php:197
Stack trace:
#0 wp-content/plugins/cart-checkout-confirmation/admin/class-checkout-confirm-admin.php(175): Checkout_Confirm_Admin->checkout_confirm_tab_fields()
#1 wp-includes/class-wp-hook.php(310): Checkout_Confirm_Admin->checkout_confirm_config_tab()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-content/plugins/cart-checkout-confirmation/admin/views/configure.php(44): do_action()
#5 wp-content/plugins/cart-checkout-confirmation/admin/class-checkout-confirm-admin.php(168): require_once('/var/www/wordpr...')
#6 wp-includes/class-wp-hook.php(310): Checkout_Confirm_Admin->show_plugin_options()
#7 wp-includes/class-wp-hook.php(334- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=checkout-confirm-configure-fields
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
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
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/cart-checkout-confirmation/admin/partials/checkout-confirm-admin-display.php
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/cart-checkout-confirmation/admin/views/configure.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/cart-checkout-confirmation/admin/views/tabs/additional-display.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/cart-checkout-confirmation/public/partials/checkout-confirm-public-display.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/cart-checkout-confirmation/admin/views/pro_version.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/cart-checkout-confirmation/admin/views/tabs/option.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/cart-checkout-confirmation/admin/views/tabs/fields.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/cart-checkout-confirmation/admin/views/alert.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% 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
4 plugin tags: checkout, confirm popup, checkout confirm, confirm
cart-checkout-confirmation/cart-checkout-confirmation.php 92% from 13 tests
The principal PHP file in "Cart Checkout Confirmation" v. 1.0.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 181 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,952 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 194 | 542 | 1,148 |
CSS | 3 | 71 | 8 | 428 |
JavaScript | 3 | 21 | 4 | 173 |
PO File | 1 | 106 | 169 | 170 |
SVG | 1 | 0 | 1 | 33 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 11.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 3 | 6.25% |
▷ Public methods | 43 | 89.58% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 10.42% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/contact.png | 2.85KB | 1.28KB | ▼ 55.22% |