Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.23MB] [CPU: ▼313.32ms] Passed 4 tests
This is a short check of server-side resources used by PayPal Plus for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.81 ▲0.29 | 60.38 ▲8.34 |
Dashboard /wp-admin | 3.64 ▲0.23 | 35.00 ▼1.70 |
Posts /wp-admin/edit.php | 3.87 ▲0.23 | 41.18 ▲4.48 |
Add New Post /wp-admin/post-new.php | 7.17 ▲0.20 | 97.19 ▼1,254.59 |
Media Library /wp-admin/upload.php | 3.58 ▲0.29 | 24.33 ▼1.47 |
Server storage [IO: ▲1.38MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 379 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for PayPal Plus for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,801 ▲59 | 15.70 ▲0.04 | 5.76 ▼0.41 | 2.42 ▲0.36 |
Dashboard /wp-admin | 2,898 ▲37 | 6.08 ▼0.10 | 125.69 ▼14.92 | 167.85 ▲4.53 |
Posts /wp-admin/edit.php | 2,695 ▲7 | 3.24 ▲0.01 | 64.30 ▼0.21 | 156.19 ▼74.95 |
Add New Post /wp-admin/post-new.php | 1,777 ▲79 | 21.64 ▼0.02 | 453.28 ▲25.87 | 187.41 ▼11.56 |
Media Library /wp-admin/upload.php | 1,704 ▲12 | 5.49 ▼0.04 | 177.98 ▲28.33 | 198.75 ▼46.41 |
Uninstaller [IO: ▲1.38MB] [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 has failed uninstalling correctly, leaving 379 files (1.38MB) in the plugin directory
- (new file) lib/PayPal/Api/AgreementTransactions.php
- (new file) lib/PayPal/Api/Amount.php
- (new file) LICENSE
- (new file) lib/PayPal/Api/Agreement.php
- (new file) lib/PayPal/Api/AgreementTransaction.php
- (new file) lib/PayPal/Api/AgreementStateDescriptor.php
- (new file) lib/PayPal/Api/Authorization.php
- (new file) lib/PayPal/Api/AgreementDetails.php
- (new file) lib/PayPal/Api/Address.php
- (new file) lib/PayPal/Api/AlternatePayment.php
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 219× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Inpsyde\\Lib\\PayPal\\Common\\PayPalModel' not found in wp-content/plugins/woo-paypalplus/lib/PayPal/Api/Tax.php:21
- > PHP Fatal error
Uncaught Error: Interface 'WCPayPalPlus\\Service\\ServiceProvider' not found in wp-content/plugins/woo-paypalplus/src/Request/ServiceProvider.php:17
- > PHP Fatal error
Uncaught Error: Class 'Inpsyde\\Lib\\PayPal\\Common\\PayPalModel' not found in wp-content/plugins/woo-paypalplus/lib/PayPal/Api/PayoutBatchHeader.php:24
- > PHP Fatal error
Uncaught Error: Class 'Inpsyde\\Lib\\PayPal\\Common\\PayPalModel' not found in wp-content/plugins/woo-paypalplus/lib/PayPal/Api/Error.php:21
- > PHP Fatal error
Uncaught Error: Interface 'WCPayPalPlus\\Service\\ServiceProvider' not found in wp-content/plugins/woo-paypalplus/src/Utils/ServiceProvider.php:16
- > PHP Fatal error
Uncaught Error: Class 'Inpsyde\\Lib\\PayPal\\Common\\PayPalModel' not found in wp-content/plugins/woo-paypalplus/lib/PayPal/Api/BankAccountsList.php:18
- > PHP Fatal error
Uncaught Error: Class 'Inpsyde\\Lib\\PayPal\\Common\\PayPalResourceModel' not found in wp-content/plugins/woo-paypalplus/lib/PayPal/Api/VerifyWebhookSignature.php:26
- > PHP Fatal error
Uncaught Error: Interface 'Inpsyde\\Lib\\PayPal\\Log\\PayPalLogFactory' not found in wp-content/plugins/woo-paypalplus/src/Log/PayPalSdkLogFactory.php:16
- > PHP Fatal error
Uncaught Error: Class 'Inpsyde\\Lib\\PayPal\\Common\\PayPalModel' not found in wp-content/plugins/woo-paypalplus/lib/PayPal/Api/OpenIdError.php:15
- > PHP Fatal error
Trait 'WCPayPalPlus\\Utils\\PriceFormatterTrait' not found in wp-content/plugins/woo-paypalplus/src/Refund/RefundData.php on line 23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: woocommerce, zahlungsarten, paypal plus, paypal, rechnung...
woo-paypalplus/paypalplus-woocommerce.php 77% from 13 tests
The entry point to "PayPal Plus for WooCommerce" version 2.2.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Domain Path: The domain path folder was not found ("/languages/")
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.4" instead of "3.6.4")
- Main file name: The principal plugin file should be the same as the plugin slug ("woo-paypalplus.php" instead of "paypalplus-woocommerce.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected23,158 lines of code in 374 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 363 | 4,786 | 20,700 | 23,081 |
JSON | 1 | 0 | 0 | 54 |
Markdown | 1 | 5 | 0 | 14 |
JavaScript | 7 | 0 | 0 | 7 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 3.48 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 1.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 48 | |
Interfaces | 22 | |
Traits | 13 | |
Classes | 319 | |
▷ Abstract classes | 3 | 0.94% |
▷ Concrete classes | 316 | 99.06% |
▷ Final classes | 14 | 4.43% |
Methods | 2,724 | |
▷ Static methods | 97 | 3.56% |
▷ Public methods | 2,559 | 93.94% |
▷ Protected methods | 34 | 1.25% |
▷ Private methods | 131 | 4.81% |
Functions | 116 | |
▷ Named functions | 8 | 6.90% |
▷ Anonymous functions | 108 | 93.10% |
Constants | 192 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 192 | 100.00% |
▷ Public constants | 192 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin