Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲2.60MB] [CPU: ▲18.32ms] Passed 4 tests
A check of server-side resources used by Accept Stripe Payments
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.74 ▲2.27 | 52.37 ▲11.47 |
Dashboard /wp-admin | 6.02 ▲2.67 | 74.40 ▲9.47 |
Posts /wp-admin/edit.php | 6.09 ▲2.73 | 76.25 ▲29.61 |
Add New Post /wp-admin/post-new.php | 8.64 ▲2.75 | 117.64 ▲23.93 |
Media Library /wp-admin/upload.php | 5.96 ▲2.73 | 62.19 ▲28.40 |
Settings /wp-admin/edit.php?post_type=asp-products&page=stripe-payments-settings | 6.01 | 78.51 |
Add-ons /wp-admin/edit.php?post_type=asp-products&page=stripe-payments-addons | 5.99 | 61.89 |
Orders /wp-admin/edit.php?post_type=stripe_order | 6.01 | 57.85 |
Coupons /wp-admin/edit.php?post_type=asp-products&page=stripe-payments-coupons | 5.96 | 57.65 |
Add New Product /wp-admin/post-new.php?post_type=asp-products | 6.17 | 75.58 |
Products /wp-admin/edit.php?post_type=asp-products | 6.01 | 68.60 |
Server storage [IO: ▲3.37MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 402 new files
Database: no new tables, 10 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
asp_plugin_user_feedback_notice |
asp_hash_private_key_one |
asp_cache_key |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
AcceptStripePayments-settings |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Accept Stripe Payments
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,964 ▲202 | 13.48 ▼0.65 | 8.62 ▲6.70 | 37.22 ▼7.38 |
Dashboard /wp-admin | 2,243 ▲63 | 5.56 ▼0.11 | 97.20 ▲9.34 | 71.52 ▲33.62 |
Posts /wp-admin/edit.php | 2,163 ▲63 | 2.13 ▲0.13 | 39.63 ▲2.16 | 34.92 ▲1.36 |
Add New Post /wp-admin/post-new.php | 6,243 ▲4,717 | 19.33 ▼3.56 | 840.10 ▲251.71 | 165.73 ▲115.28 |
Media Library /wp-admin/upload.php | 1,463 ▲60 | 4.19 ▼0.01 | 100.32 ▲1.22 | 75.29 ▲34.17 |
Settings /wp-admin/edit.php?post_type=asp-products&page=stripe-payments-settings | 4,296 | 4.67 | 79.87 | 117.32 |
Add-ons /wp-admin/edit.php?post_type=asp-products&page=stripe-payments-addons | 1,046 | 2.33 | 28.33 | 41.36 |
Orders /wp-admin/edit.php?post_type=stripe_order | 1,150 | 1.97 | 37.60 | 31.38 |
Coupons /wp-admin/edit.php?post_type=asp-products&page=stripe-payments-coupons | 1,086 | 2.33 | 27.77 | 30.43 |
Add New Product /wp-admin/post-new.php?post_type=asp-products | 3,572 | 7.73 | 183.72 | 135.37 |
Products /wp-admin/edit.php?post_type=asp-products | 1,220 | 1.97 | 37.78 | 34.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 10 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- asp_plugin_user_feedback_notice
- asp_hash_private_key_one
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- asp_cache_key
- theysaidso_admin_options
- AcceptStripePayments-settings
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/stripe-payments/includes/stripe/build.php
- > /wp-content/plugins/stripe-payments/includes/stripe/update_certs.php
- 221× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/stripe-payments/includes/stripe/lib/Service/Terminal/ConnectionTokenService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/stripe-payments/includes/stripe/lib/TaxRate.php:33
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/stripe-payments/includes/stripe/lib/Issuing/CardDetails.php:16
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/stripe-payments/includes/stripe/lib/Service/Issuing/CardholderService.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Stripe\\Exception\\ExceptionInterface' not found in wp-content/plugins/stripe-payments/includes/stripe/lib/Exception/SignatureVerificationException.php:9
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\BaseStripeClient' not found in wp-content/plugins/stripe-payments/includes/stripe/lib/StripeClient.php:66
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractServiceFactory' not found in wp-content/plugins/stripe-payments/includes/stripe/lib/Service/BillingPortal/BillingPortalServiceFactory.php:13
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/stripe-payments/includes/stripe/lib/Service/Identity/VerificationSessionService.php:7
- > PHP Fatal error
Uncaught Error: Class 'AcceptStripePayments' not found in wp-content/plugins/stripe-payments/admin/includes/class-asp-admin-product-meta-boxes.php:9
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/stripe-payments/includes/stripe/lib/Service/Identity/VerificationReportService.php:7
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- > GET request to /wp-admin/edit.php?post_type=asp-products
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: aspEditProdData is not defined" "ReferenceError: aspEditProdData is not defined\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/stripe-payments/admin/assets/js/edit-product.js?ver=2.0.82:2:28)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/edit.php?post_type=asp-products
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught ReferenceError: aspEditProdData is not defined
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Tags: You are using too many tags: 18 tag instead of maximum 10
stripe-payments/accept-stripe-payments.php 92% from 13 tests
The main PHP file in "Accept Stripe Payments" ver. 2.0.82 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("stripe-payments.php" instead of "accept-stripe-payments.php")
Code Analysis 3% 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
It is important to 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/stripe-payments/includes/stripe/data/ca-certificates.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 275 | 4,265 | 10,732 | 21,285 |
PO File | 5 | 4,923 | 5,879 | 11,667 |
JavaScript | 18 | 327 | 101 | 3,110 |
CSS | 26 | 291 | 142 | 1,708 |
Markdown | 3 | 705 | 0 | 1,173 |
JSON | 1 | 0 | 0 | 47 |
XML | 1 | 0 | 0 | 31 |
make | 1 | 8 | 0 | 23 |
SVG | 1 | 0 | 0 | 11 |
YAML | 1 | 0 | 0 | 3 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
Please fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 132)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 10.39 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 239.00 |
Average method complexity | 3.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 132.00 |
Code structure | ||
---|---|---|
Namespaces | 23 | |
Interfaces | 9 | |
Traits | 7 | |
Classes | 248 | |
▷ Abstract classes | 10 | 4.03% |
▷ Concrete classes | 238 | 95.97% |
▷ Final classes | 0 | 0.00% |
Methods | 1,147 | |
▷ Static methods | 240 | 20.92% |
▷ Public methods | 1,038 | 90.50% |
▷ Protected methods | 33 | 2.88% |
▷ Private methods | 76 | 6.63% |
Functions | 15 | |
▷ Named functions | 3 | 20.00% |
▷ Anonymous functions | 12 | 80.00% |
Constants | 783 | |
▷ Global constants | 11 | 1.40% |
▷ Class constants | 772 | 98.60% |
▷ Public constants | 772 | 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
36 PNG files occupy 0.08MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/images/mailer-lite-integration.png | 2.61KB | 1.69KB | ▼ 35.07% |
admin/assets/images/additional-custom-fields.png | 1.76KB | 0.83KB | ▼ 52.71% |
admin/assets/css/jquery-ui-theme/images/ui-icons_888888_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
assets/screenshot-2.png | 4.04KB | 4.26KB | 0.00% |
admin/assets/images/maichimp-integration.png | 3.62KB | 3.72KB | 0.00% |