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.06MB] [CPU: ▼2.49ms] Passed 4 tests
A check of server-side resources used by Braintree Payment Gateway For WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 41.79 ▼3.40 |
Dashboard /wp-admin | 3.37 ▲0.06 | 53.98 ▼4.22 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 54.79 ▲3.72 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 90.64 ▼0.77 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 36.84 ▼1.57 |
Server storage [IO: ▲0.42MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 145 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Braintree Payment Gateway For WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.42 ▲0.07 | 1.73 ▼0.00 | 44.02 ▼2.72 |
Dashboard /wp-admin | 2,195 ▲24 | 5.62 ▼0.04 | 89.18 ▼12.96 | 36.77 ▼10.75 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.99 ▼0.01 | 39.60 ▲3.82 | 34.17 ▼5.22 |
Add New Post /wp-admin/post-new.php | 1,526 ▼10 | 23.35 ▲4.94 | 654.15 ▼5.14 | 47.30 ▼24.51 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.21 ▲0.00 | 99.74 ▼20.98 | 44.30 ▼3.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
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)
Everything seems fine, however this is by no means 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
- 75× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Braintree\\Exception' not found in wp-content/plugins/webmicro-braintree-woo-addon/lib/Braintree/Exception/NotFound.php:13
- > PHP Fatal error
Uncaught Error: Class 'Braintree\\Instance' not found in wp-content/plugins/webmicro-braintree-woo-addon/lib/Braintree/Dispute/TransactionDetails.php:23
- > PHP Fatal error
Uncaught Error: Class 'Braintree\\Base' not found in wp-content/plugins/webmicro-braintree-woo-addon/lib/Braintree/SettlementBatchSummary.php:4
- > PHP Fatal error
Uncaught Error: Class 'Braintree\\Base' not found in wp-content/plugins/webmicro-braintree-woo-addon/lib/Braintree/UnknownPaymentMethod.php:25
- > PHP Fatal error
Uncaught Error: Class 'Braintree\\Base' not found in wp-content/plugins/webmicro-braintree-woo-addon/lib/Braintree/EuropeBankAccount.php:25
- > PHP Fatal error
Uncaught Error: Class 'Braintree\\Instance' not found in wp-content/plugins/webmicro-braintree-woo-addon/lib/Braintree/Transaction/AmexExpressCheckoutCardDetails.php:33
- > PHP Fatal error
Uncaught Error: Class 'Braintree\\Instance' not found in wp-content/plugins/webmicro-braintree-woo-addon/lib/Braintree/MerchantAccount/AddressDetails.php:6
- > PHP Fatal error
Uncaught Error: Class 'Braintree\\EqualityNode' not found in wp-content/plugins/webmicro-braintree-woo-addon/lib/Braintree/PartialMatchNode.php:4
- > PHP Fatal error
Uncaught Error: Class 'Braintree\\Exception' not found in wp-content/plugins/webmicro-braintree-woo-addon/lib/Braintree/Exception/UpgradeRequired.php:13
- > PHP Fatal error
Uncaught Error: Class 'Braintree\\Base' not found in wp-content/plugins/webmicro-braintree-woo-addon/lib/Braintree/ApplePayCard.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% 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
These attributes need to be fixed:
- Requires at least: Version format is invalid
- Tested up to: Version format is invalid
webmicro-braintree-woo-addon/webmicro-braintree-woo-addon.php Passed 13 tests
The main PHP file in "Braintree Payment Gateway For WooCommerce" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
125 characters long description:
This plugin adds a payment option in WooCommerce for customers to pay with their Credit Cards Via Braintree a Paypal Company.
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
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/webmicro-braintree-woo-addon/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 | 134 | 1,320 | 3,618 | 7,913 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 4.68 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 1.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 132 | |
▷ Abstract classes | 2 | 1.52% |
▷ Concrete classes | 130 | 98.48% |
▷ Final classes | 18 | 13.85% |
Methods | 789 | |
▷ Static methods | 353 | 44.74% |
▷ Public methods | 663 | 84.03% |
▷ Protected methods | 36 | 4.56% |
▷ Private methods | 90 | 11.41% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
Constants | 606 | |
▷ Global constants | 1 | 0.17% |
▷ Class constants | 605 | 99.83% |
▷ Public constants | 605 | 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
9 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/mastercard.png | 1.50KB | 1.46KB | ▼ 2.34% |
images/visa.png | 1.25KB | 1.29KB | 0.00% |
images/maestro.png | 1.61KB | 1.47KB | ▼ 8.80% |
images/discover.png | 1.28KB | 1.30KB | 0.00% |
images/amex.png | 2.19KB | 1.75KB | ▼ 20.33% |