Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.12MB] [CPU: ▼3.04ms] Passed 4 tests
This is a short check of server-side resources used by WooCommerce Stripe Payment Gateway
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 40.52 ▲2.57 |
Dashboard /wp-admin | 3.42 ▲0.11 | 45.66 ▼4.73 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 47.58 ▲0.14 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 79.22 ▼10.13 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 35.54 ▲4.86 |
Server storage [IO: ▲2.63MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 160 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
woocommerce_inbox_variant_assignment |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WooCommerce Stripe Payment Gateway
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲35 | 14.34 ▼0.03 | 1.70 ▼0.04 | 46.49 ▲5.04 |
Dashboard /wp-admin | 2,202 ▲31 | 5.60 ▲0.06 | 82.87 ▼22.10 | 39.28 ▼4.45 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.01 ▼0.01 | 37.66 ▲1.54 | 35.87 ▲1.89 |
Add New Post /wp-admin/post-new.php | 1,533 ▼3 | 23.23 ▲0.14 | 693.11 ▼19.00 | 65.60 ▲4.04 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.33 ▲0.12 | 98.07 ▼4.61 | 40.37 ▼2.60 |
Uninstaller [IO: ▲2.63MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attentionThis plugin does not fully uninstall, leaving 8 options in the database
- Uninstall procedure validation failed for this plugin
- > Error in wp-content/plugins/woocommerce-gateway-stripe/woocommerce-gateway-stripe.php+731
Uncaught Error: Class 'WC_Stripe_Inbox_Notes' not found in wp-content/plugins/woocommerce-gateway-stripe/woocommerce-gateway-stripe.php:731
Stack trace:
#0 wp-includes/class-wp-hook.php(310): wcstripe_deactivated()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-admin/includes/plugin.php(816): do_action() - This plugin has failed uninstalling correctly, leaving 160 files (2.63MB) in the plugin directory
- (new file) assets/css/stripe-styles.scss
- (new file) assets/images/alipay.svg
- (new file) assets/css/stripe-link.css
- (new file) assets/images/amex.svg
- (new file) assets/css/stripe-styles.css.map
- (new file) assets/css/stripe-link.css.map
- (new file) SECURITY.md
- (new file) assets/css/stripe-styles.css
- (new file) apple-developer-merchantid-domain-association
- (new file) assets/css/stripe-link.scss
- ...
- can_compress_scripts
- recovery_mode_email_last_sent
- widget_recent-posts
- widget_recent-comments
- woocommerce_inbox_variant_assignment
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files
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 97% 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
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 13 tag instead of maximum 10
woocommerce-gateway-stripe/woocommerce-gateway-stripe.php Passed 13 tests
The main file in "WooCommerce Stripe Payment Gateway" v. 7.7.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
53 characters long description:
Take credit card payments on your store using Stripe.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin18,255 lines of code in 154 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 109 | 3,530 | 7,585 | 16,192 |
JavaScript | 13 | 332 | 484 | 1,751 |
Sass | 2 | 33 | 6 | 245 |
Markdown | 2 | 15 | 0 | 25 |
CSS | 7 | 0 | 0 | 21 |
SVG | 21 | 0 | 0 | 21 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 29.94 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 281.00 |
Average method complexity | 3.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 3 | |
Classes | 80 | |
▷ Abstract classes | 5 | 6.25% |
▷ Concrete classes | 75 | 93.75% |
▷ Final classes | 1 | 1.33% |
Methods | 831 | |
▷ Static methods | 88 | 10.59% |
▷ Public methods | 727 | 87.48% |
▷ Protected methods | 33 | 3.97% |
▷ Private methods | 71 | 8.54% |
Functions | 18 | |
▷ Named functions | 7 | 38.89% |
▷ Anonymous functions | 11 | 61.11% |
Constants | 102 | |
▷ Global constants | 16 | 15.69% |
▷ Class constants | 86 | 84.31% |
▷ Public constants | 86 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected