Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.22MB] [CPU: ▼9.79ms] Passed 4 tests
A check of server-side resources used by Stripe Payment Gateway WooCommerce Addon
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.26 | 39.22 ▼10.80 |
Dashboard /wp-admin | 3.57 ▲0.22 | 47.31 ▼21.74 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 46.38 ▼0.18 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 88.74 ▼3.21 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 33.30 ▼3.40 |
Server storage [IO: ▲0.54MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 112 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Stripe Payment Gateway WooCommerce Addon
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.22 ▼1.42 | 1.64 ▼0.18 | 40.97 ▼2.50 |
Dashboard /wp-admin | 2,209 ▲21 | 5.91 ▲1.00 | 102.00 ▼19.73 | 40.75 ▼3.43 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.00 ▼0.00 | 34.26 ▼2.70 | 34.44 ▼0.94 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.49 ▲0.33 | 651.10 ▼40.61 | 54.12 ▼5.18 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.22 ▲0.00 | 99.30 ▼1.76 | 45.11 ▼0.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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 items
- 83× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\TestCase' not found in wp-content/plugins/stripe-woocommerce-addon/lib/tests/RefundTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\TestCase' not found in wp-content/plugins/stripe-woocommerce-addon/lib/tests/ApplicationFeeRefundTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\TestCase' not found in wp-content/plugins/stripe-woocommerce-addon/lib/tests/DisputeTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\TestCase' not found in wp-content/plugins/stripe-woocommerce-addon/lib/tests/ThreeDSecureTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\TestCase' not found in wp-content/plugins/stripe-woocommerce-addon/lib/tests/RecipientTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\TestCase' not found in wp-content/plugins/stripe-woocommerce-addon/lib/tests/TransferTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/stripe-woocommerce-addon/lib/lib/ApplicationFee.php:10
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/stripe-woocommerce-addon/lib/lib/Order.php:10
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/stripe-woocommerce-addon/lib/lib/ExternalAccount.php:10
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\TestCase' not found in wp-content/plugins/stripe-woocommerce-addon/lib/tests/CustomerTest.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
- Tested up to: Invalid version format
- Requires at least: Invalid version format
stripe-woocommerce-addon/stripe-woocommerce-addon.php Passed 13 tests
The main PHP script in "Stripe Payment Gateway WooCommerce Addon" version 1.0.8 is automatically included on every request by WordPress
105 characters long description:
This plugin adds a payment option in WooCommerce for customers to pay with their Credit Cards Via Stripe.
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Almost there! Just fix the following issues
- Do not include executable or dangerous files in your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/stripe-woocommerce-addon/lib/data/ca-certificates.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 96 | 1,065 | 1,615 | 5,235 |
JavaScript | 1 | 23 | 2 | 88 |
YAML | 2 | 3 | 0 | 18 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 3.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 1.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 90 | |
▷ Abstract classes | 5 | 5.56% |
▷ Concrete classes | 85 | 94.44% |
▷ Final classes | 0 | 0.00% |
Methods | 430 | |
▷ Static methods | 131 | 30.47% |
▷ Public methods | 390 | 90.70% |
▷ Protected methods | 22 | 5.12% |
▷ Private methods | 18 | 4.19% |
Functions | 10 | |
▷ Named functions | 7 | 70.00% |
▷ Anonymous functions | 3 | 30.00% |
Constants | 14 | |
▷ Global constants | 5 | 35.71% |
▷ Class constants | 9 | 64.29% |
▷ Public constants | 9 | 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
10 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/maestro.png | 9.75KB | 3.88KB | ▼ 60.26% |
images/discover.png | 5.78KB | 3.07KB | ▼ 46.82% |
images/stripe.png | 7.23KB | 3.10KB | ▼ 57.09% |
images/visa.png | 6.19KB | 3.09KB | ▼ 50.13% |
images/dinersclub.png | 6.35KB | 3.25KB | ▼ 48.74% |