Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼175.25ms] Passed 4 tests
A check of server-side resources used by Striper - Stripe Integration for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.00 | 31.42 ▼5.85 |
Dashboard /wp-admin | 3.06 ▲0.01 | 53.66 ▼1.69 |
Posts /wp-admin/edit.php | 3.11 ▲0.01 | 49.30 ▲3.70 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 91.58 ▼694.87 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 34.75 ▲1.41 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 66 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Striper - Stripe Integration for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 15.93 ▲0.45 | 10.23 ▲0.27 | 49.31 ▼9.28 |
Dashboard /wp-admin | 2,989 ▲55 | 5.91 ▼0.04 | 148.01 ▲0.56 | 117.61 ▲1.78 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.69 ▼0.01 | 69.08 ▼5.99 | 95.20 ▲1.11 |
Add New Post /wp-admin/post-new.php | 1,683 ▲68 | 18.75 ▼2.48 | 386.98 ▲104.81 | 113.14 ▼6.72 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.03 ▼0.01 | 148.17 ▼10.83 | 137.17 ▲7.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 0% from 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
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/striper/lib/stripe-php/test/Stripe.php
- 47× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'StripeTestCase' not found in wp-content/plugins/striper/lib/stripe-php/test/Stripe/BalanceTransactionTest.php:3
- > PHP Fatal error
Uncaught Error: Class 'StripeTestCase' not found in wp-content/plugins/striper/lib/stripe-php/test/Stripe/BalanceTest.php:3
- > PHP Fatal error
Uncaught Error: Class 'Stripe_ApiResource' not found in wp-content/plugins/striper/lib/stripe-php/lib/Stripe/Charge.php:3
- > PHP Fatal error
Uncaught Error: Class 'Stripe_ApiResource' not found in wp-content/plugins/striper/lib/stripe-php/lib/Stripe/BalanceTransaction.php:3
- > PHP Fatal error
Uncaught Error: Class 'Stripe_Error' not found in wp-content/plugins/striper/lib/stripe-php/lib/Stripe/CardError.php:3
- > PHP Fatal error
Uncaught Error: Class 'Stripe_ApiResource' not found in wp-content/plugins/striper/lib/stripe-php/lib/Stripe/Card.php:3
- > PHP Fatal error
Uncaught Error: Class 'Stripe_ApiResource' not found in wp-content/plugins/striper/lib/stripe-php/lib/Stripe/SingletonApiResource.php:3
- > PHP Fatal error
Uncaught Error: Class 'Stripe_ApiResource' not found in wp-content/plugins/striper/lib/stripe-php/lib/Stripe/Event.php:3
- > PHP Fatal error
Uncaught Error: Class 'Stripe_SingletonApiResource' not found in wp-content/plugins/striper/lib/stripe-php/lib/Stripe/Balance.php:3
- > PHP Fatal error
Uncaught Error: Class 'Stripe_ApiResource' not found in wp-content/plugins/striper/lib/stripe-php/lib/Stripe/Plan.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: payments, stripe, free stripe integration, woocommerce
striper/striper.php Passed 13 tests
The main PHP script in "Striper - Stripe Integration for WooCommerce" version 0.93 is automatically included on every request by WordPress
72 characters long description:
Provides a Credit Card Payment Gateway through Stripe for woo-commerece.
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
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/striper/lib/stripe-php/lib/data/ca-certificates.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 54 | 331 | 100 | 2,095 |
JSON | 1 | 0 | 0 | 29 |
JavaScript | 1 | 9 | 8 | 24 |
Markdown | 1 | 9 | 0 | 14 |
YAML | 1 | 3 | 0 | 9 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 3.41 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 1.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 49 | |
▷ Abstract classes | 5 | 10.20% |
▷ Concrete classes | 44 | 89.80% |
▷ Final classes | 0 | 0.00% |
Methods | 194 | |
▷ Static methods | 78 | 40.21% |
▷ Public methods | 173 | 89.18% |
▷ Protected methods | 16 | 8.25% |
▷ Private methods | 5 | 2.58% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/credits.png | 6.19KB | 3.36KB | ▼ 45.68% |