Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.40MB] [CPU: ▲2.93ms] Passed 4 tests
A check of server-side resources used by Payment Plugins for PayPal WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.87 ▲0.41 | 45.65 ▲4.86 |
Dashboard /wp-admin | 3.71 ▲0.40 | 48.14 ▲2.29 |
Posts /wp-admin/edit.php | 3.76 ▲0.40 | 60.33 ▲11.53 |
Add New Post /wp-admin/post-new.php | 6.29 ▲0.40 | 92.92 ▲4.76 |
Media Library /wp-admin/upload.php | 3.63 ▲0.40 | 35.06 ▼0.20 |
Server storage [IO: ▲1.88MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 472 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
wc_ppcp_version |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Payment Plugins for PayPal WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.20 ▼0.15 | 1.81 ▲0.19 | 44.34 ▲2.52 |
Dashboard /wp-admin | 2,192 ▲12 | 5.66 ▲0.02 | 91.41 ▲1.71 | 38.97 ▼0.70 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▲0.08 | 35.56 ▼0.09 | 30.33 ▼1.63 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.52 ▲0.26 | 693.36 ▲65.54 | 66.46 ▲10.34 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.15 ▲0.00 | 99.95 ▲4.31 | 42.67 ▲1.05 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- wc_ppcp_version
- widget_recent-posts
Smoke tests 50% 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 0% 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
Almost there! Just fix the following items
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/pymntpl-paypal-woocommerce/templates/cart/paypal.php
- > /wp-content/plugins/pymntpl-paypal-woocommerce/templates/product/paypal.php
- > /wp-content/plugins/pymntpl-paypal-woocommerce/templates/minicart/payment-methods.php
- 174× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PaymentPlugins\\PayPalSDK\\AbstractObject' not found in wp-content/plugins/pymntpl-paypal-woocommerce/vendor/paymentplugins/paypal-php-sdk/src/Item.php:14
- > PHP Fatal error
Uncaught Error: Interface 'PaymentPlugins\\WooCommerce\\PPCP\\Integrations\\PluginIntegrationType' not found in wp-content/plugins/pymntpl-paypal-woocommerce/packages/woofunnels/src/Upsell/WooFunnelsIntegration.php:15
- > PHP Fatal error
Uncaught Error: Class 'PaymentPlugins\\PayPalSDK\\AbstractObject' not found in wp-content/plugins/pymntpl-paypal-woocommerce/vendor/paymentplugins/paypal-php-sdk/src/Name.php:14
- > PHP Fatal error
Uncaught Error: Class 'PaymentPlugins\\WooCommerce\\PPCP\\Factories\\AbstractFactory' not found in wp-content/plugins/pymntpl-paypal-woocommerce/src/Factories/ShippingOptionsFactory.php:10
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/pymntpl-paypal-woocommerce/packages/blocks/src/Payments/Gateways/PayPalExpressGateway.php:5
- > PHP Notice
Undefined variable: below_add_to_cart in wp-content/plugins/pymntpl-paypal-woocommerce/templates/cart/payment-methods.php on line 8
- > PHP Fatal error
Uncaught Error: Class 'PaymentPlugins\\WooCommerce\\PPCP\\Factories\\AbstractFactory' not found in wp-content/plugins/pymntpl-paypal-woocommerce/src/Factories/OrderFactory.php:11
- > PHP Fatal error
Uncaught Error: Class 'PaymentPlugins\\PayPalSDK\\Service\\BaseService' not found in wp-content/plugins/pymntpl-paypal-woocommerce/vendor/paymentplugins/paypal-php-sdk/src/Service/BillingAgreementService.php:9
- > PHP Fatal error
Uncaught Error: Class 'PaymentPlugins\\WooCommerce\\PPCP\\Rest\\Routes\\AbstractRoute' not found in wp-content/plugins/pymntpl-paypal-woocommerce/src/Rest/Routes/BillingAgreementToken.php:15
- > PHP Fatal error
Uncaught Error: Class 'PaymentPlugins\\WooCommerce\\PPCP\\Shortcodes\\AbstractShortCode' not found in wp-content/plugins/pymntpl-paypal-woocommerce/src/Shortcodes/AbstractPayLaterMessage.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
4 plugin tags: paylater, venmo, paypal, credit cards
pymntpl-paypal-woocommerce/pymntpl-paypal-woocommerce.php Passed 13 tests
The principal PHP file in "Payment Plugins for PayPal WooCommerce" v. 1.0.40 is loaded by WordPress automatically on each request
39 characters long description:
Accept PayPal on your WooCommerce site.
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Please fix the following items
- Do not distribute dangerous files with your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/pymntpl-paypal-woocommerce/vendor/paymentplugins/paypal-php-sdk/ca-certificates.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 298 | 3,564 | 3,279 | 15,386 |
JavaScript | 92 | 522 | 132 | 4,069 |
Sass | 8 | 219 | 0 | 1,072 |
SVG | 8 | 0 | 1 | 191 |
JSON | 2 | 0 | 0 | 55 |
XML | 1 | 0 | 0 | 14 |
CSS | 13 | 0 | 0 | 13 |
Markdown | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 5.79 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 1.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 49 | |
Interfaces | 5 | |
Traits | 2 | |
Classes | 236 | |
▷ Abstract classes | 18 | 7.63% |
▷ Concrete classes | 218 | 92.37% |
▷ Final classes | 0 | 0.00% |
Methods | 1,429 | |
▷ Static methods | 63 | 4.41% |
▷ Public methods | 1,244 | 87.05% |
▷ Protected methods | 67 | 4.69% |
▷ Private methods | 118 | 8.26% |
Functions | 122 | |
▷ Named functions | 1 | 0.82% |
▷ Anonymous functions | 121 | 99.18% |
Constants | 126 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 126 | 100.00% |
▷ Public constants | 126 | 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