Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼4.35ms] Passed 4 tests
A check of server-side resources used by Stripe Payment Gateway for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 42.19 ▼0.27 |
Dashboard /wp-admin | 3.36 ▲0.01 | 52.29 ▼12.20 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 50.73 ▼1.30 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.05 | 93.00 ▼3.61 |
Media Library /wp-admin/upload.php | 3.29 ▲0.05 | 36.13 ▲4.78 |
Server storage [IO: ▲2.72MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 385 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Stripe Payment Gateway for WooCommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲52 | 14.72 ▲0.37 | 1.65 ▲0.03 | 43.88 ▼1.44 |
Dashboard /wp-admin | 2,204 ▲27 | 5.62 ▲0.03 | 92.68 ▼9.25 | 41.53 ▼3.03 |
Posts /wp-admin/edit.php | 2,113 ▲13 | 2.01 ▲0.06 | 41.36 ▲3.36 | 37.80 ▲5.42 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 23.42 ▲0.23 | 626.75 ▲4.43 | 48.93 ▼4.10 |
Media Library /wp-admin/upload.php | 1,409 ▲9 | 4.23 ▲0.03 | 97.85 ▲3.47 | 42.72 ▼0.82 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
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)
Even though no errors were found, this is by no means an exhaustive test
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
Please fix the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/funnelkit-stripe-woo-payment-gateway/library/stripe-php/update_certs.php
- > /wp-content/plugins/funnelkit-stripe-woo-payment-gateway/library/stripe-php/build.php
- 241× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractServiceFactory' not found in wp-content/plugins/funnelkit-stripe-woo-payment-gateway/library/stripe-php/lib/Service/Radar/RadarServiceFactory.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/funnelkit-stripe-woo-payment-gateway/admin/parts/webhook_delete.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/funnelkit-stripe-woo-payment-gateway/library/stripe-php/lib/Service/TransferService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/funnelkit-stripe-woo-payment-gateway/library/stripe-php/lib/Service/Issuing/TransactionService.php:7
- > PHP Fatal error
Uncaught Error: Class 'FKWCS\\Gateway\\Stripe\\Abstract_Payment_Gateway' not found in wp-content/plugins/funnelkit-stripe-woo-payment-gateway/gateways/sepa.php:10
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/funnelkit-stripe-woo-payment-gateway/library/stripe-php/lib/Service/ApplePayDomainService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/funnelkit-stripe-woo-payment-gateway/library/stripe-php/lib/Service/QuoteService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Exception\\OAuth\\OAuthErrorException' not found in wp-content/plugins/funnelkit-stripe-woo-payment-gateway/library/stripe-php/lib/Exception/OAuth/UnsupportedGrantTypeException.php:9
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/funnelkit-stripe-woo-payment-gateway/library/stripe-php/lib/ExchangeRate.php:24
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/funnelkit-stripe-woo-payment-gateway/library/stripe-php/lib/Event.php:56
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Screenshots: Please add descriptions for these screenshots #1, #10, #2, #3, #4, #5, #6, #7, #8, #9 in funnelkit-stripe-woo-payment-gateway/assets to your readme.txt
funnelkit-stripe-woo-payment-gateway/funnelkit-stripe-woo-payment-gateway.php 85% from 13 tests
"Stripe Payment Gateway for WooCommerce" version 1.6.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Requires at least: Required version must match the one declared in readme.txt ("5.4.0" instead of "3.0")
- Requires PHP: Required version must match the one declared in readme.txt ("7.0" instead of "7.4")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
These items require your attention
- Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/funnelkit-stripe-woo-payment-gateway/library/stripe-php/data/ca-certificates.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 284 | 4,496 | 13,842 | 17,174 |
JavaScript | 13 | 443 | 194 | 2,009 |
Markdown | 3 | 730 | 0 | 1,265 |
PO File | 1 | 393 | 475 | 1,050 |
CSS | 7 | 195 | 8 | 1,000 |
SVG | 35 | 1 | 1 | 472 |
XML | 1 | 0 | 0 | 31 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 8.01 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 247.00 |
Average method complexity | 2.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 32 | |
Interfaces | 9 | |
Traits | 10 | |
Classes | 252 | |
▷ Abstract classes | 12 | 4.76% |
▷ Concrete classes | 240 | 95.24% |
▷ Final classes | 0 | 0.00% |
Methods | 1,288 | |
▷ Static methods | 228 | 17.70% |
▷ Public methods | 1,163 | 90.30% |
▷ Protected methods | 66 | 5.12% |
▷ Private methods | 59 | 4.58% |
Functions | 18 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 18 | 100.00% |
Constants | 849 | |
▷ Global constants | 11 | 1.30% |
▷ Class constants | 838 | 98.70% |
▷ Public constants | 838 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 0.11MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/images/Inactive.png | 7.82KB | 3.35KB | ▼ 57.11% |
admin/assets/images/Failed.png | 10.17KB | 4.77KB | ▼ 53.07% |
admin/assets/images/PayNow.png | 5.98KB | 3.13KB | ▼ 47.69% |
admin/assets/images/Success.png | 11.47KB | 5.02KB | ▼ 56.21% |
admin/assets/images/Shopping.png | 9.46KB | 4.73KB | ▼ 50.03% |