Benchmarks
Plugin footprint Passed 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 gracefully, with no errors
Server metrics [RAM: ▼0.02MB] [CPU: ▼323.23ms] Passed 4 tests
A check of server-side resources used by Add Stripe Payments for Contact Form 7
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 51.26 ▼1.05 |
Dashboard /wp-admin | 3.41 ▲0.00 | 30.68 ▼3.13 |
Posts /wp-admin/edit.php | 3.64 ▲0.00 | 107.05 ▲67.12 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 96.64 ▼1,287.65 |
Media Library /wp-admin/upload.php | 3.30 ▲0.00 | 25.11 ▼1.09 |
Server storage [IO: ▲1.19MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 194 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Add Stripe Payments for Contact Form 7
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,774 ▲20 | 16.04 ▲0.94 | 5.68 ▼0.53 | 2.04 ▼0.61 |
Dashboard /wp-admin | 2,895 ▲38 | 6.13 ▼0.05 | 117.45 ▼3.12 | 169.83 ▲12.64 |
Posts /wp-admin/edit.php | 2,691 ▲7 | 3.22 ▲0.17 | 64.75 ▼29.42 | 146.74 ▼6.09 |
Add New Post /wp-admin/post-new.php | 1,696 ▼56 | 21.79 ▲0.18 | 456.19 ▼10.03 | 183.08 ▲22.87 |
Media Library /wp-admin/upload.php | 1,698 ▲3 | 5.48 ▼0.01 | 149.97 ▼2.84 | 202.06 ▲10.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means 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
The following issues need your attention
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/add-stripe-payments-for-contact-form-7/admin/partials/sp4cf7-admin-transaction-details.php
- > /wp-content/plugins/add-stripe-payments-for-contact-form-7/includes/stripe/build.php
- > /wp-content/plugins/add-stripe-payments-for-contact-form-7/includes/stripe/update_certs.php
- 117× 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/add-stripe-payments-for-contact-form-7/includes/stripe/lib/Plan.php:43
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/add-stripe-payments-for-contact-form-7/includes/stripe/lib/UsageRecordSummary.php:14
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/add-stripe-payments-for-contact-form-7/includes/stripe/lib/LoginLink.php:10
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/add-stripe-payments-for-contact-form-7/includes/stripe/lib/Account.php:35
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/add-stripe-payments-for-contact-form-7/includes/stripe/lib/BillingPortal/Session.php:24
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Exception\\ApiErrorException' not found in wp-content/plugins/add-stripe-payments-for-contact-form-7/includes/stripe/lib/Exception/PermissionException.php:9
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Exception\\ApiErrorException' not found in wp-content/plugins/add-stripe-payments-for-contact-form-7/includes/stripe/lib/Exception/ApiConnectionException.php:10
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/add-stripe-payments-for-contact-form-7/includes/stripe/lib/Issuing/Authorization.php:37
- > PHP Fatal error
Uncaught Error: Interface 'Stripe\\Exception\\ExceptionInterface' not found in wp-content/plugins/add-stripe-payments-for-contact-form-7/includes/stripe/lib/Exception/InvalidArgumentException.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Exception\\OAuth\\OAuthErrorException' not found in wp-content/plugins/add-stripe-payments-for-contact-form-7/includes/stripe/lib/Exception/OAuth/UnsupportedGrantTypeException.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% 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: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
add-stripe-payments-for-contact-form-7/add-stripe-payments-for-contact-form-7.php 92% from 13 tests
Analyzing the main PHP file in "Add Stripe Payments for Contact Form 7" version 2.0.3
Please take the time to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis 5% 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/add-stripe-payments-for-contact-form-7/includes/stripe/data/ca-certificates.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 154 | 1,550 | 5,053 | 6,564 |
JavaScript | 9 | 1,386 | 503 | 5,367 |
CSS | 7 | 153 | 37 | 1,116 |
Markdown | 3 | 611 | 0 | 897 |
JSON | 1 | 0 | 0 | 48 |
XML | 1 | 0 | 0 | 31 |
make | 1 | 9 | 0 | 27 |
SVG | 4 | 0 | 0 | 4 |
YAML | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 4.13 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 66.00 |
Average method complexity | 1.99 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 16 | |
Interfaces | 5 | |
Traits | 7 | |
Classes | 129 | |
▷ Abstract classes | 8 | 6.20% |
▷ Concrete classes | 121 | 93.80% |
▷ Final classes | 0 | 0.00% |
Methods | 400 | |
▷ Static methods | 154 | 38.50% |
▷ Public methods | 344 | 86.00% |
▷ Protected methods | 15 | 3.75% |
▷ Private methods | 41 | 10.25% |
Functions | 20 | |
▷ Named functions | 7 | 35.00% |
▷ Anonymous functions | 13 | 65.00% |
Constants | 649 | |
▷ Global constants | 11 | 1.69% |
▷ Class constants | 638 | 98.31% |
▷ Public constants | 638 | 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
There were not PNG files found in your plugin