Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.71MB] [CPU: ▲3.18ms] Passed 4 tests
Server-side resources used by WP Stripe Checkout
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.16 ▲0.70 | 42.54 ▲3.39 |
Dashboard /wp-admin | 4.06 ▲0.76 | 58.76 ▲10.56 |
Posts /wp-admin/edit.php | 4.11 ▲0.76 | 53.26 ▲2.75 |
Add New Post /wp-admin/post-new.php | 6.58 ▲0.69 | 99.99 ▼1.16 |
Media Library /wp-admin/upload.php | 3.92 ▲0.69 | 41.50 ▲7.72 |
Settings /wp-admin/edit.php?post_type=wpstripeco_order&page=wp-stripe-checkout-settings | 3.89 | 36.27 |
Add-ons /wp-admin/edit.php?post_type=wpstripeco_order&page=wp-stripe-checkout-addons | 3.89 | 38.59 |
All Orders /wp-admin/edit.php?post_type=wpstripeco_order | 3.96 | 39.44 |
Debug /wp-admin/edit.php?post_type=wpstripeco_order&page=wp-stripe-checkout-debug | 3.89 | 36.85 |
All Products (Deprecated) /wp-admin/edit.php?post_type=wpstripeco_product | 3.96 | 37.41 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, 10 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
wp_stripe_checkout_email_options |
wp_stripe_checkout_db_version |
can_compress_scripts |
wpstripecheckout_logfile_suffix |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
wp_stripe_checkout_verify_front_end_nonces |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Stripe Checkout
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲76 | 14.28 ▲0.03 | 1.74 ▲0.15 | 38.83 ▼4.11 |
Dashboard /wp-admin | 2,237 ▲60 | 5.60 ▼0.01 | 93.77 ▼1.01 | 39.80 ▼0.80 |
Posts /wp-admin/edit.php | 2,142 ▲39 | 1.95 ▲0.01 | 40.56 ▼1.46 | 37.00 ▲0.04 |
Add New Post /wp-admin/post-new.php | 1,561 ▲35 | 23.16 ▼0.01 | 684.52 ▲29.15 | 55.32 ▲4.32 |
Media Library /wp-admin/upload.php | 1,439 ▲36 | 4.22 ▼0.00 | 115.23 ▲11.65 | 46.11 ▼1.45 |
Settings /wp-admin/edit.php?post_type=wpstripeco_order&page=wp-stripe-checkout-settings | 1,101 | 2.01 | 23.01 | 31.82 |
Add-ons /wp-admin/edit.php?post_type=wpstripeco_order&page=wp-stripe-checkout-addons | 979 | 1.99 | 23.66 | 36.38 |
All Orders /wp-admin/edit.php?post_type=wpstripeco_order | 1,134 | 1.93 | 34.44 | 32.06 |
Debug /wp-admin/edit.php?post_type=wpstripeco_order&page=wp-stripe-checkout-debug | 862 | 2.13 | 25.93 | 27.77 |
All Products (Deprecated) /wp-admin/edit.php?post_type=wpstripeco_product | 1,135 | 1.90 | 30.94 | 33.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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 10 options in the database
- theysaidso_admin_options
- wp_stripe_checkout_db_version
- wpstripecheckout_logfile_suffix
- widget_theysaidso_widget
- wp_stripe_checkout_verify_front_end_nonces
- can_compress_scripts
- wp_stripe_checkout_email_options
- widget_recent-comments
- widget_recent-posts
- 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
Good news, no errors were detected
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
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-stripe-checkout/wp-stripe-checkout-product.php:314
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-stripe-checkout/wp-stripe-checkout-order.php:196
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% 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
5 plugin tags: stripe, donation, ecommerce, payments, checkout
wp-stripe-checkout/main.php 85% from 13 tests
This is the main PHP file of "WP Stripe Checkout" version 1.2.2.39, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-stripe-checkout.php" instead of "main.php")
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
No dangerous file extensions were detected3,348 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 139 | 149 | 3,297 |
CSS | 2 | 1 | 1 | 51 |
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.49 |
Average class complexity | 58.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 105.00 |
Average method complexity | 5.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 6 | 21.43% |
▷ Public methods | 28 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 41 | |
▷ Named functions | 41 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 11 | 84.62% |
▷ Class constants | 2 | 15.38% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
addons/images/wp-stripe-checkout-payment-link-email.png | 1.76KB | 0.93KB | ▼ 47.18% |
addons/images/wp-stripe-checkout-variable-currency.png | 3.70KB | 2.87KB | ▼ 22.46% |
addons/images/wp-stripe-checkout-variable-price.png | 6.46KB | 3.07KB | ▼ 52.55% |
addons/images/wp-stripe-checkout-submit-type.png | 2.79KB | 1.96KB | ▼ 29.76% |
addons/images/wp-stripe-checkout-variable-quantity.png | 6.32KB | 2.95KB | ▼ 53.35% |