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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.74ms] Passed 4 tests
This is a short check of server-side resources used by PayPal Payments For WooCommerce by Checkout Plugins
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 40.60 ▼0.44 |
Dashboard /wp-admin | 3.31 ▲0.01 | 49.04 ▼2.78 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 50.77 ▲0.05 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 82.93 ▼23.79 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.82 ▲1.55 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 29 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
cppw_start_onboarding |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
PayPal Payments For WooCommerce by Checkout Plugins: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲73 | 13.25 ▼1.13 | 4.86 ▲3.05 | 43.89 ▲4.40 |
Dashboard /wp-admin | 2,225 ▲37 | 4.86 ▼0.95 | 110.98 ▲2.39 | 40.36 ▼3.41 |
Posts /wp-admin/edit.php | 2,107 ▲18 | 2.07 ▲0.03 | 40.50 ▲1.44 | 34.00 ▼1.31 |
Add New Post /wp-admin/post-new.php | 1,547 ▲11 | 23.45 ▲0.02 | 679.04 ▲12.59 | 60.67 ▼1.08 |
Media Library /wp-admin/upload.php | 1,410 ▲22 | 4.15 ▼0.02 | 110.32 ▼4.49 | 47.78 ▼2.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- cppw_start_onboarding
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
- 12× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/checkout-paypal-woo/gateway/abstract-payment-gateway.php:24
- > PHP Fatal error
Trait 'CPPW\\Gateway\\Paypal\\Subscription\\Subscription_Helper' not found in wp-content/plugins/checkout-paypal-woo/gateway/paypal/subscription/subscriptions.php on line 19
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/checkout-paypal-woo/checkout-paypal-woo.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function CPPW\\register_activation_hook() in wp-content/plugins/checkout-paypal-woo/autoloader.php:88
- > PHP Fatal error
Trait 'CPPW\\Inc\\Traits\\Get_Instance' not found in wp-content/plugins/checkout-paypal-woo/admin/admin-controller.php on line 24
- > PHP Fatal error
Trait 'CPPW\\Inc\\Traits\\Get_Instance' not found in wp-content/plugins/checkout-paypal-woo/admin/order-meta.php on line 20
- > PHP Fatal error
Uncaught Error: Class 'CPPW\\Gateway\\Abstract_Payment_Gateway' not found in wp-content/plugins/checkout-paypal-woo/gateway/paypal/webhook/listener.php:24
- > PHP Fatal error
Trait 'CPPW\\Gateway\\Paypal\\Api\\Client' not found in wp-content/plugins/checkout-paypal-woo/gateway/paypal/api/payments.php on line 16
- > PHP Fatal error
Trait 'CPPW\\Inc\\Traits\\Get_Instance' not found in wp-content/plugins/checkout-paypal-woo/admin/ajax-calls.php on line 24
- > PHP Fatal error
Uncaught Error: Class 'CPPW\\Gateway\\Abstract_Payment_Gateway' not found in wp-content/plugins/checkout-paypal-woo/gateway/paypal/paypal-payments.php:26
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: paypal payment gateway, paypal payments woocommerce, venmo
checkout-paypal-woo/checkout-paypal-woo.php 92% from 13 tests
The main PHP script in "PayPal Payments For WooCommerce by Checkout Plugins" version 1.0.0 is automatically included on every request by WordPress
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 180 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected3,145 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 441 | 1,563 | 2,326 |
JavaScript | 2 | 12 | 17 | 400 |
CSS | 2 | 53 | 3 | 249 |
SVG | 1 | 0 | 0 | 170 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 20.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 52.00 |
Average method complexity | 3.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 0 | |
Traits | 4 | |
Classes | 16 | |
▷ Abstract classes | 1 | 6.25% |
▷ Concrete classes | 15 | 93.75% |
▷ Final classes | 0 | 0.00% |
Methods | 160 | |
▷ Static methods | 45 | 28.12% |
▷ Public methods | 150 | 93.75% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 6.25% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 15 | |
▷ Global constants | 15 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon/cppw_paypal.png | 2.05KB | 0.83KB | ▼ 59.65% |