Benchmarks
Plugin footprint 83% 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: ▲0.07MB] [CPU: ▼1.91ms] Passed 4 tests
Server-side resources used by Braintree for WooCommerce Payment Gateway
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 36.89 ▼0.82 |
Dashboard /wp-admin | 3.37 ▲0.07 | 46.76 ▼3.13 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 48.78 ▼0.53 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 92.89 ▼3.15 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 34.98 ▲3.48 |
Server storage [IO: ▲2.84MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 459 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
woocommerce_braintree_paypal_settings |
Browser metrics Passed 4 tests
An overview of browser requirements for Braintree for WooCommerce Payment Gateway
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,798 ▲36 | 14.27 ▼0.44 | 1.80 ▲0.25 | 37.34 ▼1.26 |
Dashboard /wp-admin | 2,206 ▲31 | 5.63 ▼0.08 | 95.04 ▼16.00 | 45.25 ▼1.35 |
Posts /wp-admin/edit.php | 2,109 ▲9 | 2.01 ▲0.05 | 40.89 ▼0.29 | 36.81 ▲3.47 |
Add New Post /wp-admin/post-new.php | 1,534 ▼2 | 23.10 ▼0.28 | 643.07 ▼18.21 | 43.88 ▼7.34 |
Media Library /wp-admin/upload.php | 1,408 ▲11 | 4.23 ▲0.00 | 95.83 ▼3.53 | 40.93 ▲1.25 |
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
- This plugin did not uninstall successfully, leaving 7 options in the database
- woocommerce_braintree_paypal_settings
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 125× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Braintree\\Modification' not found in wp-content/plugins/woocommerce-gateway-paypal-powered-by-braintree/vendor/braintree/braintree_php/lib/Braintree/Discount.php:12
- > PHP Fatal error
Uncaught Error: Class 'Braintree\\Base' not found in wp-content/plugins/woocommerce-gateway-paypal-powered-by-braintree/vendor/braintree/braintree_php/lib/Braintree/DocumentUpload.php:18
- > PHP Fatal error
Uncaught Error: Class 'Braintree\\Exception' not found in wp-content/plugins/woocommerce-gateway-paypal-powered-by-braintree/vendor/braintree/braintree_php/lib/Braintree/Exception/Timeout.php:10
- > PHP Fatal error
Uncaught Error: Class 'Braintree\\Base' not found in wp-content/plugins/woocommerce-gateway-paypal-powered-by-braintree/vendor/braintree/braintree_php/lib/Braintree/Modification.php:11
- > PHP Fatal error
Uncaught Error: Class 'Braintree\\Instance' not found in wp-content/plugins/woocommerce-gateway-paypal-powered-by-braintree/vendor/braintree/braintree_php/lib/Braintree/Transaction/SubscriptionDetails.php:13
- > PHP Fatal error
Uncaught Error: Class 'Braintree\\Exception' not found in wp-content/plugins/woocommerce-gateway-paypal-powered-by-braintree/vendor/braintree/braintree_php/lib/Braintree/Exception/Configuration.php:12
- > PHP Fatal error
Uncaught Error: Class 'Braintree\\Base' not found in wp-content/plugins/woocommerce-gateway-paypal-powered-by-braintree/vendor/braintree/braintree_php/lib/Braintree/BinData.php:10
- > PHP Fatal error
Uncaught Error: Class 'Braintree\\Base' not found in wp-content/plugins/woocommerce-gateway-paypal-powered-by-braintree/vendor/braintree/braintree_php/lib/Braintree/SamsungPayCard.php:11
- > PHP Fatal error
Uncaught Error: Class 'Braintree\\Instance' not found in wp-content/plugins/woocommerce-gateway-paypal-powered-by-braintree/vendor/braintree/braintree_php/lib/Braintree/Transaction/ApplePayCardDetails.php:16
- > PHP Fatal error
Uncaught Error: Class 'Braintree\\Base' not found in wp-content/plugins/woocommerce-gateway-paypal-powered-by-braintree/vendor/braintree/braintree_php/lib/Braintree/Address.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Tags: You are using too many tags: 15 tag instead of maximum 10
woocommerce-gateway-paypal-powered-by-braintree/woocommerce-gateway-paypal-powered-by-braintree.php 92% from 13 tests
The principal PHP file in "Braintree for WooCommerce Payment Gateway" v. 3.0.9 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 216 characters long)
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Almost there! Just fix the following issues
- Do not include executable or dangerous files in your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/woocommerce-gateway-paypal-powered-by-braintree/vendor/braintree/braintree_php/lib/ssl/api_braintreegateway_com.ca.crt
- ☣ wp-content/plugins/woocommerce-gateway-paypal-powered-by-braintree/lib/ssl/api_braintreegateway_com.ca.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 335 | 13,287 | 28,913 | 29,869 |
JavaScript | 44 | 323 | 647 | 3,006 |
PO File | 1 | 436 | 787 | 1,110 |
Markdown | 2 | 225 | 0 | 726 |
CSS | 8 | 19 | 5 | 108 |
JSON | 1 | 0 | 0 | 97 |
XML | 1 | 9 | 14 | 47 |
SVG | 21 | 0 | 0 | 21 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 12.11 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 274.00 |
Average method complexity | 2.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 32 | |
Interfaces | 14 | |
Traits | 1 | |
Classes | 304 | |
▷ Abstract classes | 34 | 11.18% |
▷ Concrete classes | 270 | 88.82% |
▷ Final classes | 2 | 0.74% |
Methods | 2,901 | |
▷ Static methods | 575 | 19.82% |
▷ Public methods | 2,137 | 73.66% |
▷ Protected methods | 610 | 21.03% |
▷ Private methods | 154 | 5.31% |
Functions | 21 | |
▷ Named functions | 1 | 4.76% |
▷ Anonymous functions | 20 | 95.24% |
Constants | 957 | |
▷ Global constants | 2 | 0.21% |
▷ Class constants | 955 | 99.79% |
▷ Public constants | 955 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
25 PNG files occupy 0.06MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/button/connect-braintree@2x.png | 8.85KB | 3.63KB | ▼ 58.93% |
vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/assets/images/card-paypal.png | 0.76KB | 0.79KB | 0.00% |
vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/assets/images/card-visa.png | 0.82KB | 0.85KB | 0.00% |
vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/assets/images/card-visa-debit.png | 0.80KB | 0.86KB | 0.00% |
vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/assets/images/card-cc-invalid.png | 3.50KB | 1.60KB | ▼ 54.40% |