Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼7.22ms] Passed 4 tests
Server-side resources used by Gravity Forms + Stripe
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 43.75 ▲5.42 |
Dashboard /wp-admin | 3.31 ▼0.04 | 45.12 ▼12.82 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.10 ▼3.81 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 79.26 ▼14.40 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.74 ▲2.17 |
Server storage [IO: ▲1.41MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 169 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Gravity Forms + Stripe
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.13 ▼0.43 | 1.84 ▲0.33 | 43.83 ▼0.32 |
Dashboard /wp-admin | 2,195 ▲24 | 5.64 ▲0.06 | 97.22 ▲11.52 | 41.15 ▼2.22 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 2.01 ▲0.04 | 33.40 ▼2.35 | 34.22 ▼0.44 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.64 ▲0.51 | 691.95 ▲18.16 | 58.82 ▲8.55 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.23 ▲0.01 | 95.82 ▼4.02 | 43.78 ▲0.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
Almost there! Just fix the following items
- 111× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PPP\\Stripe\\ApiResource' not found in wp-content/plugins/gravity-forms-stripe/includes/api/stripe-php/lib/Recipient.php:25
- > PHP Fatal error
Uncaught Error: Class 'PPP\\Stripe\\ApiResource' not found in wp-content/plugins/gravity-forms-stripe/includes/api/stripe-php/lib/Terminal/Location.php:16
- > PHP Fatal error
Uncaught Error: Class 'PPP\\Stripe\\SingletonApiResource' not found in wp-content/plugins/gravity-forms-stripe/includes/api/stripe-php/lib/Balance.php:16
- > PHP Fatal error
Uncaught Error: Class 'PPP\\Stripe\\ApiResource' not found in wp-content/plugins/gravity-forms-stripe/includes/api/stripe-php/lib/SubscriptionSchedule.php:31
- > PHP Fatal error
Uncaught Error: Class 'PPP\\Stripe\\ApiResource' not found in wp-content/plugins/gravity-forms-stripe/includes/api/stripe-php/lib/Checkout/Session.php:24
- > PHP Fatal error
Uncaught Error: Class 'PPP\\Stripe\\Exception\\OAuth\\OAuthErrorException' not found in wp-content/plugins/gravity-forms-stripe/includes/api/stripe-php/lib/Exception/OAuth/UnsupportedGrantTypeException.php:11
- > PHP Fatal error
Uncaught Error: Class 'PPP\\Stripe\\StripeObject' not found in wp-content/plugins/gravity-forms-stripe/includes/api/stripe-php/lib/OrderItem.php:18
- > PHP Fatal error
Uncaught Error: Class 'PPP\\Stripe\\ApiResource' not found in wp-content/plugins/gravity-forms-stripe/includes/api/stripe-php/lib/InvoiceLineItem.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/gravity-forms-stripe/includes/views/field-setting-card_funding_types.php:8
- > PHP Fatal error
Uncaught Error: Class 'PPP\\Stripe\\ApiResource' not found in wp-content/plugins/gravity-forms-stripe/includes/api/stripe-php/lib/OrderReturn.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 18 tag instead of maximum 10
gravity-forms-stripe/gravity-forms-stripe.php Passed 13 tests
Analyzing the main PHP file in "Gravity Forms + Stripe" version 1.9.2.14
96 characters long description:
Use Stripe to process credit card payments on your site, easily and securely, with Gravity Forms
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress 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/gravity-forms-stripe/includes/api/stripe-php/data/ca-certificates.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 140 | 1,874 | 5,087 | 8,838 |
JavaScript | 12 | 184 | 15 | 579 |
SVG | 2 | 0 | 0 | 531 |
CSS | 2 | 54 | 14 | 229 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 6.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 341.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 12 | |
Interfaces | 5 | |
Traits | 7 | |
Classes | 118 | |
▷ Abstract classes | 8 | 6.78% |
▷ Concrete classes | 110 | 93.22% |
▷ Final classes | 0 | 0.00% |
Methods | 458 | |
▷ Static methods | 206 | 44.98% |
▷ Public methods | 385 | 84.06% |
▷ Protected methods | 15 | 3.28% |
▷ Private methods | 58 | 12.66% |
Functions | 12 | |
▷ Named functions | 8 | 66.67% |
▷ Anonymous functions | 4 | 33.33% |
Constants | 592 | |
▷ Global constants | 6 | 1.01% |
▷ Class constants | 586 | 98.99% |
▷ Public constants | 586 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/api/stripe-php/data/test.png | 0.09KB | 0.09KB | 0.00% |