Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.53ms] Passed 4 tests
Analyzing server-side resources used by PayPal Payment for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.28 ▼6.32 |
Dashboard /wp-admin | 3.33 ▲0.02 | 46.44 ▲1.30 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 45.59 ▼2.75 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 81.93 ▼18.36 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 44.94 ▲11.34 |
Server storage [IO: ▲1.88MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 439 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for PayPal Payment for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,912 ▲177 | 13.92 ▼0.44 | 8.54 ▲6.73 | 42.06 ▲2.97 |
Dashboard /wp-admin | 2,213 ▲25 | 4.88 ▼0.01 | 102.00 ▲0.77 | 43.68 ▼1.06 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.13 ▲0.12 | 36.57 ▼6.19 | 32.48 ▼2.75 |
Add New Post /wp-admin/post-new.php | 1,532 ▼1 | 23.42 ▲0.62 | 635.45 ▼42.61 | 60.26 ▲6.19 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.23 ▼0.01 | 97.00 ▼7.08 | 41.14 ▼4.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
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
Good news, no errors were detected
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
- 246× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Braintree\\Instance' not found in wp-content/plugins/palmodule-paypal-payment-for-woocoomerce/includes/php-library/braintree/lib/Braintree/Descriptor.php:4
- > PHP Fatal error
Uncaught Error: Class 'Braintree\\Base' not found in wp-content/plugins/palmodule-paypal-payment-for-woocoomerce/includes/php-library/braintree/lib/Braintree/AchMandate.php:13
- > PHP Fatal error
Uncaught Error: Class 'PayPal\\Api\\Address' not found in wp-content/plugins/palmodule-paypal-payment-for-woocoomerce/includes/php-library/paypal-rest/lib/PayPal/Api/ShippingAddress.php:14
- > PHP Fatal error
Uncaught Error: Class 'Braintree\\Instance' not found in wp-content/plugins/palmodule-paypal-payment-for-woocoomerce/includes/php-library/braintree/lib/Braintree/Transaction/CustomerDetails.php:22
- > PHP Fatal error
Uncaught Error: Class 'PayPal\\Common\\PayPalModel' not found in wp-content/plugins/palmodule-paypal-payment-for-woocoomerce/includes/php-library/paypal-rest/lib/PayPal/Api/WebhookEventList.php:18
- > PHP Fatal error
Uncaught Error: Class 'Braintree\\Base' not found in wp-content/plugins/palmodule-paypal-payment-for-woocoomerce/includes/php-library/braintree/lib/Braintree/AndroidPayCard.php:33
- > PHP Fatal error
Uncaught Error: Class 'Braintree\\Base' not found in wp-content/plugins/palmodule-paypal-payment-for-woocoomerce/includes/php-library/braintree/lib/Braintree/ConnectedMerchantStatusTransitioned.php:13
- > PHP Fatal error
Uncaught Error: Class 'PayPal\\Api\\Payment' not found in wp-content/plugins/palmodule-paypal-payment-for-woocoomerce/includes/php-library/paypal-rest/lib/PayPal/Api/FuturePayment.php:13
- > PHP Fatal error
Uncaught Error: Class 'Braintree\\Base' not found in wp-content/plugins/palmodule-paypal-payment-for-woocoomerce/includes/php-library/braintree/lib/Braintree/Result/Error.php:36
- > PHP Fatal error
Uncaught Error: Class 'Braintree\\Base' not found in wp-content/plugins/palmodule-paypal-payment-for-woocoomerce/includes/php-library/braintree/lib/Braintree/SettlementBatchSummary.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: paypal, express checkout, braintree, payment, woocommerce...
palmodule-paypal-payment-for-woocoomerce/palmodule-paypal-payment-for-woocoomerce.php 92% from 13 tests
The main file in "PayPal Payment for WooCommerce" v. 1.0.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("1.0.5" instead of "3.8")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
These items require your attention
- For security reasons, never distribute binary or executable files with your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/palmodule-paypal-payment-for-woocoomerce/includes/php-library/braintree/lib/ssl/api_braintreegateway_com.ca.crt
- .bat - Batch File in Windows
- ☣ wp-content/plugins/palmodule-paypal-payment-for-woocoomerce/includes/php-library/paypal-rest/vendor/bin/phpunit.bat
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 386 | 5,227 | 20,811 | 30,369 |
YAML | 20 | 127 | 89 | 3,144 |
JSON | 5 | 0 | 0 | 609 |
JavaScript | 3 | 8 | 27 | 184 |
Markdown | 4 | 41 | 0 | 99 |
CSS | 3 | 1 | 4 | 40 |
XML | 1 | 3 | 0 | 27 |
Bourne Shell | 1 | 3 | 5 | 9 |
DOS Batch | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 6.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 160.00 |
Average method complexity | 1.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 59.00 |
Code structure | ||
---|---|---|
Namespaces | 29 | |
Interfaces | 6 | |
Traits | 2 | |
Classes | 364 | |
▷ Abstract classes | 5 | 1.37% |
▷ Concrete classes | 359 | 98.63% |
▷ Final classes | 0 | 0.00% |
Methods | 3,336 | |
▷ Static methods | 480 | 14.39% |
▷ Public methods | 3,125 | 93.68% |
▷ Protected methods | 54 | 1.62% |
▷ Private methods | 157 | 4.71% |
Functions | 19 | |
▷ Named functions | 16 | 84.21% |
▷ Anonymous functions | 3 | 15.79% |
Constants | 671 | |
▷ Global constants | 6 | 0.89% |
▷ Class constants | 665 | 99.11% |
▷ Public constants | 665 | 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.02MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/cards.png | 19.60KB | 2.61KB | ▼ 86.71% |