Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.11MB] [CPU: ▼2.64ms] Passed 4 tests
A check of server-side resources used by Music Store - Stripe Add On
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.12 | 45.82 ▲5.66 |
Dashboard /wp-admin | 3.42 ▲0.11 | 48.71 ▼1.30 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 49.34 ▼3.64 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 86.39 ▼10.84 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 42.60 ▲5.21 |
Server storage [IO: ▲1.30MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 297 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Music Store - Stripe Add On
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.16 ▼0.22 | 1.76 ▼0.25 | 42.35 ▼7.99 |
Dashboard /wp-admin | 2,195 ▲21 | 5.61 ▼0.08 | 88.98 ▼12.58 | 40.43 ▼3.36 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.03 ▲0.04 | 36.46 ▼10.66 | 34.38 ▼5.00 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.10 ▲0.21 | 656.93 ▲13.22 | 62.93 ▲11.67 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.18 ▲0.03 | 100.68 ▼8.59 | 48.15 ▲2.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
- 254× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/music-store-stripe-add-on/stripe-php.addon/lib/ShippingRate.php:24
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/music-store-stripe-add-on/stripe-php.addon/lib/Service/TopupService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/music-store-stripe-add-on/stripe-php.addon/lib/Service/ChargeService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/music-store-stripe-add-on/stripe-php.addon/lib/Service/BalanceTransactionService.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Stripe\\Exception\\ExceptionInterface' not found in wp-content/plugins/music-store-stripe-add-on/stripe-php.addon/lib/Exception/SignatureVerificationException.php:9
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Exception\\OAuth\\OAuthErrorException' not found in wp-content/plugins/music-store-stripe-add-on/stripe-php.addon/lib/Exception/OAuth/InvalidRequestException.php:9
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/music-store-stripe-add-on/stripe-php.addon/lib/Terminal/Reader.php:25
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/music-store-stripe-add-on/stripe-php.addon/lib/BillingPortal/Configuration.php:24
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/music-store-stripe-add-on/stripe-php.addon/lib/Service/TestHelpers/Issuing/CardService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/music-store-stripe-add-on/stripe-php.addon/lib/CustomerCashBalanceTransaction.php:28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% 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
5 plugin tags: payment gateway, music store, credit card, debit card, stripe
music-store-stripe-add-on/stripe.addon.php 85% from 13 tests
"Music Store - Stripe Add On" version 1.2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Name the main plugin file the same as the plugin slug ("music-store-stripe-add-on.php" instead of "stripe.addon.php")
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
Please fix the following items
- For security reasons, never distribute binary or executable files with your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/music-store-stripe-add-on/stripe-php.addon/data/ca-certificates.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 286 | 2,388 | 11,804 | 9,920 |
Markdown | 2 | 809 | 0 | 1,633 |
PO File | 1 | 23 | 23 | 65 |
JSON | 1 | 0 | 0 | 48 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 2.94 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 131.00 |
Average method complexity | 1.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 36 | |
Interfaces | 9 | |
Traits | 9 | |
Classes | 268 | |
▷ Abstract classes | 10 | 3.73% |
▷ Concrete classes | 258 | 96.27% |
▷ Final classes | 0 | 0.00% |
Methods | 895 | |
▷ Static methods | 181 | 20.22% |
▷ Public methods | 807 | 90.17% |
▷ Protected methods | 41 | 4.58% |
▷ Private methods | 47 | 5.25% |
Functions | 13 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 13 | 100.00% |
Constants | 1,464 | |
▷ Global constants | 2 | 0.14% |
▷ Class constants | 1,462 | 99.86% |
▷ Public constants | 1,462 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin