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.03MB] [CPU: ▼0.89ms] Passed 4 tests
A check of server-side resources used by WP Stripe Kit Lite
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 43.32 ▲3.69 |
Dashboard /wp-admin | 3.33 ▲0.03 | 53.26 ▲6.69 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 53.49 ▲2.19 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 88.42 ▼12.91 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.71 ▲3.48 |
Server storage [IO: ▲0.66MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 197 new files
Database: no new tables, 9 new options
New WordPress options |
---|
alh_wp_stripe_kit_lite_checkout_button_css_normal |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
alh_wp_stripe_kit_lite_checkout_button_css_hover |
db_upgraded |
widget_recent-comments |
alh_wp_stripe_kit_lite_checkout_button_css_active |
Browser metrics Passed 4 tests
WP Stripe Kit Lite: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,898 ▲112 | 13.40 ▼0.95 | 8.94 ▲6.89 | 40.95 ▼4.42 |
Dashboard /wp-admin | 2,215 ▲35 | 5.47 ▼0.20 | 83.28 ▼12.93 | 38.76 ▼4.74 |
Posts /wp-admin/edit.php | 2,123 ▲23 | 2.02 ▼0.01 | 39.00 ▲2.10 | 34.91 ▼0.36 |
Add New Post /wp-admin/post-new.php | 1,546 ▲19 | 23.48 ▲0.68 | 662.12 ▼14.88 | 54.19 ▼4.67 |
Media Library /wp-admin/upload.php | 1,423 ▲26 | 4.23 ▲0.03 | 95.67 ▼5.57 | 45.75 ▼1.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
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)
Everything seems fine, however this is by no means an exhaustive test
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
Please fix the following items
- 11× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/wp-stripe-kit-lite/public/partials/wp-stripe-kit-checkout-button-ui.php
- > /wp-content/plugins/wp-stripe-kit-lite/vendors/stripe-php-6.7.4/tests/bootstrap.no_autoload.php
- > /wp-content/plugins/wp-stripe-kit-lite/vendors/stripe-php-6.7.4/update_certs.php
- > /wp-content/plugins/wp-stripe-kit-lite/public/partials/wp-stripe-kit-subscription-button-ui.php
- > /wp-content/plugins/wp-stripe-kit-lite/public/partials/wp-stripe-kit-checkout-common-ui.php
- > /wp-content/plugins/wp-stripe-kit-lite/vendors/stripe-php-6.7.4/build.php
- > /wp-content/plugins/wp-stripe-kit-lite/vendors/stripe-php-6.7.4/tests/bootstrap.php
- > /wp-content/plugins/wp-stripe-kit-lite/vendors/stripe-php-6.7.4/examples/oauth.php
- > /wp-content/plugins/wp-stripe-kit-lite/includes/wp-stripe-kit-admin-checkout-button-style-a-normal.php
- > /wp-content/plugins/wp-stripe-kit-lite/includes/wp-stripe-kit-admin-checkout-button-style-a-active.php
- 137× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\TestCase' not found in wp-content/plugins/wp-stripe-kit-lite/vendors/stripe-php-6.7.4/tests/Stripe/TransferTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\TestCase' not found in wp-content/plugins/wp-stripe-kit-lite/vendors/stripe-php-6.7.4/tests/Stripe/ApplePayDomainTest.php:5
- > PHP Notice
Undefined variable: stripe_pk in wp-content/plugins/wp-stripe-kit-lite/public/partials/wp-stripe-kit-checkout-common-ui.php on line 11
- > PHP Fatal error
Uncaught Error: Interface 'Stripe\\Util\\LoggerInterface' not found in wp-content/plugins/wp-stripe-kit-lite/vendors/stripe-php-6.7.4/lib/Util/DefaultLogger.php:9
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/wp-stripe-kit-lite/vendors/stripe-php-6.7.4/lib/FileUpload.php:17
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wp-stripe-kit-lite/vendors/stripe-php-6.7.4/tests/TestCase.php:8
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\TestCase' not found in wp-content/plugins/wp-stripe-kit-lite/vendors/stripe-php-6.7.4/tests/Stripe/OrderTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Error\\Base' not found in wp-content/plugins/wp-stripe-kit-lite/vendors/stripe-php-6.7.4/lib/Error/Api.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/wp-stripe-kit-lite/vendors/stripe-php-6.7.4/lib/BitcoinTransaction.php:10
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\TestCase' not found in wp-content/plugins/wp-stripe-kit-lite/vendors/stripe-php-6.7.4/tests/Stripe/RecipientTest.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: ecommerce, stripe, e-commerce, stripe checkout, subscription...
wp-stripe-kit-lite/wp-stripe-kit-lite.php 92% from 13 tests
The entry point to "WP Stripe Kit Lite" version 1.1.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Almost there! Just fix the following issues
- For security reasons, never distribute binary or executable files with your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/wp-stripe-kit-lite/vendors/stripe-php-6.7.4/data/ca-certificates.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 168 | 1,281 | 3,227 | 8,510 |
Markdown | 3 | 220 | 0 | 501 |
CSS | 2 | 2 | 32 | 170 |
JavaScript | 2 | 2 | 0 | 153 |
JSON | 1 | 0 | 0 | 36 |
YAML | 2 | 7 | 1 | 36 |
XML | 2 | 0 | 0 | 30 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 3.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 1.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 2 | |
Traits | 7 | |
Classes | 140 | |
▷ Abstract classes | 7 | 5.00% |
▷ Concrete classes | 133 | 95.00% |
▷ Final classes | 0 | 0.00% |
Methods | 657 | |
▷ Static methods | 133 | 20.24% |
▷ Public methods | 608 | 92.54% |
▷ Protected methods | 17 | 2.59% |
▷ Private methods | 32 | 4.87% |
Functions | 8 | |
▷ Named functions | 2 | 25.00% |
▷ Anonymous functions | 6 | 75.00% |
Constants | 231 | |
▷ Global constants | 4 | 1.73% |
▷ Class constants | 227 | 98.27% |
▷ Public constants | 227 | 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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendors/stripe-php-6.7.4/tests/data/test.png | 0.09KB | 0.09KB | 0.00% |