Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼7.45ms] Passed 4 tests
A check of server-side resources used by Simple Stripe
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 36.88 ▼1.73 |
Dashboard /wp-admin | 3.36 ▲0.06 | 43.57 ▼8.03 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 43.69 ▼3.13 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 90.11 ▼14.22 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 34.67 ▼4.40 |
Simple Stripe /wp-admin/options-general.php?page=simple-stripe | 3.47 | 33.85 |
Server storage [IO: ▲1.38MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 314 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
simple_stripe_settings |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Simple Stripe
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲33 | 14.48 ▲0.10 | 1.68 ▼0.19 | 41.94 ▼1.05 |
Dashboard /wp-admin | 2,207 ▲21 | 5.77 ▲0.84 | 96.07 ▼14.03 | 38.86 ▼2.07 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 2.02 ▼0.02 | 37.15 ▲2.18 | 35.02 ▲3.92 |
Add New Post /wp-admin/post-new.php | 1,517 ▼11 | 17.68 ▼5.48 | 638.29 ▼16.35 | 48.11 ▼15.96 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.24 ▲0.00 | 92.07 ▼22.52 | 43.64 ▼4.53 |
Simple Stripe /wp-admin/options-general.php?page=simple-stripe | 3,057 | 3.04 | 42.15 | 128.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- simple_stripe_settings
- 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
Everything seems fine, however 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
The following issues need your attention
- 249× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/simple-stripe/stripe-php-master/lib/Service/Reporting/ReportTypeService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/simple-stripe/stripe-php-master/lib/Service/Radar/ValueListItemService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/simple-stripe/stripe-php-master/lib/Service/Checkout/SessionService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/simple-stripe/stripe-php-master/lib/Service/TestHelpers/CustomerService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/simple-stripe/stripe-php-master/lib/Refund.php:34
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/simple-stripe/stripe-php-master/lib/Service/OAuthService.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/simple-stripe/stripe-php-master/lib/Service/Treasury/FinancialAccountService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/simple-stripe/stripe-php-master/lib/Issuing/Cardholder.php:29
- > PHP Fatal error
Uncaught Error: Interface 'Stripe\\Exception\\ExceptionInterface' not found in wp-content/plugins/simple-stripe/stripe-php-master/lib/Exception/InvalidArgumentException.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/simple-stripe/stripe-php-master/lib/Service/TestHelpers/Terminal/ReaderService.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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: payments, stripe checkout, stripe, credit card, stripe payments
simple-stripe/simple-stripe.php Passed 13 tests
The main PHP file in "Simple Stripe" ver. 0.9.13 adds more information about the plugin and also serves as the entry point for this plugin
100 characters long description:
Just register your Stripe API key and use the shortcode.You can easily make a payment page anywhere.
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 fix the following items
- Do not include executable or dangerous files in your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/simple-stripe/stripe-php-master/data/ca-certificates.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 288 | 2,530 | 11,620 | 9,670 |
Markdown | 2 | 786 | 0 | 1,559 |
PO File | 1 | 263 | 297 | 525 |
JavaScript | 6 | 214 | 36 | 415 |
CSS | 4 | 25 | 0 | 162 |
JSON | 1 | 0 | 0 | 48 |
SVG | 2 | 0 | 0 | 19 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 2.52 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 74.00 |
Average method complexity | 1.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 36 | |
Interfaces | 9 | |
Traits | 9 | |
Classes | 263 | |
▷ Abstract classes | 10 | 3.80% |
▷ Concrete classes | 253 | 96.20% |
▷ Final classes | 0 | 0.00% |
Methods | 873 | |
▷ Static methods | 181 | 20.73% |
▷ Public methods | 789 | 90.38% |
▷ Protected methods | 41 | 4.70% |
▷ Private methods | 43 | 4.93% |
Functions | 26 | |
▷ Named functions | 14 | 53.85% |
▷ Anonymous functions | 12 | 46.15% |
Constants | 1,071 | |
▷ Global constants | 5 | 0.47% |
▷ Class constants | 1,066 | 99.53% |
▷ Public constants | 1,066 | 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
No PNG images were found in this plugin