Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼1.31ms] Passed 4 tests
Analyzing server-side resources used by Simple Stripe checkout buttons
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 34.03 ▼5.12 |
Dashboard /wp-admin | 3.37 ▲0.06 | 45.41 ▲2.26 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 48.31 ▼4.43 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 94.50 ▲6.22 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 35.07 ▲2.04 |
Simple Stripe button /wp-admin/options-general.php?page=sposnage-stripe-plugin | 3.26 | 31.28 |
Server storage [IO: ▲0.90MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 218 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Simple Stripe checkout buttons: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.22 ▼1.08 | 1.68 ▼0.37 | 41.97 ▼1.00 |
Dashboard /wp-admin | 2,204 ▲16 | 5.87 ▲0.76 | 103.73 ▼15.23 | 41.48 ▼3.23 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.01 ▲0.02 | 40.42 ▼1.72 | 34.82 ▼0.81 |
Add New Post /wp-admin/post-new.php | 1,517 ▲3 | 17.54 ▲0.01 | 597.04 ▼46.74 | 50.41 ▼2.46 |
Media Library /wp-admin/upload.php | 1,392 ▲10 | 4.26 ▲0.11 | 94.80 ▼6.77 | 41.95 ▼2.99 |
Simple Stripe button /wp-admin/options-general.php?page=sposnage-stripe-plugin | 859 | 2.06 | 24.25 | 29.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 185× 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/simple-stripe-button/inc/stripe-php-7.67.0/lib/SubscriptionSchedule.php:32
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/simple-stripe-button/inc/stripe-php-7.67.0/lib/Service/OAuthService.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/simple-stripe-button/inc/stripe-php-7.67.0/lib/Service/DisputeService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/simple-stripe-button/inc/stripe-php-7.67.0/lib/Review.php:29
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/simple-stripe-button/inc/stripe-php-7.67.0/lib/Service/Issuing/CardService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Exception\\OAuth\\OAuthErrorException' not found in wp-content/plugins/simple-stripe-button/inc/stripe-php-7.67.0/lib/Exception/OAuth/InvalidRequestException.php:9
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/simple-stripe-button/inc/stripe-php-7.67.0/lib/Mandate.php:22
- > PHP Fatal error
Uncaught Error: Interface 'Stripe\\Exception\\ExceptionInterface' not found in wp-content/plugins/simple-stripe-button/inc/stripe-php-7.67.0/lib/Exception/BadMethodCallException.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Exception\\ApiErrorException' not found in wp-content/plugins/simple-stripe-button/inc/stripe-php-7.67.0/lib/Exception/InvalidRequestException.php:9
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/simple-stripe-button/inc/stripe-php-7.67.0/lib/Service/FileService.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: checkout, buy now, stripe
simple-stripe-button/simple-stripe-button.php Passed 13 tests
"Simple Stripe checkout buttons" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
45 characters long description:
The easiest way to add Stripe payment button.
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Please fix the following items
- 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-button/inc/stripe-php-7.67.0/data/ca-certificates.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 213 | 1,773 | 8,802 | 6,982 |
JavaScript | 1 | 1 | 3 | 55 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 2.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 67.00 |
Average method complexity | 1.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 22 | |
Interfaces | 6 | |
Traits | 7 | |
Classes | 197 | |
▷ Abstract classes | 10 | 5.08% |
▷ Concrete classes | 187 | 94.92% |
▷ Final classes | 0 | 0.00% |
Methods | 665 | |
▷ Static methods | 155 | 23.31% |
▷ Public methods | 600 | 90.23% |
▷ Protected methods | 28 | 4.21% |
▷ Private methods | 37 | 5.56% |
Functions | 17 | |
▷ Named functions | 10 | 58.82% |
▷ Anonymous functions | 7 | 41.18% |
Constants | 704 | |
▷ Global constants | 2 | 0.28% |
▷ Class constants | 702 | 99.72% |
▷ Public constants | 702 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin