Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼2.73ms] Passed 4 tests
Analyzing server-side resources used by WooCommerce Confirm Payment
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 38.15 ▼1.08 |
Dashboard /wp-admin | 3.44 ▲0.14 | 52.82 ▲1.43 |
Posts /wp-admin/edit.php | 3.56 ▲0.21 | 49.77 ▲4.65 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 82.48 ▼13.88 |
Media Library /wp-admin/upload.php | 3.34 ▲0.12 | 36.03 ▲2.63 |
Confirm payment /wp-admin/edit.php?post_type=wcp_confirm_payment | 3.42 | 39.07 |
Setting /wp-admin/edit.php?post_type=wcp_confirm_payment&page=wcp-setting-admin | 3.40 | 35.92 |
Server storage [IO: ▲0.24MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 40 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
wcp_option |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for WooCommerce Confirm Payment
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,092 ▲357 | 15.58 ▲1.20 | 6.81 ▲5.20 | 42.18 ▼0.03 |
Dashboard /wp-admin | 2,371 ▲182 | 6.45 ▲1.58 | 122.44 ▲12.00 | 42.28 ▲0.08 |
Posts /wp-admin/edit.php | 2,277 ▲188 | 3.33 ▲1.27 | 52.84 ▲19.21 | 36.83 ▲0.23 |
Add New Post /wp-admin/post-new.php | 1,548 ▲15 | 23.27 ▼0.04 | 667.43 ▼1.77 | 41.71 ▼17.19 |
Media Library /wp-admin/upload.php | 1,416 ▲28 | 4.07 ▼0.14 | 84.25 ▼11.57 | 41.98 ▲0.81 |
Confirm payment /wp-admin/edit.php?post_type=wcp_confirm_payment | 1,286 | 3.32 | 53.83 | 30.26 |
Setting /wp-admin/edit.php?post_type=wcp_confirm_payment&page=wcp-setting-admin | 1,129 | 3.11 | 41.58 | 26.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- wcp_option
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_query_var() in wp-content/plugins/wc-confirm-payment/public/partials/woocommerce-confirm-payment-confirm-form.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wc-confirm-payment/admin/partials/woocommerce-confirm-payment-admin-account-details-field.php:22
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wc-confirm-payment/public/partials/woocommerce-confirm-payment-bank-details.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wc-confirm-payment/public/partials/woocommerce-confirm-payment-history.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: line notify, confirm payment
wc-confirm-payment/woocommerce-confirm-payment.php 77% from 13 tests
The entry point to "WooCommerce Confirm Payment" version 1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("wc-confirm-payment.php" instead of "woocommerce-confirm-payment.php")
- Requires at least: The required version number must match the one declared in readme.txt ("4.0.1" instead of "3.0.0")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin3,848 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 640 | 1,055 | 1,747 |
JavaScript | 3 | 353 | 294 | 1,112 |
PO File | 2 | 216 | 330 | 495 |
CSS | 2 | 7 | 8 | 494 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 10.85 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 102 | |
▷ Static methods | 2 | 1.96% |
▷ Public methods | 94 | 92.16% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 7.84% |
Functions | 5 | |
▷ Named functions | 5 | 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
PNG images were not found in this plugin