Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼1.89MB] [CPU: ▼52.36ms] Passed 4 tests
This is a short check of server-side resources used by CTCL Stripe
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.37 | 5.38 ▼33.83 |
Dashboard /wp-admin | 2.11 ▼1.19 | 5.52 ▼41.86 |
Posts /wp-admin/edit.php | 2.11 ▼1.24 | 6.21 ▼39.09 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.77 | 5.84 ▼94.67 |
Media Library /wp-admin/upload.php | 2.11 ▼1.12 | 5.74 ▼26.16 |
Server storage [IO: ▲1.33MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 294 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
CTCL Stripe: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,932 ▲197 | 13.64 ▼1.11 | 6.05 ▲4.29 | 43.36 ▼3.96 |
Dashboard /wp-admin | 2,218 ▲29 | 5.83 ▲0.87 | 96.78 ▼15.39 | 39.53 ▲0.44 |
Posts /wp-admin/edit.php | 2,108 ▲19 | 2.05 ▲0.00 | 40.27 ▲7.10 | 37.84 ▲1.23 |
Add New Post /wp-admin/post-new.php | 1,551 ▲32 | 18.58 ▼4.74 | 660.15 ▲2.30 | 59.28 ▲6.48 |
Media Library /wp-admin/upload.php | 1,411 ▲20 | 4.22 ▲0.02 | 105.80 ▲8.45 | 47.44 ▲7.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > 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 thickbox 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
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% 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)
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
- 250× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/ctcl-stripe/stripe-php/lib/ShippingRate.php:24
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/ctcl-stripe/stripe-php/lib/Treasury/ReceivedDebit.php:27
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/ctcl-stripe/stripe-php/lib/Service/TransferService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/ctcl-stripe/stripe-php/lib/Terminal/ConnectionToken.php:16
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/ctcl-stripe/stripe-php/lib/Service/InvoiceService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/ctcl-stripe/stripe-php/lib/FinancialConnections/Account.php:28
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/ctcl-stripe/stripe-php/lib/Plan.php:38
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Exception\\InvalidRequestException' not found in wp-content/plugins/ctcl-stripe/stripe-php/lib/Exception/RateLimitException.php:10
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/ctcl-stripe/stripe-php/lib/Charge.php:62
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/ctcl-stripe/stripe-php/lib/SetupAttempt.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
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
Please fix the following attributes:
- Screenshots: Add an image for screenshot #1 (Admin Panel)
ctcl-stripe/ctcl-stripe.php 92% from 13 tests
"CTCL Stripe" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Git Repository: Please remove the Git repository from this plugin
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
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/ctcl-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 | 282 | 2,350 | 11,697 | 9,143 |
Markdown | 2 | 807 | 0 | 1,615 |
JavaScript | 1 | 12 | 11 | 52 |
JSON | 1 | 0 | 0 | 48 |
CSS | 1 | 1 | 0 | 5 |
PHP code Passed 2 tests
An short overview of 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.12 |
Average class complexity | 2.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 73.00 |
Average method complexity | 1.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 36 | |
Interfaces | 9 | |
Traits | 9 | |
Classes | 264 | |
▷ Abstract classes | 10 | 3.79% |
▷ Concrete classes | 254 | 96.21% |
▷ Final classes | 0 | 0.00% |
Methods | 882 | |
▷ Static methods | 181 | 20.52% |
▷ Public methods | 799 | 90.59% |
▷ Protected methods | 41 | 4.65% |
▷ Private methods | 42 | 4.76% |
Functions | 15 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 15 | 100.00% |
Constants | 1,234 | |
▷ Global constants | 2 | 0.16% |
▷ Class constants | 1,232 | 99.84% |
▷ Public constants | 1,232 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.08MB with 0.06MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 83.11KB | 26.02KB | ▼ 68.69% |