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.05MB] [CPU: ▼14.09ms] Passed 4 tests
An overview of server-side resources used by GF Stripe Extensions
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.11 ▲0.65 | 45.57 ▲2.39 |
Dashboard /wp-admin | 3.95 ▲0.61 | 50.75 ▼15.81 |
Posts /wp-admin/edit.php | 4.01 ▲0.65 | 53.15 ▲6.02 |
Add New Post /wp-admin/post-new.php | 3.77 ▼2.11 | 42.64 ▼45.90 |
Media Library /wp-admin/upload.php | 3.88 ▲0.65 | 40.15 ▲2.97 |
Stripe Extensions /wp-admin/options-general.php?page=stripe-extensions | 3.91 | 50.78 |
Server storage [IO: ▲0.77MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 155 new files
Database: no new tables, 9 new options
New WordPress options |
---|
stripe-extensions-analytics-key |
gfse_version |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
stripe-extensions-analytics-year |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for GF Stripe Extensions
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,879 ▲92 | 14.93 ▲0.60 | 25.03 ▲22.76 | 44.82 ▲0.44 |
Dashboard /wp-admin | 2,199 ▲22 | 5.63 ▼0.04 | 92.52 ▼6.26 | 42.52 ▼2.14 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.94 ▲0.01 | 41.60 ▲3.89 | 36.12 ▲4.13 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.17 ▼0.47 | 591.28 ▼101.06 | 56.82 ▲2.06 |
Media Library /wp-admin/upload.php | 1,398 ▼2 | 4.17 ▼0.08 | 97.42 ▼17.88 | 41.87 ▼7.38 |
Stripe Extensions /wp-admin/options-general.php?page=stripe-extensions | 2,128 | 6.51 | 139.28 | 67.49 |
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
- Zombie WordPress options were found after uninstall: 9 options
- widget_recent-posts
- gfse_version
- theysaidso_admin_options
- db_upgraded
- stripe-extensions-analytics-year
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- stripe-extensions-analytics-key
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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/gf-stripe-extensions/inc/stripe/stripe-php/build.php
- > /wp-content/plugins/gf-stripe-extensions/inc/stripe/stripe-php/update_certs.php
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gf-stripe-extensions/gf-stripe-create-entries.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gf-stripe-extensions/gf-stripe-apple-pay.php:4
- > PHP Fatal error
Uncaught Error: Class 'GFStripeExtensions' not found in wp-content/plugins/gf-stripe-extensions/gf-stripe-payment-recovery.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gf-stripe-extensions/gf-stripe-limit-payments.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gf-stripe-extensions/gf-stripe-limit-payments.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gf-stripe-extensions/gf-stripe-analytics.php:142
- > 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 on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
gf-stripe-extensions/gf-stripe-extensions.php Passed 13 tests
The main PHP script in "GF Stripe Extensions" version 2.6.2 is automatically included on every request by WordPress
109 characters long description:
Add Stripe functions to Wordpress (Apple Pay) including limit payments and payment recovery to Gravity Forms.
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
It is important to fix the following items
- Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/gf-stripe-extensions/inc/stripe/stripe-php/data/ca-certificates.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 143 | 1,243 | 3,891 | 10,397 |
Markdown | 2 | 288 | 0 | 650 |
JavaScript | 2 | 3 | 7 | 130 |
JSON | 2 | 0 | 0 | 97 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 10.37 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 305.00 |
Average method complexity | 3.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 78.00 |
Code structure | ||
---|---|---|
Namespaces | 13 | |
Interfaces | 2 | |
Traits | 7 | |
Classes | 130 | |
▷ Abstract classes | 7 | 5.38% |
▷ Concrete classes | 123 | 94.62% |
▷ Final classes | 0 | 0.00% |
Methods | 614 | |
▷ Static methods | 378 | 61.56% |
▷ Public methods | 571 | 93.00% |
▷ Protected methods | 13 | 2.12% |
▷ Private methods | 30 | 4.89% |
Functions | 7 | |
▷ Named functions | 2 | 28.57% |
▷ Anonymous functions | 5 | 71.43% |
Constants | 490 | |
▷ Global constants | 3 | 0.61% |
▷ Class constants | 487 | 99.39% |
▷ Public constants | 487 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/6by4.png | 0.16KB | 0.09KB | ▼ 42.86% |