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: ▲1.47MB] [CPU: ▲3.27ms] Passed 4 tests
Server-side resources used by WP Express Checkout (Accept PayPal Payments Easily)
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.19 ▲0.73 | 40.08 ▼3.31 |
Dashboard /wp-admin | 5.02 ▲1.68 | 56.73 ▼6.61 |
Posts /wp-admin/edit.php | 5.15 ▲1.80 | 61.00 ▲14.82 |
Add New Post /wp-admin/post-new.php | 7.62 ▲1.74 | 103.12 ▲10.29 |
Media Library /wp-admin/upload.php | 4.98 ▲1.75 | 48.06 ▲12.72 |
Tags /wp-admin/edit-tags.php?taxonomy=wpec_tags&post_type=ppec-products | 4.99 | 47.13 |
Orders /wp-admin/edit.php?post_type=ppdgorder | 5.01 | 47.37 |
Tools /wp-admin/edit.php?post_type=ppec-products&page=wpec-tools-page | 4.99 | 43.06 |
Settings /wp-admin/edit.php?post_type=ppec-products&page=ppec-settings-page | 4.99 | 44.26 |
Coupons /wp-admin/edit.php?post_type=ppec-products&page=wpec-coupons | 4.98 | 45.21 |
Products /wp-admin/edit.php?post_type=ppec-products | 5.01 | 43.55 |
Categories /wp-admin/edit-tags.php?taxonomy=wpec_categories&post_type=ppec-products | 4.99 | 43.77 |
Add New Product /wp-admin/post-new.php?post_type=ppec-products | 5.16 | 56.23 |
Server storage [IO: ▲1.14MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 167 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
ppdg-settings |
widget_recent-comments |
wpec_plugin_user_feedback_notice |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Express Checkout (Accept PayPal Payments Easily)
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,938 ▲202 | 13.78 ▼0.92 | 8.71 ▲6.93 | 37.17 ▼7.42 |
Dashboard /wp-admin | 2,254 ▲77 | 5.62 ▼0.01 | 91.97 ▼9.25 | 40.69 ▼3.78 |
Posts /wp-admin/edit.php | 2,139 ▲39 | 1.95 ▲0.01 | 39.65 ▲1.86 | 36.83 ▲1.10 |
Add New Post /wp-admin/post-new.php | 6,418 ▲4,892 | 27.69 ▲4.46 | 840.65 ▲144.49 | 34.16 ▼16.98 |
Media Library /wp-admin/upload.php | 1,459 ▲65 | 4.24 ▲0.01 | 94.31 ▼4.52 | 43.77 ▲0.43 |
Tags /wp-admin/edit-tags.php?taxonomy=wpec_tags&post_type=ppec-products | 1,302 | 2.13 | 30.82 | 32.26 |
Orders /wp-admin/edit.php?post_type=ppdgorder | 1,232 | 2.20 | 37.21 | 32.40 |
Tools /wp-admin/edit.php?post_type=ppec-products&page=wpec-tools-page | 995 | 2.01 | 24.88 | 29.23 |
Settings /wp-admin/edit.php?post_type=ppec-products&page=ppec-settings-page | 1,694 | 6.86 | 234.60 | 49.28 |
Coupons /wp-admin/edit.php?post_type=ppec-products&page=wpec-coupons | 1,063 | 2.14 | 26.85 | 29.41 |
Products /wp-admin/edit.php?post_type=ppec-products | 1,202 | 1.90 | 30.94 | 34.60 |
Categories /wp-admin/edit-tags.php?taxonomy=wpec_categories&post_type=ppec-products | 1,333 | 2.13 | 29.01 | 32.67 |
Add New Product /wp-admin/post-new.php?post_type=ppec-products | 3,282 | 7.61 | 185.05 | 81.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure has failed, leaving 8 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- ppdg-settings
- wpec_plugin_user_feedback_notice
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% 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
The following issues need your attention
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-express-checkout/includes/integrations/woocommerce/class-woocommerce-gateway.php
- > /wp-content/plugins/wp-express-checkout/public/views/public.php
- 78× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PayPalCheckoutSdk\\Core\\PayPalEnvironment' not found in wp-content/plugins/wp-express-checkout/vendor/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Core/ProductionEnvironment.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP_Express_Checkout\\Order_Tags_Html' not found in wp-content/plugins/wp-express-checkout/public/includes/class-order-tags-plain.php:10
- > PHP Fatal error
Uncaught Error: Class 'WP_Express_Checkout\\Shortcodes' not found in wp-content/plugins/wp-express-checkout/public/views/templates/content-product-default.php:8
- > PHP Fatal error
Uncaught Error: Class 'PayPalHttp\\HttpRequest' not found in wp-content/plugins/wp-express-checkout/vendor/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Payments/AuthorizationsReauthorizeRequest.php:14
- > PHP Warning
Class 'WP_Express_Checkout\\Payment_Processor' not found in wp-content/plugins/wp-express-checkout/vendor/deprecated.php on line 25
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-express-checkout/public/views/templates/payment-form.php:9
- > PHP Fatal error
Uncaught Error: Class 'WP_Express_Checkout\\Shortcodes' not found in wp-content/plugins/wp-express-checkout/public/views/templates/content-product-2.php:8
- > PHP Fatal error
Uncaught Error: Class 'PayPalHttp\\HttpRequest' not found in wp-content/plugins/wp-express-checkout/vendor/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Payments/CapturesGetRequest.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-express-checkout/public/views/templates/content-thank-you.php:10
- > PHP Fatal error
Uncaught Error: Class 'WP_Express_Checkout\\Products\\Product' not found in wp-content/plugins/wp-express-checkout/includes/products/class-stub-product.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: checkout, digital store, payment, woocommerce, e-commerce...
wp-express-checkout/wp-express-checkout.php Passed 13 tests
The primary PHP file in "WP Express Checkout (Accept PayPal Payments Easily)" version 2.3.6 is used by WordPress to initiate all plugin functionality
128 characters long description:
This plugin allows you to create a customizable PayPal payment button that lets the customers pay quickly in a popup via PayPal.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin15,774 lines of code in 134 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 112 | 2,175 | 2,777 | 9,699 |
CSS | 8 | 459 | 83 | 2,667 |
PO File | 1 | 749 | 815 | 1,870 |
JavaScript | 5 | 96 | 30 | 786 |
Sass | 5 | 108 | 1 | 625 |
JSON | 2 | 0 | 0 | 126 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 11.64 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 95.00 |
Average method complexity | 2.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 14 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 86 | |
▷ Abstract classes | 3 | 3.49% |
▷ Concrete classes | 83 | 96.51% |
▷ Final classes | 0 | 0.00% |
Methods | 520 | |
▷ Static methods | 104 | 20.00% |
▷ Public methods | 437 | 84.04% |
▷ Protected methods | 51 | 9.81% |
▷ Private methods | 32 | 6.15% |
Functions | 7 | |
▷ Named functions | 3 | 42.86% |
▷ Anonymous functions | 4 | 57.14% |
Constants | 12 | |
▷ Global constants | 7 | 58.33% |
▷ Class constants | 5 | 41.67% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/product-thumb-placeholder.png | 0.52KB | 0.53KB | 0.00% |