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
Installer ran successfully
Server metrics [RAM: ▲0.35MB] [CPU: ▼5.12ms] Passed 4 tests
An overview of server-side resources used by Customer Portal for Stripe
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.83 ▲0.37 | 51.95 ▲8.66 |
Dashboard /wp-admin | 3.68 ▲0.37 | 50.85 ▼14.51 |
Posts /wp-admin/edit.php | 3.73 ▲0.37 | 54.15 ▲3.20 |
Add New Post /wp-admin/post-new.php | 6.20 ▲0.31 | 94.64 ▼9.64 |
Media Library /wp-admin/upload.php | 3.60 ▲0.37 | 37.73 ▲0.48 |
Stripe Customer Portal /wp-admin/options-general.php?page=customer-portal-for-stripe | 3.51 | 37.75 |
Server storage [IO: ▲1.23MB] [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: 309 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Customer Portal for Stripe
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,877 ▲116 | 13.44 ▼0.93 | 10.18 ▲8.28 | 41.05 ▼7.54 |
Dashboard /wp-admin | 2,202 ▲25 | 5.58 ▼0.04 | 86.76 ▼15.04 | 38.49 ▼7.36 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 1.99 ▲0.01 | 39.61 ▼1.10 | 38.46 ▲0.56 |
Add New Post /wp-admin/post-new.php | 1,529 ▼8 | 23.26 ▲5.10 | 688.17 ▲32.68 | 61.52 ▼12.91 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.22 ▼0.07 | 105.96 ▼0.33 | 46.49 ▲1.53 |
Stripe Customer Portal /wp-admin/options-general.php?page=customer-portal-for-stripe | 991 | 3.22 | 56.66 | 36.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
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
- 6× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/orderforms-stripe/vendor/stripe/stripe-php/update_certs.php
- > /wp-content/plugins/orderforms-stripe/vendor/stripe/stripe-php/build.php
- > /wp-content/plugins/orderforms-stripe/public/partials/list-invoices.php
- > /wp-content/plugins/orderforms-stripe/public/partials/public-display.php
- > /wp-content/plugins/orderforms-stripe/public/partials/list-cards.php
- > /wp-content/plugins/orderforms-stripe/public/partials/list-subscriptions.php
- 223× 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/orderforms-stripe/vendor/stripe/stripe-php/lib/Product.php:45
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/orderforms-stripe/vendor/stripe/stripe-php/lib/Service/PlanService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/orderforms-stripe/vendor/stripe/stripe-php/lib/Service/SubscriptionScheduleService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/orderforms-stripe/vendor/stripe/stripe-php/lib/Invoice.php:115
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/orderforms-stripe/vendor/stripe/stripe-php/lib/BitcoinTransaction.php:16
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/orderforms-stripe/vendor/stripe/stripe-php/lib/TaxRate.php:33
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/orderforms-stripe/vendor/stripe/stripe-php/lib/Service/CountrySpecService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/orderforms-stripe/vendor/stripe/stripe-php/lib/Service/TopupService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/orderforms-stripe/vendor/stripe/stripe-php/lib/Service/SetupAttemptService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/orderforms-stripe/vendor/stripe/stripe-php/lib/Service/Terminal/ConfigurationService.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
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 to be fixed:
- Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5, #6, #7, #8 in orderforms-stripe/assets to your readme.txt
orderforms-stripe/customer-portal-for-stripe.php 85% from 13 tests
The primary PHP file in "Customer Portal for Stripe" version 4.1.6 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("orderforms-stripe.php" instead of "customer-portal-for-stripe.php")
- 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
These items require your attention
- Do not include executable or dangerous files in your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/orderforms-stripe/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 | 279 | 2,461 | 11,860 | 9,733 |
Markdown | 4 | 758 | 0 | 1,321 |
JSON | 3 | 0 | 0 | 144 |
CSS | 3 | 16 | 13 | 78 |
XML | 1 | 0 | 0 | 31 |
make | 1 | 10 | 0 | 29 |
JavaScript | 2 | 4 | 54 | 6 |
YAML | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 3.24 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 74.00 |
Average method complexity | 1.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 31 | |
Interfaces | 9 | |
Traits | 8 | |
Classes | 243 | |
▷ Abstract classes | 10 | 4.12% |
▷ Concrete classes | 233 | 95.88% |
▷ Final classes | 0 | 0.00% |
Methods | 905 | |
▷ Static methods | 197 | 21.77% |
▷ Public methods | 814 | 89.94% |
▷ Protected methods | 39 | 4.31% |
▷ Private methods | 52 | 5.75% |
Functions | 18 | |
▷ Named functions | 4 | 22.22% |
▷ Anonymous functions | 14 | 77.78% |
Constants | 830 | |
▷ Global constants | 6 | 0.72% |
▷ Class constants | 824 | 99.28% |
▷ Public constants | 824 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin