Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.23MB] [CPU: ▼15.97ms] Passed 4 tests
A check of server-side resources used by Create a payment request. Donation form (Stripe)
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 24.26 ▼18.62 |
Dashboard /wp-admin | 3.59 ▲0.24 | 45.10 ▼19.70 |
Posts /wp-admin/edit.php | 3.64 ▲0.28 | 49.54 ▲0.41 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.25 | 84.32 ▼25.96 |
Media Library /wp-admin/upload.php | 3.45 ▲0.22 | 35.27 ▲2.40 |
Create Payment /wp-admin/edit.php?post_type=mxcpfc_payment | 3.55 | 37.55 |
Add a new one /wp-admin/post-new.php?post_type=mxcpfc_payment | 3.63 | 48.35 |
Create Payment settings /wp-admin/options-general.php?page=mxcpfc_payment_settings | 3.44 | 32.38 |
Server storage [IO: ▲2.28MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 337 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Create a payment request. Donation form (Stripe): an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,993 ▲247 | 16.93 ▲2.70 | 180.34 ▲178.52 | 39.23 ▼4.26 |
Dashboard /wp-admin | 2,243 ▲55 | 5.02 ▼0.87 | 113.17 ▼2.20 | 40.06 ▼8.11 |
Posts /wp-admin/edit.php | 2,126 ▲37 | 2.03 ▲0.05 | 39.18 ▲0.89 | 35.01 ▲2.50 |
Add New Post /wp-admin/post-new.php | 1,555 ▲26 | 18.40 ▲0.18 | 634.15 ▼38.06 | 54.61 ▼2.49 |
Media Library /wp-admin/upload.php | 1,425 ▲40 | 4.32 ▲0.14 | 94.39 ▼7.48 | 41.31 ▼3.81 |
Create Payment /wp-admin/edit.php?post_type=mxcpfc_payment | 1,090 | 2.01 | 32.14 | 31.43 |
Add a new one /wp-admin/post-new.php?post_type=mxcpfc_payment | 3,294 | 8.14 | 172.98 | 67.89 |
Create Payment settings /wp-admin/options-general.php?page=mxcpfc_payment_settings | 1,065 | 2.08 | 24.11 | 31.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=mxcpfc_payment_settings
- > Notice in wp-content/plugins/create-payment-stripe-gateway/includes/admin/views/main-page.php+120
Undefined index: company_address
- > GET request to /wp-admin/options-general.php?page=mxcpfc_payment_settings
- > Notice in wp-content/plugins/create-payment-stripe-gateway/includes/admin/views/main-page.php+133
Undefined index: company_phone
- > GET request to /wp-admin/options-general.php?page=mxcpfc_payment_settings
- > Notice in wp-content/plugins/create-payment-stripe-gateway/includes/admin/views/main-page.php+188
Undefined index: invalid_request_message
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/create-payment-stripe-gateway/includes/frontend/components/donation/donation-progress.php
- > /wp-content/plugins/create-payment-stripe-gateway/includes/frontend/components/donation/donation-form.php
- 252× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/create-payment-stripe-gateway/includes/frontend/classes/stripe-php/lib/BillingPortal/Session.php:35
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/create-payment-stripe-gateway/includes/frontend/classes/stripe-php/lib/ApplePayDomain.php:14
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/create-payment-stripe-gateway/includes/frontend/classes/stripe-php/lib/Service/CustomerService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/create-payment-stripe-gateway/includes/frontend/classes/stripe-php/lib/Service/InvoiceService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/create-payment-stripe-gateway/includes/frontend/classes/stripe-php/lib/Person.php:46
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/create-payment-stripe-gateway/includes/frontend/classes/stripe-php/lib/Treasury/FinancialAccountFeatures.php:20
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\StripeObject' not found in wp-content/plugins/create-payment-stripe-gateway/includes/frontend/classes/stripe-php/lib/ApiResource.php:9
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/create-payment-stripe-gateway/includes/frontend/classes/stripe-php/lib/Service/ShippingRateService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/create-payment-stripe-gateway/includes/frontend/classes/stripe-php/lib/Treasury/TransactionEntry.php:24
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/create-payment-stripe-gateway/includes/frontend/classes/stripe-php/lib/Service/Treasury/FinancialAccountService.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: payment gateway, 3d secure, donation, 3ds, stripe...
create-payment-stripe-gateway/create-payment-for-client.php 92% from 13 tests
"Create a payment request. Donation form (Stripe)" version 4.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("create-payment-stripe-gateway.php" instead of "create-payment-for-client.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
It is important to 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/create-payment-stripe-gateway/includes/frontend/classes/stripe-php/data/ca-certificates.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 312 | 3,187 | 12,129 | 10,694 |
CSS | 4 | 7 | 18 | 2,499 |
Markdown | 2 | 807 | 0 | 1,615 |
SVG | 1 | 0 | 0 | 685 |
JavaScript | 2 | 174 | 78 | 300 |
JSON | 1 | 0 | 0 | 48 |
PO File | 1 | 8 | 8 | 33 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 2.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 73.00 |
Average method complexity | 1.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 36 | |
Interfaces | 9 | |
Traits | 9 | |
Classes | 286 | |
▷ Abstract classes | 11 | 3.85% |
▷ Concrete classes | 275 | 96.15% |
▷ Final classes | 1 | 0.36% |
Methods | 962 | |
▷ Static methods | 231 | 24.01% |
▷ Public methods | 879 | 91.37% |
▷ Protected methods | 41 | 4.26% |
▷ Private methods | 42 | 4.37% |
Functions | 21 | |
▷ Named functions | 7 | 33.33% |
▷ Anonymous functions | 14 | 66.67% |
Constants | 1,241 | |
▷ Global constants | 9 | 0.73% |
▷ Class constants | 1,232 | 99.27% |
▷ Public constants | 1,232 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin