Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼1.88MB] [CPU: ▼57.44ms] Passed 4 tests
Analyzing server-side resources used by WP Fast Payments for Stripe
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.40 | 4.08 ▼38.05 |
Dashboard /wp-admin | 2.15 ▼1.20 | 7.78 ▼56.66 |
Posts /wp-admin/edit.php | 2.15 ▼1.21 | 6.74 ▼43.72 |
Add New Post /wp-admin/post-new.php | 2.15 ▼3.74 | 7.04 ▼91.31 |
Media Library /wp-admin/upload.php | 2.15 ▼1.08 | 7.92 ▼27.32 |
Shortcodes /wp-admin/admin.php?page=wpfastpaymentshelppage | 2.15 | 6.21 |
Fast Payments /wp-admin/admin.php?page=wpfastpaymentsadminpage | 2.15 | 7.44 |
Server storage [IO: ▲0.47MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 115 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by WP Fast Payments for Stripe
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲92 | 13.27 ▼1.03 | 1.69 ▼0.01 | 40.83 ▼1.72 |
Dashboard /wp-admin | 2,236 ▲48 | 5.83 ▼0.05 | 106.54 ▼12.66 | 74.20 ▲27.67 |
Posts /wp-admin/edit.php | 2,125 ▲36 | 2.02 ▲0.01 | 36.22 ▼1.03 | 32.75 ▲0.29 |
Add New Post /wp-admin/post-new.php | 1,545 ▲12 | 22.91 ▼0.20 | 732.03 ▲77.94 | 61.03 ▲5.02 |
Media Library /wp-admin/upload.php | 1,412 ▲30 | 4.18 ▲0.02 | 105.68 ▲8.23 | 67.23 ▲27.66 |
Shortcodes /wp-admin/admin.php?page=wpfastpaymentshelppage | 822 | 2.01 | 23.82 | 25.36 |
Fast Payments /wp-admin/admin.php?page=wpfastpaymentsadminpage | 942 | 2.03 | 24.15 | 24.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the fast-payments-for-stripe-default-css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpfastpaymentsadminpage
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the fast-payments-for-stripe-default-css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpfastpaymentsadminpage
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the fast-payments-for-stripe-default-js handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
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
Almost there! Just fix the following items
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/fast-payments-for-stripe/includes/fast-payments-for-stripe-shortcode-manager.php
- > /wp-content/plugins/fast-payments-for-stripe/views/fast-payments-for-stripe-help.php
- > /wp-content/plugins/fast-payments-for-stripe/includes/stripe-php-3.12.1/build.php
- 82× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/fast-payments-for-stripe/includes/stripe-php-3.12.1/lib/Plan.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\TestCase' not found in wp-content/plugins/fast-payments-for-stripe/includes/stripe-php-3.12.1/tests/CurlClientTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\TestCase' not found in wp-content/plugins/fast-payments-for-stripe/includes/stripe-php-3.12.1/tests/SubscriptionTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/fast-payments-for-stripe/includes/stripe-php-3.12.1/lib/CountrySpec.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\TestCase' not found in wp-content/plugins/fast-payments-for-stripe/includes/stripe-php-3.12.1/tests/ApplicationFeeTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/fast-payments-for-stripe/includes/stripe-php-3.12.1/tests/TestCase.php:9
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/fast-payments-for-stripe/includes/stripe-php-3.12.1/lib/TransferReversal.php:5
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/fast-payments-for-stripe/includes/stripe-php-3.12.1/tests/TestCase.php:9
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\TestCase' not found in wp-content/plugins/fast-payments-for-stripe/includes/stripe-php-3.12.1/tests/DiscountTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ExternalAccount' not found in wp-content/plugins/fast-payments-for-stripe/includes/stripe-php-3.12.1/lib/AlipayAccount.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 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
8 plugin tags: merchant account, checkout, e-commerce, stripe, credit cards...
fast-payments-for-stripe/fast-payments-for-stripe.php Passed 13 tests
Analyzing the main PHP file in "WP Fast Payments for Stripe" version 1.0.0
40 characters long description:
Process credit card payments via stripe.
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 make sure to remedy the following
- Do not include executable or dangerous files in your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/fast-payments-for-stripe/includes/stripe-php-3.12.1/data/ca-certificates.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 101 | 1,004 | 1,229 | 5,179 |
Markdown | 2 | 171 | 0 | 264 |
CSS | 2 | 0 | 0 | 69 |
JSON | 1 | 0 | 0 | 36 |
XML | 2 | 0 | 0 | 30 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 4.01 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 1.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 92 | |
▷ Abstract classes | 5 | 5.43% |
▷ Concrete classes | 87 | 94.57% |
▷ Final classes | 0 | 0.00% |
Methods | 421 | |
▷ Static methods | 120 | 28.50% |
▷ Public methods | 372 | 88.36% |
▷ Protected methods | 21 | 4.99% |
▷ Private methods | 28 | 6.65% |
Functions | 4 | |
▷ Named functions | 1 | 25.00% |
▷ Anonymous functions | 3 | 75.00% |
Constants | 6 | |
▷ Global constants | 2 | 33.33% |
▷ Class constants | 4 | 66.67% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/stripe-php-3.12.1/data/test.png | 0.09KB | 0.09KB | 0.00% |
img/fp_16x16.png | 0.77KB | 0.61KB | ▼ 21.31% |