Less More
Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼295.07ms] Passed 4 tests
Server-side resources used by Simple Stripe Payment
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.23 | 55.91 ▲8.07 |
Dashboard /wp-admin | 3.58 ▲0.17 | 35.77 ▲2.30 |
Posts /wp-admin/edit.php | 3.80 ▲0.16 | 36.63 ▼1.57 |
Add New Post /wp-admin/post-new.php | 7.04 ▲0.07 | 90.24 ▼1,183.40 |
Media Library /wp-admin/upload.php | 3.45 ▲0.16 | 26.10 ▲2.41 |
Simple Stripe Payment /wp-admin/options-general.php?page=simplestripepayment | 3.42 | 23.85 |
Server storage [IO: ▲1.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
1.04MB
Filesystem: 268 new files0.00MB
Database: no new tables, 3 new optionsNew WordPress options |
---|
simplestripepayment_settings |
simplestripepayment_ids |
widget_simplestripepaymentwidgetitem |
Browser metrics Passed 4 tests
Checking browser requirements for Simple Stripe Payment
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,800 ▲45 | 16.01 ▲0.32 | 6.33 ▲0.36 | 2.91 ▲0.42 |
Dashboard /wp-admin | 2,897 ▲36 | 6.13 ▼0.04 | 114.63 ▼17.26 | 155.43 ▼7.41 |
Posts /wp-admin/edit.php | 2,693 ▼1 | 3.23 ▼0.00 | 61.91 ▼3.38 | 134.77 ▼6.06 |
Add New Post /wp-admin/post-new.php | 1,802 ▲141 | 21.94 ▲5.57 | 450.81 ▲11.64 | 160.09 ▲5.26 |
Media Library /wp-admin/upload.php | 1,703 ▲5 | 5.52 ▲0.00 | 141.79 ▲0.62 | 185.00 ▲0.75 |
Simple Stripe Payment /wp-admin/options-general.php?page=simplestripepayment | 1,775 | 2.38 | 53.08 | 101.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/simple-stripe-payment/stripe-php-master/build.php
- > /wp-content/plugins/simple-stripe-payment/stripe-php-master/update_certs.php
- 210× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractServiceFactory' not found in wp-content/plugins/simple-stripe-payment/stripe-php-master/lib/Service/Terminal/TerminalServiceFactory.php:14
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractServiceFactory' not found in wp-content/plugins/simple-stripe-payment/stripe-php-master/lib/Service/Sigma/SigmaServiceFactory.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Stripe\\Exception\\ExceptionInterface' not found in wp-content/plugins/simple-stripe-payment/stripe-php-master/lib/Exception/OAuth/ExceptionInterface.php:8
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/simple-stripe-payment/stripe-php-master/lib/Service/Checkout/SessionService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/simple-stripe-payment/stripe-php-master/lib/Event.php:53
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/simple-stripe-payment/stripe-php-master/lib/Service/SubscriptionItemService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/simple-stripe-payment/stripe-php-master/lib/Service/CountrySpecService.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Stripe\\Exception\\ExceptionInterface' not found in wp-content/plugins/simple-stripe-payment/stripe-php-master/lib/Exception/SignatureVerificationException.php:9
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Exception\\ApiErrorException' not found in wp-content/plugins/simple-stripe-payment/stripe-php-master/lib/Exception/ApiConnectionException.php:10
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/simple-stripe-payment/stripe-php-master/lib/Service/InvoiceItemService.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 96% from 29 tests
readme.txt Passed 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
4 plugin tags: block, shortcode, widget, stripe
simple-stripe-payment/simplestripepayment.php 92% from 13 tests
This is the main PHP file of "Simple Stripe Payment" version 1.19, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("simple-stripe-payment.php" instead of "simplestripepayment.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
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/simple-stripe-payment/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 | 243 | 1,994 | 9,200 | 7,964 |
Markdown | 3 | 666 | 0 | 1,019 |
JavaScript | 5 | 20 | 52 | 240 |
CSS | 3 | 17 | 1 | 108 |
JSON | 2 | 0 | 0 | 68 |
XML | 1 | 0 | 0 | 31 |
make | 1 | 9 | 0 | 27 |
YAML | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
An short overview of 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.18 |
Average class complexity | 3.07 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 67.00 |
Average method complexity | 1.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 23 | |
Interfaces | 6 | |
Traits | 7 | |
Classes | 223 | |
▷ Abstract classes | 11 | 4.93% |
▷ Concrete classes | 212 | 95.07% |
▷ Final classes | 0 | 0.00% |
Methods | 713 | |
▷ Static methods | 157 | 22.02% |
▷ Public methods | 645 | 90.46% |
▷ Protected methods | 28 | 3.93% |
▷ Private methods | 40 | 5.61% |
Functions | 7 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 7 | 100.00% |
Constants | 709 | |
▷ Global constants | 2 | 0.28% |
▷ Class constants | 707 | 99.72% |
▷ Public constants | 707 | 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