Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.85MB] [CPU: ▼133.97ms] Passed 4 tests
This is a short check of server-side resources used by Recurring payment and donation through Stripe
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲1.00 | 42.59 ▲22.38 |
Dashboard /wp-admin | 3.95 ▲0.90 | 65.58 ▲30.36 |
Posts /wp-admin/edit.php | 4.01 ▲0.90 | 51.36 ▲7.31 |
Add New Post /wp-admin/post-new.php | 6.23 ▲0.80 | 96.59 ▼553.57 |
Media Library /wp-admin/upload.php | 3.82 ▲0.81 | 33.07 ▼12.00 |
Help /wp-admin/admin.php?page=rpadts-help | 3.81 | 36.02 |
Payments /wp-admin/admin.php?page=stripe-payments | 3.82 | 40.91 |
Settings /wp-admin/admin.php?page=rpadts-settings | 3.80 | 42.50 |
Server storage [IO: ▲0.86MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 126 new files
Database: 1 new table, 4 new options
New tables |
---|
wp_stripe_transaction_table |
New WordPress options |
---|
rpadts_currency |
rpadts_email_messagebody |
rpadts_apiMode |
rpadts_email_subject |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Recurring payment and donation through Stripe
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,055 ▲460 | 18.42 ▲2.87 | 15.84 ▲5.76 | 45.74 ▼5.48 |
Dashboard /wp-admin | 3,239 ▲308 | 8.03 ▲2.08 | 160.22 ▲13.65 | 115.32 ▼2.22 |
Posts /wp-admin/edit.php | 3,025 ▲286 | 4.48 ▲1.77 | 81.08 ▲14.54 | 94.18 ▲1.72 |
Add New Post /wp-admin/post-new.php | 1,538 ▼43 | 18.58 ▲1.00 | 327.42 ▼102.16 | 122.04 ▲4.74 |
Media Library /wp-admin/upload.php | 1,877 ▲70 | 4.85 ▼0.15 | 114.95 ▼63.45 | 121.70 ▼19.15 |
Help /wp-admin/admin.php?page=rpadts-help | 1,515 | 3.71 | 77.13 | 71.30 |
Payments /wp-admin/admin.php?page=stripe-payments | 1,577 | 3.96 | 73.95 | 69.25 |
Settings /wp-admin/admin.php?page=rpadts-settings | 2,172 | 3.75 | 76.95 | 101.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_stripe_transaction_table
- This plugin did not uninstall successfully, leaving 4 options in the database
- rpadts_email_subject
- rpadts_apiMode
- rpadts_email_messagebody
- rpadts_currency
Smoke tests 50% 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 everything seems fine, this is not 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 items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/recurring-payment-donation-through-stripe/vendor/stripe/stripe-php/build.php
- 91× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/recurring-payment-donation-through-stripe/vendor/stripe/stripe-php/lib/InvoiceItem.php:10
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/recurring-payment-donation-through-stripe/vendor/stripe/stripe-php/lib/BitcoinTransaction.php:10
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Error\\Base' not found in wp-content/plugins/recurring-payment-donation-through-stripe/vendor/stripe/stripe-php/lib/Error/Card.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/recurring-payment-donation-through-stripe/vendor/stripe/stripe-php/lib/Dispute.php:25
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/recurring-payment-donation-through-stripe/vendor/stripe/stripe-php/lib/Transfer.php:37
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/recurring-payment-donation-through-stripe/vendor/stripe/stripe-php/lib/Event.php:20
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\TestCase' not found in wp-content/plugins/recurring-payment-donation-through-stripe/vendor/stripe/stripe-php/tests/CollectionTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\TestCase' not found in wp-content/plugins/recurring-payment-donation-through-stripe/vendor/stripe/stripe-php/tests/ApplicationFeeRefundTest.php:5
- > PHP Notice
Undefined variable: argv in wp-content/plugins/recurring-payment-donation-through-stripe/vendor/stripe/stripe-php/build.php on line 5
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/recurring-payment-donation-through-stripe/admin/rpadts-payment-page.php on line 3
- > 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 issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% 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
Attributes that require attention:
- Tags: There are too many tags (13 tag instead of maximum 10)
recurring-payment-donation-through-stripe/recurring-payment-and-donation-through-stripe.php 92% from 13 tests
The primary PHP file in "Recurring payment and donation through Stripe" version 1.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("recurring-payment-donation-through-stripe.php" instead of "recurring-payment-and-donation-through-stripe.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Please make sure to remedy the following
- Do not include executable or dangerous files in your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/recurring-payment-donation-through-stripe/vendor/stripe/stripe-php/data/ca-certificates.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 102 | 1,113 | 1,649 | 6,362 |
JavaScript | 5 | 396 | 218 | 2,206 |
CSS | 3 | 149 | 57 | 1,803 |
Markdown | 2 | 201 | 0 | 296 |
JSON | 1 | 0 | 0 | 36 |
XML | 2 | 0 | 0 | 30 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 3.34 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 1.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 92 | |
▷ Abstract classes | 5 | 5.43% |
▷ Concrete classes | 87 | 94.57% |
▷ Final classes | 0 | 0.00% |
Methods | 425 | |
▷ Static methods | 134 | 31.53% |
▷ Public methods | 388 | 91.29% |
▷ Protected methods | 22 | 5.18% |
▷ Private methods | 15 | 3.53% |
Functions | 21 | |
▷ Named functions | 18 | 85.71% |
▷ Anonymous functions | 3 | 14.29% |
Constants | 15 | |
▷ Global constants | 6 | 40.00% |
▷ Class constants | 9 | 60.00% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/images/ui-icons_555555_256x240.png | 6.82KB | 4.17KB | ▼ 38.82% |
vendor/stripe/stripe-php/data/test.png | 0.09KB | 0.09KB | 0.00% |
assets/css/images/ui-icons_444444_256x240.png | 6.83KB | 4.17KB | ▼ 38.86% |
assets/css/images/ui-icons_ffffff_256x240.png | 6.15KB | 4.17KB | ▼ 32.13% |
assets/css/images/ui-icons_777777_256x240.png | 6.83KB | 4.17KB | ▼ 38.92% |