Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- The plugin cannot be installed
- > Notice in wp-content/plugins/wp-stripe/wp-stripe.php+60
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.85MB] [CPU: ▼49.45ms] Passed 4 tests
A check of server-side resources used by WP Stripe
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.13 ▼1.33 | 5.14 ▼35.78 |
Dashboard /wp-admin | 2.15 ▼1.15 | 6.14 ▼41.71 |
Posts /wp-admin/edit.php | 2.15 ▼1.20 | 7.61 ▼39.31 |
Add New Post /wp-admin/post-new.php | 2.15 ▼3.73 | 7.64 ▼81.01 |
Media Library /wp-admin/upload.php | 2.15 ▼1.07 | 6.16 ▼26.10 |
WP Stripe /wp-admin/options-general.php?page=wp_stripe | 2.16 | 6.68 |
Server storage [IO: ▲0.70MB] [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: 100 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by WP Stripe
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,148 ▲402 | 19.29 ▲4.74 | 28.38 ▲26.68 | 42.26 ▼0.04 |
Dashboard /wp-admin | 2,287 ▲96 | 7.26 ▲2.39 | 136.89 ▲19.31 | 38.15 ▼6.44 |
Posts /wp-admin/edit.php | 2,170 ▲81 | 3.79 ▲1.80 | 88.44 ▲47.38 | 32.73 ▼3.15 |
Add New Post /wp-admin/post-new.php | 1,535 ▲16 | 18.29 ▼4.52 | 627.37 ▼34.62 | 64.90 ▲6.48 |
Media Library /wp-admin/upload.php | 1,466 ▲84 | 6.59 ▲2.38 | 132.38 ▲11.68 | 45.32 ▼7.10 |
WP Stripe /wp-admin/options-general.php?page=wp_stripe | 1,281 | 5.00 | 73.46 | 36.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/wp-stripe/wp-stripe.php+60
Trying to access array offset on value of type bool
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- 25 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp_stripe
- > Notice in wp-content/plugins/wp-stripe/includes/stripe-options.php+249
Trying to access array offset on value of type bool
- > GET request to /wp-admin/options-general.php?page=wp_stripe
- > Warning in wp-content/plugins/wp-stripe/wp-stripe.php+103
Use of undefined constant WP_STRIPE_KEY - assumed 'WP_STRIPE_KEY' (this will throw an Error in a future version of PHP)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp_stripe
- > User notice in wp-includes/functions.php+5905
Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-stripe/stripe-php/test/Stripe.php
- 56× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'UnitTestCase' not found in wp-content/plugins/wp-stripe/stripe-php/test/Stripe/InvalidRequestErrorTest.php:3
- > PHP Fatal error
Uncaught Error: Class 'Stripe_ApiResource' not found in wp-content/plugins/wp-stripe/stripe-php/lib/Stripe/Invoice.php:3
- > PHP Fatal error
Uncaught Error: Class 'StripeTestCase' not found in wp-content/plugins/wp-stripe/stripe-php/test/Stripe/RecipientTest.php:3
- > PHP Fatal error
Uncaught Error: Class 'StripeTestCase' not found in wp-content/plugins/wp-stripe/stripe-php/test/Stripe/UtilTest.php:3
- > PHP Fatal error
Uncaught Error: Class 'Stripe_Util_Set' not found in wp-content/plugins/wp-stripe/stripe-php/lib/Stripe/Object.php:18
- > PHP Fatal error
Uncaught Error: Class 'StripeTestCase' not found in wp-content/plugins/wp-stripe/stripe-php/test/Stripe/PlanTest.php:3
- > PHP Fatal error
Uncaught Error: Class 'StripeTestCase' not found in wp-content/plugins/wp-stripe/stripe-php/test/Stripe/SubscriptionTest.php:3
- > PHP Fatal error
Uncaught Error: Class 'Stripe_ApiResource' not found in wp-content/plugins/wp-stripe/stripe-php/lib/Stripe/Plan.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-stripe/includes/stripe-cpt.php:18
- > PHP Fatal error
Uncaught Error: Class 'Stripe_Error' not found in wp-content/plugins/wp-stripe/stripe-php/lib/Stripe/InvalidRequestError.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Screenshots: Please add images for these screenshots: #1 (Payment Form), #2 (Payments Overview), #3 (Recent Payments Widget (largely unstyled, shows recent donations of users who opted-in))
- Tags: There are too many tags (18 tag instead of maximum 10)
wp-stripe/wp-stripe.php Passed 13 tests
The entry point to "WP Stripe" version 1.5 is a PHP file that has certain tags in its header comment area
69 characters long description:
Integration of the payment system Stripe as an alternative to PayPal.
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
Please make sure to remedy the following
- For security reasons, never distribute binary or executable files with your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/wp-stripe/stripe-php/lib/data/ca-certificates.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 67 | 835 | 816 | 3,144 |
CSS | 4 | 127 | 22 | 872 |
JavaScript | 2 | 38 | 18 | 68 |
JSON | 1 | 0 | 0 | 29 |
Markdown | 1 | 12 | 0 | 15 |
YAML | 1 | 4 | 0 | 14 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 3.42 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 1.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 55 | |
▷ Abstract classes | 5 | 9.09% |
▷ Concrete classes | 50 | 90.91% |
▷ Final classes | 0 | 0.00% |
Methods | 209 | |
▷ Static methods | 70 | 33.49% |
▷ Public methods | 188 | 89.95% |
▷ Protected methods | 13 | 6.22% |
▷ Private methods | 8 | 3.83% |
Functions | 47 | |
▷ Named functions | 47 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 6 | 85.71% |
▷ Class constants | 1 | 14.29% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
12 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/h-card.png | 1.04KB | 0.28KB | ▼ 73.20% |
images/helper.png | 2.04KB | 1.00KB | ▼ 50.67% |
images/h-amount.png | 1.17KB | 0.46KB | ▼ 61.10% |
images/macFFBgHack.png | 0.19KB | 0.10KB | ▼ 48.98% |
images/year.png | 1.13KB | 0.28KB | ▼ 75.39% |