Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.37MB] [CPU: ▼23.72ms] Passed 4 tests
An overview of server-side resources used by WPAdmin Stripe Payment & Donation
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.72 ▲2.26 | 38.82 ▲0.77 |
Dashboard /wp-admin | 5.33 ▲1.98 | 39.16 ▼23.82 |
Posts /wp-admin/edit.php | 5.33 ▲1.97 | 38.14 ▼7.08 |
Add New Post /wp-admin/post-new.php | 5.33 ▼0.56 | 34.13 ▼64.75 |
Media Library /wp-admin/upload.php | 5.33 ▲2.10 | 38.88 ▲5.56 |
Shortcode Generator /wp-admin/admin.php?page=wpadmin-stripe-shortcode | 5.33 | 33.28 |
Report /wp-admin/admin.php?page=wpadmin-stripe-report | 5.33 | 35.18 |
WPAdmin Stripe /wp-admin/admin.php?page=wpa-stripe | 5.33 | 35.81 |
Server storage [IO: ▲1.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 240 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_wpastripetbl |
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
WPAdmin Stripe Payment & Donation: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,988 ▲242 | 16.95 ▲2.64 | 157.09 ▲155.32 | 40.94 ▲0.41 |
Dashboard /wp-admin | 2,241 ▲53 | 4.93 ▲0.06 | 114.50 ▲0.77 | 43.05 ▼4.70 |
Posts /wp-admin/edit.php | 2,124 ▲35 | 2.03 ▼0.01 | 36.73 ▼0.28 | 31.91 ▼2.72 |
Add New Post /wp-admin/post-new.php | 1,543 ▲29 | 23.36 ▲5.72 | 663.58 ▲6.51 | 65.01 ▲4.06 |
Media Library /wp-admin/upload.php | 1,423 ▲35 | 4.22 ▲0.02 | 99.85 ▼0.04 | 42.06 ▼3.02 |
Shortcode Generator /wp-admin/admin.php?page=wpadmin-stripe-shortcode | 1,695 | 1.72 | 28.13 | 30.32 |
Report /wp-admin/admin.php?page=wpadmin-stripe-report | 923 | 1.71 | 25.14 | 26.28 |
WPAdmin Stripe /wp-admin/admin.php?page=wpa-stripe | 907 | 2.04 | 24.78 | 34.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Uninstall procedure had uncaught errors
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_wpastripetbl
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- 27 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpa-stripe
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- > GET request to /wp-admin/admin.php?page=wpadmin-stripe-shortcode
- > Notice in wp-content/plugins/wpadmin-stripe-payment-gateway/admin/wpadmin-stripe-shortcode.php+46
Undefined index: id
- > GET request to /wp-admin/admin.php?page=wpadmin-stripe-shortcode
- > Notice in wp-content/plugins/wpadmin-stripe-payment-gateway/admin/wpadmin-stripe-shortcode.php+51
Undefined index: del
- 20 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpa-stripe
- > Notice in wp-content/plugins/wpadmin-stripe-payment-gateway/admin/wpa-stripe-admin.php+86
Undefined variable: savedData
- 20 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpa-stripe
- > Notice in wp-content/plugins/wpadmin-stripe-payment-gateway/admin/wpa-stripe-admin.php+86
Trying to access array offset on value of type null
- > GET request to /wp-admin/admin.php?page=wpadmin-stripe-report
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
SRP 50% 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
Please fix the following items
- 202× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/wpadmin-stripe-payment-gateway/lib/PaymentIntent.php:56
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractServiceFactory' not found in wp-content/plugins/wpadmin-stripe-payment-gateway/lib/Service/Radar/RadarServiceFactory.php:12
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/wpadmin-stripe-payment-gateway/lib/Service/FileService.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/wpadmin-stripe-payment-gateway/lib/TransferReversal.php:34
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/wpadmin-stripe-payment-gateway/lib/Service/Issuing/AuthorizationService.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/wpadmin-stripe-payment-gateway/lib/Service/Radar/ValueListItemService.php:5
- > PHP Fatal error
Uncaught Error: Class 'wpastripe' not found in wp-content/plugins/wpadmin-stripe-payment-gateway/admin/class-wpadmin-stripe-admin.php:2
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Error\\Base' not found in wp-content/plugins/wpadmin-stripe-payment-gateway/lib/Error/Idempotency.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/wpadmin-stripe-payment-gateway/lib/Service/CustomerService.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/wpadmin-stripe-payment-gateway/lib/Service/CreditNoteService.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)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
Attributes that need to be fixed:
- Screenshots: Please a description for screenshot #4 in wpadmin-stripe-payment-gateway/assets to your readme.txt
wpadmin-stripe-payment-gateway/wpadmin-stripe-payment-gateway.php 92% from 13 tests
Analyzing the main PHP file in "WPAdmin Stripe Payment & Donation" version 2.6.1
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 144 characters long)
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
These items require your attention
- Do not include executable or dangerous files in your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/wpadmin-stripe-payment-gateway/data/ca-certificates.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 232 | 1,717 | 8,468 | 7,962 |
CSS | 1 | 10 | 5 | 546 |
JavaScript | 1 | 22 | 5 | 146 |
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.18 |
Average class complexity | 2.92 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 60.00 |
Average method complexity | 1.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 23 | |
Interfaces | 6 | |
Traits | 7 | |
Classes | 214 | |
▷ Abstract classes | 11 | 5.14% |
▷ Concrete classes | 203 | 94.86% |
▷ Final classes | 0 | 0.00% |
Methods | 695 | |
▷ Static methods | 156 | 22.45% |
▷ Public methods | 636 | 91.51% |
▷ Protected methods | 27 | 3.88% |
▷ Private methods | 32 | 4.60% |
Functions | 5 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 5 | 100.00% |
Constants | 669 | |
▷ Global constants | 7 | 1.05% |
▷ Class constants | 662 | 98.95% |
▷ Public constants | 662 | 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
PNG images were not found in this plugin