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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.72ms] Passed 4 tests
A check of server-side resources used by Payments via Stripe for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.08 ▼1.80 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.14 ▼7.02 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 43.87 ▲2.46 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 93.41 ▼6.07 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.55 ▼3.98 |
Server storage [IO: ▲2.68MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 567 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
wpp_stripe_version |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Payments via Stripe for WooCommerce: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲83 | 13.57 ▼0.81 | 1.71 ▼0.31 | 39.65 ▼10.11 |
Dashboard /wp-admin | 2,206 ▲18 | 4.83 ▼1.22 | 107.55 ▼1.06 | 42.76 ▼3.47 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.03 ▲0.04 | 38.94 ▼2.01 | 32.73 ▼3.59 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.10 ▼0.20 | 603.41 ▼40.71 | 51.17 ▼7.85 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.22 ▲0.05 | 98.53 ▼4.49 | 40.42 ▼4.97 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- wpp_stripe_version
Smoke tests 50% 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 0% 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
- 16× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/wc-stripe-payment/templates/cart/applepay.php
- > /wp-content/plugins/wc-stripe-payment/templates/product/googlepay.php
- > /wp-content/plugins/wc-stripe-payment/templates/checkout/payment-request.php
- > /wp-content/plugins/wc-stripe-payment/templates/cart/googlepay.php
- > /wp-content/plugins/wc-stripe-payment/templates/mini-cart/googlepay.php
- > /wp-content/plugins/wc-stripe-payment/templates/cart/payment-request.php
- > /wp-content/plugins/wc-stripe-payment/templates/checkout/applepay.php
- > /wp-content/plugins/wc-stripe-payment/templates/mini-cart/payment-methods.php
- > /wp-content/plugins/wc-stripe-payment/templates/card-icons.php
- > /wp-content/plugins/wc-stripe-payment/templates/product/applepay.php
- 260× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/wc-stripe-payment/vendor/stripe/stripe-php/lib/Invoice.php:110
- > PHP Fatal error
Uncaught Error: Interface 'Stripe\\Exception\\ExceptionInterface' not found in wp-content/plugins/wc-stripe-payment/vendor/stripe/stripe-php/lib/Exception/UnexpectedValueException.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/wc-stripe-payment/vendor/stripe/stripe-php/lib/TaxRate.php:32
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/wc-stripe-payment/vendor/stripe/stripe-php/lib/Service/TransferService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/wc-stripe-payment/vendor/stripe/stripe-php/lib/Service/MandateService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/wc-stripe-payment/vendor/stripe/stripe-php/lib/Service/Issuing/DisputeService.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Stripe\\HttpClient\\ClientInterface' not found in wp-content/plugins/wc-stripe-payment/vendor/stripe/stripe-php/lib/HttpClient/CurlClient.php:27
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/wc-stripe-payment/vendor/stripe/stripe-php/lib/Source.php:55
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wc-stripe-payment/includes/admin/meta-boxes/views/html-order-actions.php:2
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/wc-stripe-payment/vendor/stripe/stripe-php/lib/UsageRecordSummary.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% 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
6 plugin tags: credit card, ach, google pay, payments, apple pay...
wc-stripe-payment/wc-stripe-payments.php 77% from 13 tests
The main PHP file in "Payments via Stripe for WooCommerce" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Requires at least: Required version does not match the one declared in readme.txt ("3.0.1" instead of "3.0.0")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wc-stripe-payment.php" instead of "wc-stripe-payments.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Please make sure to remedy the following
- For security reasons, never distribute binary or executable files with your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/wc-stripe-payment/vendor/stripe/stripe-php/data/ca-certificates.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 371 | 3,934 | 12,753 | 19,127 |
JavaScript | 87 | 731 | 432 | 5,973 |
CSS | 11 | 379 | 1 | 1,919 |
Markdown | 4 | 670 | 0 | 1,028 |
SVG | 36 | 16 | 8 | 860 |
Sass | 12 | 91 | 0 | 622 |
JSON | 1 | 0 | 0 | 66 |
XML | 2 | 0 | 0 | 56 |
make | 1 | 9 | 0 | 27 |
YAML | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 5.65 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 169.00 |
Average method complexity | 1.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 32 | |
Interfaces | 6 | |
Traits | 14 | |
Classes | 284 | |
▷ Abstract classes | 17 | 5.99% |
▷ Concrete classes | 267 | 94.01% |
▷ Final classes | 0 | 0.00% |
Methods | 1,426 | |
▷ Static methods | 265 | 18.58% |
▷ Public methods | 1,268 | 88.92% |
▷ Protected methods | 59 | 4.14% |
▷ Private methods | 99 | 6.94% |
Functions | 100 | |
▷ Named functions | 70 | 70.00% |
▷ Anonymous functions | 30 | 30.00% |
Constants | 713 | |
▷ Global constants | 6 | 0.84% |
▷ Class constants | 707 | 99.16% |
▷ Public constants | 707 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.14MB with 0.09MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/logo.png | 68.30KB | 21.21KB | ▼ 68.95% |
assets/img/favicon.png | 3.13KB | 1.39KB | ▼ 55.59% |
assets/img/company-info.png | 70.22KB | 25.76KB | ▼ 63.31% |