Benchmarks
Plugin footprint 65% 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.61MB] [CPU: ▲0.61ms] Passed 4 tests
This is a short check of server-side resources used by Accept Stripe Donation - AidWP
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.08 ▲0.62 | 44.26 ▲5.99 |
Dashboard /wp-admin | 3.96 ▲0.61 | 53.97 ▼5.82 |
Posts /wp-admin/edit.php | 4.01 ▲0.66 | 60.76 ▲13.71 |
Add New Post /wp-admin/post-new.php | 6.47 ▲0.59 | 86.90 ▼7.89 |
Media Library /wp-admin/upload.php | 3.86 ▲0.63 | 45.12 ▲10.17 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 4.25 | 43.87 |
Server storage [IO: ▲6.15MB] [DB: ▲0.08MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 524 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_wpsd_stripe_donation |
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
fs_active_plugins |
fs_debug_mode |
db_upgraded |
widget_theysaidso_widget |
fs_accounts |
Browser metrics Passed 4 tests
A check of browser resources used by Accept Stripe Donation - AidWP
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,157 ▲411 | 23.11 ▲8.76 | 285.43 ▲283.81 | 30.77 ▼13.13 |
Dashboard /wp-admin | 2,388 ▲214 | 6.37 ▲0.79 | 108.39 ▲21.05 | 42.01 ▼0.42 |
Posts /wp-admin/edit.php | 2,320 ▲220 | 3.55 ▲1.55 | 62.78 ▲20.38 | 39.74 ▲2.31 |
Add New Post /wp-admin/post-new.php | 1,562 ▲34 | 23.25 ▲0.16 | 650.55 ▼22.86 | 35.91 ▼17.33 |
Media Library /wp-admin/upload.php | 1,459 ▲59 | 4.30 ▲0.12 | 81.61 ▼28.85 | 43.30 ▼4.28 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,282 | 3.29 | 39.15 | 25.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/wp-stripe-donation/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 9 options in the database
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- fs_debug_mode
- widget_theysaidso_widget
- fs_accounts
- fs_active_plugins
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 take a closer look at the following
- 4× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-stripe-donation/stripe/build.php
- > /wp-content/plugins/wp-stripe-donation/admin/view/partial/form-content.php
- > /wp-content/plugins/wp-stripe-donation/admin/view/partial/form-styles.php
- > /wp-content/plugins/wp-stripe-donation/stripe/update_certs.php
- 187× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/wp-stripe-donation/stripe/lib/BalanceTransaction.php:32
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/wp-stripe-donation/stripe/lib/Service/ApplePayDomainService.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Stripe\\Exception\\ExceptionInterface' not found in wp-content/plugins/wp-stripe-donation/stripe/lib/Exception/OAuth/ExceptionInterface.php:8
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/wp-stripe-donation/stripe/lib/Issuing/Card.php:33
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/wp-stripe-donation/stripe/lib/Refund.php:32
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Exception\\ApiErrorException' not found in wp-content/plugins/wp-stripe-donation/stripe/lib/Exception/ApiConnectionException.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Stripe\\Exception\\ExceptionInterface' not found in wp-content/plugins/wp-stripe-donation/stripe/lib/Exception/BadMethodCallException.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/wp-stripe-donation/stripe/lib/Service/WebhookEndpointService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/wp-stripe-donation/stripe/lib/Terminal/Reader.php:26
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/wp-stripe-donation/stripe/lib/Radar/ValueList.php:26
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
wp-stripe-donation/wp-stripe-donation.php Passed 13 tests
"Accept Stripe Donation - AidWP" version 3.2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
127 characters long description:
Best Donation Plugin for WordPress allows you to collect donation or payment on your website via Stripe payment gateway method.
Code Analysis 3% 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
Almost there! Just fix the following issues
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/wp-stripe-donation/stripe/data/ca-certificates.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 360 | 10,022 | 26,108 | 44,250 |
CSS | 18 | 153 | 49 | 2,981 |
SVG | 1 | 0 | 0 | 2,671 |
PO File | 8 | 838 | 1,033 | 1,928 |
Sass | 15 | 36 | 36 | 1,796 |
LESS | 15 | 36 | 46 | 1,786 |
Markdown | 3 | 664 | 0 | 1,012 |
JavaScript | 6 | 91 | 73 | 494 |
JSON | 1 | 0 | 0 | 48 |
XML | 1 | 0 | 0 | 31 |
make | 1 | 9 | 0 | 27 |
YAML | 1 | 0 | 0 | 3 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
These items need your attention
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 19.08 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 21 | |
Interfaces | 6 | |
Traits | 16 | |
Classes | 249 | |
▷ Abstract classes | 12 | 4.82% |
▷ Concrete classes | 237 | 95.18% |
▷ Final classes | 0 | 0.00% |
Methods | 1,990 | |
▷ Static methods | 352 | 17.69% |
▷ Public methods | 1,504 | 75.58% |
▷ Protected methods | 73 | 3.67% |
▷ Private methods | 413 | 20.75% |
Functions | 109 | |
▷ Named functions | 103 | 94.50% |
▷ Anonymous functions | 6 | 5.50% |
Constants | 860 | |
▷ Global constants | 109 | 12.67% |
▷ Class constants | 751 | 87.33% |
▷ Public constants | 751 | 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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |