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: ▲3.16MB] [CPU: ▲8.21ms] Passed 4 tests
This is a short check of server-side resources used by Stripe Payments For WooCommerce by Checkout Plugins
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.66 ▲3.19 | 55.53 ▲15.29 |
Dashboard /wp-admin | 6.48 ▲3.13 | 63.33 ▲2.64 |
Posts /wp-admin/edit.php | 6.53 ▲3.17 | 71.00 ▲14.05 |
Add New Post /wp-admin/post-new.php | 9.06 ▲3.17 | 105.46 ▲0.87 |
Media Library /wp-admin/upload.php | 6.40 ▲3.17 | 55.48 ▲22.24 |
Server storage [IO: ▲1.72MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 311 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Stripe Payments For WooCommerce by Checkout Plugins
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,865 ▲104 | 14.22 ▼0.06 | 1.51 ▼0.11 | 39.56 ▼4.47 |
Dashboard /wp-admin | 2,271 ▲91 | 5.63 ▲0.03 | 84.89 ▼1.22 | 39.55 ▼5.76 |
Posts /wp-admin/edit.php | 2,156 ▲56 | 2.01 ▲0.05 | 39.50 ▼2.21 | 35.37 ▼1.23 |
Add New Post /wp-admin/post-new.php | 1,572 ▲44 | 21.99 ▼1.36 | 758.04 ▲153.41 | 54.91 ▼2.69 |
Media Library /wp-admin/upload.php | 1,456 ▲56 | 4.24 ▲0.01 | 98.65 ▼0.56 | 42.09 ▼3.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/checkout-plugins-stripe-woo/lib/stripe-php/update_certs.php
- > /wp-content/plugins/checkout-plugins-stripe-woo/lib/stripe-php/build.php
- 221× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/checkout-plugins-stripe-woo/lib/stripe-php/lib/Service/Radar/EarlyFraudWarningService.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Stripe\\BaseStripeClientInterface' not found in wp-content/plugins/checkout-plugins-stripe-woo/lib/stripe-php/lib/StripeStreamingClientInterface.php:8
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/checkout-plugins-stripe-woo/lib/stripe-php/lib/BitcoinTransaction.php:16
- > PHP Fatal error
Uncaught Error: Class 'CPSW\\Gateway\\Abstract_Payment_Gateway' not found in wp-content/plugins/checkout-plugins-stripe-woo/gateway/local-gateway.php:26
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/checkout-plugins-stripe-woo/lib/stripe-php/lib/Price.php:46
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/checkout-plugins-stripe-woo/lib/stripe-php/lib/Service/Reporting/ReportRunService.php:7
- > PHP Fatal error
Uncaught Error: Class 'CPSW\\Gateway\\Local_Gateway' not found in wp-content/plugins/checkout-plugins-stripe-woo/gateway/stripe/ideal.php:20
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/checkout-plugins-stripe-woo/lib/stripe-php/lib/Service/ProductService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/checkout-plugins-stripe-woo/lib/stripe-php/lib/Service/AccountService.php:7
- > PHP Fatal error
Trait 'CPSW\\Inc\\Traits\\Get_Instance' not found in wp-content/plugins/checkout-plugins-stripe-woo/wizard/onboarding.php on line 19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: stripe, express checkout, credit card, apple pay, google pay
checkout-plugins-stripe-woo/checkout-plugins-stripe-woo.php 85% from 13 tests
The entry point to "Stripe Payments For WooCommerce by Checkout Plugins" version 1.5.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("5.4" instead of "3.0")
- Description: The description should be shorter than 140 characters (currently 180 characters long)
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Almost there! Just fix the following issues
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/checkout-plugins-stripe-woo/lib/stripe-php/data/ca-certificates.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 255 | 3,212 | 12,749 | 14,028 |
JavaScript | 17 | 303 | 57 | 2,521 |
CSS | 4 | 240 | 117 | 1,307 |
Markdown | 2 | 608 | 0 | 951 |
SVG | 20 | 0 | 7 | 452 |
Bourne Shell | 1 | 14 | 8 | 71 |
XML | 1 | 0 | 0 | 31 |
make | 1 | 9 | 0 | 27 |
Sass | 1 | 0 | 0 | 3 |
YAML | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 6.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 237.00 |
Average method complexity | 2.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 31 | |
Interfaces | 9 | |
Traits | 10 | |
Classes | 231 | |
▷ Abstract classes | 11 | 4.76% |
▷ Concrete classes | 220 | 95.24% |
▷ Final classes | 0 | 0.00% |
Methods | 1,052 | |
▷ Static methods | 184 | 17.49% |
▷ Public methods | 968 | 92.02% |
▷ Protected methods | 38 | 3.61% |
▷ Private methods | 46 | 4.37% |
Functions | 18 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 18 | 100.00% |
Constants | 778 | |
▷ Global constants | 12 | 1.54% |
▷ Class constants | 766 | 98.46% |
▷ Public constants | 766 | 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
No PNG files were detected