Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.88MB] [CPU: ▼1.43ms] Passed 4 tests
This is a short check of server-side resources used by Get Stripe Customer Portal Light
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.38 ▲0.92 | 39.00 ▼8.84 |
Dashboard /wp-admin | 4.22 ▲0.91 | 49.82 ▲2.44 |
Posts /wp-admin/edit.php | 4.27 ▲0.91 | 47.28 ▲1.33 |
Add New Post /wp-admin/post-new.php | 6.73 ▲0.85 | 96.33 ▼0.66 |
Media Library /wp-admin/upload.php | 4.08 ▲0.85 | 37.89 ▲2.44 |
Stripe Portal Settings /wp-admin/options-general.php?page=gscp_lite_main_settings | 4.04 | 34.89 |
Server storage [IO: ▲1.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 239 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Get Stripe Customer Portal Light
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,845 ▲99 | 13.57 ▼1.02 | 2.29 ▲0.43 | 44.99 ▲2.98 |
Dashboard /wp-admin | 2,212 ▲24 | 4.84 ▼0.06 | 114.16 ▲13.08 | 42.84 ▼0.86 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 1.99 ▼0.04 | 39.44 ▲1.17 | 34.69 ▲2.17 |
Add New Post /wp-admin/post-new.php | 1,542 ▼0 | 23.19 ▲4.84 | 628.40 ▲21.17 | 51.33 ▼1.12 |
Media Library /wp-admin/upload.php | 1,394 ▲3 | 4.22 ▲0.01 | 104.92 ▲4.35 | 43.67 ▲0.30 |
Stripe Portal Settings /wp-admin/options-general.php?page=gscp_lite_main_settings | 938 | 2.05 | 22.80 | 30.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 without warnings or errors
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'plugin_uninstall' not found or invalid function name
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Please take a closer look at the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/get-stripe-customer-portal-lite/modules/stripe_library/build.php
- > /wp-content/plugins/get-stripe-customer-portal-lite/modules/stripe_library/update_certs.php
- 188× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/get-stripe-customer-portal-lite/modules/stripe_library/lib/Service/Sigma/ScheduledQueryRunService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/get-stripe-customer-portal-lite/modules/stripe_library/lib/Service/Issuing/CardService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/get-stripe-customer-portal-lite/modules/stripe_library/lib/CreditNoteLineItem.php:23
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/get-stripe-customer-portal-lite/modules/stripe_library/lib/Person.php:40
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Exception\\OAuth\\OAuthErrorException' not found in wp-content/plugins/get-stripe-customer-portal-lite/modules/stripe_library/lib/Exception/OAuth/InvalidRequestException.php:9
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/get-stripe-customer-portal-lite/modules/stripe_library/lib/SetupAttempt.php:27
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/get-stripe-customer-portal-lite/modules/stripe_library/lib/Service/Terminal/ConnectionTokenService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/get-stripe-customer-portal-lite/modules/stripe_library/lib/Reporting/ReportType.php:28
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/get-stripe-customer-portal-lite/modules/stripe_library/lib/Plan.php:48
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/get-stripe-customer-portal-lite/modules/stripe_library/lib/Service/Checkout/SessionService.php:7
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: stripe portal, stripe
get-stripe-customer-portal-lite/get-stripe-customer-portal-lite.php 92% from 13 tests
The main PHP file in "Get Stripe Customer Portal Light" ver. 1.1.4 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Requires at least: Required version must be the same as the one declared in readme.txt ("5.0" instead of "4.7")
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
Please make sure to remedy the following
- 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/get-stripe-customer-portal-lite/modules/stripe_library/data/ca-certificates.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 218 | 1,864 | 8,816 | 7,514 |
Markdown | 3 | 652 | 0 | 986 |
CSS | 2 | 16 | 0 | 92 |
JSON | 1 | 0 | 0 | 48 |
JavaScript | 2 | 1 | 2 | 43 |
XML | 1 | 0 | 0 | 31 |
make | 1 | 9 | 0 | 27 |
YAML | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 3.13 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 67.00 |
Average method complexity | 1.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 21 | |
Interfaces | 6 | |
Traits | 7 | |
Classes | 201 | |
▷ Abstract classes | 10 | 4.98% |
▷ Concrete classes | 191 | 95.02% |
▷ Final classes | 0 | 0.00% |
Methods | 681 | |
▷ Static methods | 155 | 22.76% |
▷ Public methods | 616 | 90.46% |
▷ Protected methods | 28 | 4.11% |
▷ Private methods | 37 | 5.43% |
Functions | 13 | |
▷ Named functions | 5 | 38.46% |
▷ Anonymous functions | 8 | 61.54% |
Constants | 701 | |
▷ Global constants | 2 | 0.29% |
▷ Class constants | 699 | 99.71% |
▷ Public constants | 699 | 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
There were not PNG files found in your plugin