Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼7.57ms] Passed 4 tests
An overview of server-side resources used by Stripe Payment Plugin for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 35.28 ▼1.49 |
Dashboard /wp-admin | 3.31 ▼0.04 | 47.85 ▼15.44 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.74 ▼1.65 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 88.22 ▼11.71 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.32 ▲0.95 |
Server storage [IO: ▲8.62MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 450 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Stripe Payment Plugin for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲43 | 14.34 ▲0.04 | 1.82 ▲0.21 | 37.05 ▼1.13 |
Dashboard /wp-admin | 2,198 ▲20 | 5.60 ▼0.17 | 94.42 ▼20.76 | 42.79 ▲1.79 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 1.97 ▼0.03 | 39.71 ▼1.02 | 37.61 ▼1.96 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.01 ▼0.38 | 662.12 ▲63.29 | 60.31 ▼5.19 |
Media Library /wp-admin/upload.php | 1,397 ▼0 | 4.25 ▲0.09 | 99.81 ▼2.40 | 44.49 ▼0.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/payment-gateway-stripe-and-woocommerce-integration/vendor/stripe/stripe-php/build.php
- > /wp-content/plugins/payment-gateway-stripe-and-woocommerce-integration/vendor/stripe/stripe-php/update_certs.php
- 251× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/payment-gateway-stripe-and-woocommerce-integration/vendor/stripe/stripe-php/lib/Card.php:44
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/payment-gateway-stripe-and-woocommerce-integration/vendor/stripe/stripe-php/lib/LineItem.php:24
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/payment-gateway-stripe-and-woocommerce-integration/vendor/stripe/stripe-php/lib/Service/RefundService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/payment-gateway-stripe-and-woocommerce-integration/vendor/stripe/stripe-php/lib/Event.php:56
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractServiceFactory' not found in wp-content/plugins/payment-gateway-stripe-and-woocommerce-integration/vendor/stripe/stripe-php/lib/Service/CoreServiceFactory.php:70
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/payment-gateway-stripe-and-woocommerce-integration/vendor/stripe/stripe-php/lib/Service/PriceService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/payment-gateway-stripe-and-woocommerce-integration/vendor/stripe/stripe-php/lib/Service/TestHelpers/Treasury/ReceivedCreditService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/payment-gateway-stripe-and-woocommerce-integration/vendor/stripe/stripe-php/lib/Service/FileService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\StripeObject' not found in wp-content/plugins/payment-gateway-stripe-and-woocommerce-integration/vendor/stripe/stripe-php/lib/OAuthErrorObject.php:11
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/payment-gateway-stripe-and-woocommerce-integration/vendor/stripe/stripe-php/lib/Service/ChargeService.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
payment-gateway-stripe-and-woocommerce-integration/payment-gateway-stripe-and-woocommerce-integration.php 85% from 13 tests
The main PHP file in "Stripe Payment Plugin for WooCommerce" ver. 3.9.3 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 289 characters long)
- Requires at least: Required version must be the same as the one declared in readme.txt ("5.6" instead of "3.0")
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Please fix the following items
- For security reasons, never distribute binary or executable files with your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/payment-gateway-stripe-and-woocommerce-integration/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 | 331 | 6,139 | 14,075 | 24,576 |
JavaScript | 26 | 3,246 | 1,518 | 14,610 |
CSS | 8 | 169 | 21 | 1,736 |
Markdown | 3 | 772 | 0 | 1,454 |
PO File | 2 | 372 | 568 | 968 |
SVG | 26 | 0 | 9 | 368 |
JSON | 2 | 0 | 0 | 118 |
XML | 1 | 0 | 0 | 31 |
make | 1 | 10 | 0 | 29 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
The following items need your attention
- Please reduce cyclomatic complexity of methods to less than 100 (currently 104)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 12.13 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 288.00 |
Average method complexity | 3.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 104.00 |
Code structure | ||
---|---|---|
Namespaces | 36 | |
Interfaces | 9 | |
Traits | 9 | |
Classes | 298 | |
▷ Abstract classes | 10 | 3.36% |
▷ Concrete classes | 288 | 96.64% |
▷ Final classes | 0 | 0.00% |
Methods | 1,389 | |
▷ Static methods | 214 | 15.41% |
▷ Public methods | 1,295 | 93.23% |
▷ Protected methods | 42 | 3.02% |
▷ Private methods | 52 | 3.74% |
Functions | 48 | |
▷ Named functions | 28 | 58.33% |
▷ Anonymous functions | 20 | 41.67% |
Constants | 1,014 | |
▷ Global constants | 9 | 0.89% |
▷ Class constants | 1,005 | 99.11% |
▷ Public constants | 1,005 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
33 PNG files occupy 1.25MB with 0.67MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/ideal-preview.png | 43.47KB | 13.54KB | ▼ 68.85% |
assets/img/boleto-preview.png | 34.60KB | 11.47KB | ▼ 66.85% |
assets/img/support.png | 1.63KB | 1.69KB | 0.00% |
assets/img/afterpay.png | 51.68KB | 17.84KB | ▼ 65.48% |
assets/img/bitcoin.png | 43.46KB | 14.04KB | ▼ 67.69% |