Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲8.18MB] [CPU: ▲61.36ms] 50% from 4 tests
This is a short check of server-side resources used by Stripe Payment Forms by WP Simple Pay - Accept Payments with Stripe
Please take the time to fix the following items
- RAM: Total memory usage should be kept under 10MB (currently 12.49MB on /wp-admin/edit.php?post_type=simple-pay&page=simpay-about-us)
- Extra RAM: The extra memory usage must be under 5MB (currently 8.18MB on /wp-admin/edit.php?post_type=simple-pay&page=simpay-about-us)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.75 ▲6.29 | 94.13 ▲53.59 |
Dashboard /wp-admin | 12.10 ▲8.75 | 124.91 ▲65.56 |
Posts /wp-admin/edit.php | 12.21 ▲8.85 | 117.39 ▲66.46 |
Add New Post /wp-admin/post-new.php | 14.97 ▲9.08 | 157.65 ▲59.82 |
Media Library /wp-admin/upload.php | 12.04 ▲8.81 | 111.70 ▲75.76 |
System Report /wp-admin/edit.php?post_type=simple-pay&page=system-report | 11.78 | 93.36 |
Add New /wp-admin/post-new.php?post_type=simple-pay | 12.13 | 120.90 |
Scheduled Actions /wp-admin/tools.php?page=action-scheduler | 12.31 | 127.69 |
Payment Forms /wp-admin/edit.php?post_type=simple-pay | 12.58 | 129.93 |
Settings /wp-admin/edit.php?post_type=simple-pay&page=simpay_settings | 12.49 | 119.27 |
Activity & Reports /wp-admin/edit.php?post_type=simple-pay&page=simpay-activity-reports | 12.49 | 129.39 |
Coupons /wp-admin/edit.php?post_type=simple-pay&page=simpay_coupons | 12.49 | 127.27 |
Form Templates /wp-admin/edit.php?post_type=simple-pay&page=simpay_form_templates | 12.49 | 129.57 |
Setup Wizard /wp-admin/edit.php?post_type=simple-pay&page=simpay-setup-wizard | 12.49 | 113.81 |
About Us /wp-admin/edit.php?post_type=simple-pay&page=simpay-about-us | 12.49 | 118.83 |
Server storage [IO: ▲7.08MB] [DB: ▲0.08MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 1,277 new files
Database: 6 new tables, 19 new options
New tables |
---|
wp_actionscheduler_logs |
wp_actionscheduler_actions |
wp_actionscheduler_claims |
wp_wpsp_notifications |
wp_wpsp_transactions |
wp_actionscheduler_groups |
New WordPress options |
---|
simpay_has_seen_help_icon |
widget_recent-posts |
simpay_completed_migrations |
simpay_settings |
db_upgraded |
schema-ActionScheduler_LoggerSchema |
simpay_installed |
wpdb_wpsp_transactions_version |
wpdb_wpsp_notifications_version |
action_scheduler_hybrid_store_demarkation |
... |
Browser metrics Passed 4 tests
Stripe Payment Forms by WP Simple Pay - Accept Payments with Stripe: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,256 ▲510 | 16.61 ▲2.30 | 170.42 ▲168.60 | 32.74 ▼11.33 |
Dashboard /wp-admin | 2,421 ▲244 | 5.58 ▼0.04 | 90.35 ▼8.28 | 43.84 ▲3.51 |
Posts /wp-admin/edit.php | 2,260 ▲160 | 2.23 ▲0.28 | 37.35 ▲0.66 | 40.19 ▲10.07 |
Add New Post /wp-admin/post-new.php | 6,535 ▲4,999 | 25.37 ▲2.23 | 996.53 ▲370.77 | 47.17 ▼15.36 |
Media Library /wp-admin/upload.php | 1,552 ▲149 | 4.25 ▲0.09 | 103.70 ▲0.46 | 47.28 ▲3.41 |
System Report /wp-admin/edit.php?post_type=simple-pay&page=system-report | 2,186 | 11.31 | 282.03 | 110.37 |
Add New /wp-admin/post-new.php?post_type=simple-pay | 1,501 | 10.77 | 145.75 | 124.71 |
Scheduled Actions /wp-admin/tools.php?page=action-scheduler | 1,672 | 1.91 | 27.78 | 34.88 |
Payment Forms /wp-admin/edit.php?post_type=simple-pay | 1,486 | 10.71 | 152.38 | 129.11 |
Settings /wp-admin/edit.php?post_type=simple-pay&page=simpay_settings | 1,656 | 10.40 | 123.23 | 155.83 |
Activity & Reports /wp-admin/edit.php?post_type=simple-pay&page=simpay-activity-reports | 1,338 | 12.29 | 295.52 | 139.54 |
Coupons /wp-admin/edit.php?post_type=simple-pay&page=simpay_coupons | 1,428 | 10.42 | 122.78 | 119.42 |
Form Templates /wp-admin/edit.php?post_type=simple-pay&page=simpay_form_templates | 2,604 | 10.06 | 162.03 | 136.24 |
Setup Wizard /wp-admin/edit.php?post_type=simple-pay&page=simpay-setup-wizard | 1,219 | 11.29 | 171.88 | 20.12 |
About Us /wp-admin/edit.php?post_type=simple-pay&page=simpay-about-us | 1,909 | 10.31 | 124.18 | 174.55 |
Uninstaller [IO: ▲0.11MB] [DB: ▲0.08MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 tables in the database
- wp_wpsp_transactions
- wp_actionscheduler_groups
- wp_actionscheduler_actions
- wp_actionscheduler_claims
- wp_actionscheduler_logs
- wp_wpsp_notifications
- The uninstall procedure has failed, leaving 20 options in the database
- wpdb_wpsp_notifications_version
- theysaidso_admin_options
- widget_recent-posts
- simpay_installed
- action_scheduler_hybrid_store_demarkation
- schema-ActionScheduler_LoggerSchema
- widget_theysaidso_widget
- simpay_settings
- simpay_customer_achievements
- simpay_setup_wizard_launched
- ...
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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
- 4× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/stripe/lib/Stripe/update_certs.php
- > /wp-content/plugins/stripe/lib/Stripe/build.php
- > /wp-content/plugins/stripe/views/admin-notice-license-upgrade-top-of-page.php
- > /wp-content/plugins/stripe/views/admin-dashboard-widget-report.php
- 591× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Abstract_RecurringSchedule' not found in wp-content/plugins/stripe/lib/woocommerce/action-scheduler/classes/schedules/ActionScheduler_CronSchedule.php:6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/stripe/views/admin-notice-expired-license.php on line 16
- > PHP Fatal error
Uncaught Error: Class 'SimplePay\\Vendor\\Stripe\\Service\\AbstractServiceFactory' not found in wp-content/plugins/stripe/lib/Stripe/lib/Service/TestHelpers/Issuing/IssuingServiceFactory.php:12
- > PHP Fatal error
Uncaught Error: Interface 'SimplePay\\Vendor\\Interop\\Container\\Exception\\ContainerException' not found in wp-content/plugins/stripe/lib/Interop/Container/Exception/NotFoundException.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/stripe/views/admin-payment-forms-license-expired.php:24
- > PHP Fatal error
Uncaught Error: Class 'SimplePay\\Vendor\\Stripe\\ApiResource' not found in wp-content/plugins/stripe/lib/Stripe/lib/Payout.php:40
- > PHP Fatal error
Uncaught Error: Class 'SimplePay\\Vendor\\Symfony\\Component\\CssSelector\ode\\AbstractNode' not found in wp-content/plugins/stripe/lib/Symfony/Component/CssSelector/Node/PseudoNode.php:24
- > PHP Fatal error
Uncaught Error: Interface 'SimplePay\\Vendor\\Stripe\\BaseStripeClientInterface' not found in wp-content/plugins/stripe/lib/Stripe/lib/StripeStreamingClientInterface.php:8
- > PHP Fatal error
Uncaught Error: Class 'SimplePay\\Vendor\\Stripe\\ApiResource' not found in wp-content/plugins/stripe/lib/Stripe/lib/Treasury/ReceivedCredit.php:31
- > PHP Fatal error
Uncaught Error: Interface 'SimplePay\\Core\\EventManagement\\SubscriberInterface' not found in wp-content/plugins/stripe/src/Block/BlockSubscriber.php:21
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
- > GET request to /wp-admin/edit.php?post_type=simple-pay&page=system-report
- > Javascript (severe) in unknown
/wp-admin/site-health.php?tab=debug&simpay=1 161:17 Uncaught TypeError: Cannot read properties of null (reading 'nextElementSibling')
- > GET request to /wp-admin/edit.php?post_type=simple-pay&page=simpay-activity-reports
- > Console-api (warning) in wp-includes/js/dist/deprecated.min.js?ver=73ad3591e7bc95f4777a+1:627
`position` prop in wp.components.Dropdown is deprecated since version 6.2. Please use `popoverProps.placement` prop instead. Note: Note that the `position` prop will override any values passed through the `popoverProps.placement` prop.
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: credit card payments, stripe, stripe payments, stripe gateway, stripe checkout
stripe/stripe-checkout.php 85% from 13 tests
The main PHP file in "Stripe Payment Forms by WP Simple Pay - Accept Payments with Stripe" ver. 4.7.10 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("stripe.php" instead of "stripe-checkout.php")
- Domain Path: The domain path is invalid: folder "/languages" does not exist
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Please 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/lib/Stripe/data/ca-certificates.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 903 | 15,300 | 46,495 | 64,245 |
JavaScript | 156 | 1,727 | 1,988 | 9,538 |
JSON | 90 | 0 | 0 | 8,456 |
Sass | 21 | 991 | 69 | 5,071 |
Markdown | 8 | 843 | 0 | 1,694 |
CSS | 17 | 74 | 44 | 610 |
HTML | 2 | 0 | 0 | 356 |
XML | 3 | 3 | 0 | 70 |
make | 1 | 10 | 0 | 29 |
SVG | 19 | 0 | 0 | 21 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 6.76 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 270.00 |
Average method complexity | 2.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.00 |
Code structure | ||
---|---|---|
Namespaces | 175 | |
Interfaces | 57 | |
Traits | 22 | |
Classes | 683 | |
▷ Abstract classes | 55 | 8.05% |
▷ Concrete classes | 628 | 91.95% |
▷ Final classes | 4 | 0.64% |
Methods | 3,476 | |
▷ Static methods | 389 | 11.19% |
▷ Public methods | 2,850 | 81.99% |
▷ Protected methods | 249 | 7.16% |
▷ Private methods | 377 | 10.85% |
Functions | 489 | |
▷ Named functions | 362 | 74.03% |
▷ Anonymous functions | 127 | 25.97% |
Constants | 1,166 | |
▷ Global constants | 17 | 1.46% |
▷ Class constants | 1,149 | 98.54% |
▷ Public constants | 1,149 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
37 PNG files occupy 1.31MB with 0.38MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/core/assets/images/about/plugin-sb-youtube.png | 2.63KB | 2.07KB | ▼ 21.43% |
includes/core/assets/images/settings/coupons-thumb.png | 110.55KB | 61.02KB | ▼ 44.80% |
includes/core/assets/images/settings/captcha-recaptcha-badge.png | 16.35KB | 15.87KB | ▼ 2.92% |
includes/core/assets/images/settings/coupons-full.png | 110.55KB | 61.02KB | ▼ 44.80% |
includes/core/assets/images/icon.png | 6.07KB | 4.15KB | ▼ 31.68% |