Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.67MB] [CPU: ▲2.60ms] Passed 4 tests
Server-side resources used by WordPress Simple Shopping Cart
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.15 ▲0.68 | 46.69 ▲5.16 |
Dashboard /wp-admin | 4.01 ▲0.70 | 55.52 ▲8.12 |
Posts /wp-admin/edit.php | 4.06 ▲0.70 | 51.10 ▲2.72 |
Add New Post /wp-admin/post-new.php | 6.55 ▲0.66 | 92.79 ▼5.59 |
Media Library /wp-admin/upload.php | 3.87 ▲0.64 | 46.45 ▲13.88 |
Add-ons /wp-admin/admin.php?page=wspsc-addons | 3.83 | 33.68 |
Settings /wp-admin/admin.php?page=wspsc-menu-main | 4.07 | 41.02 |
Add New /wp-admin/post-new.php?post_type=wpsc_cart_orders | 3.96 | 46.15 |
Cart Orders /wp-admin/edit.php?post_type=wpsc_cart_orders | 3.97 | 39.69 |
WP Shopping Cart /wp-admin/options-general.php?page=wordpress-paypal-shopping-cart | 3.43 | 21.63 |
Tools /wp-admin/admin.php?page=wspsc-tools | 3.83 | 36.94 |
Coupons /wp-admin/admin.php?page=wspsc-discounts | 3.83 | 34.97 |
Server storage [IO: ▲2.18MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 384 new files
Database: no new tables, 19 new options
New WordPress options |
---|
wspsc_plugin_user_feedback_notice |
wpspc_buyer_email_subj |
widget_recent-comments |
wpspc_send_buyer_email |
wspsc_private_key_one |
wpspc_notify_email_address |
db_upgraded |
wpspc_buyer_email_body |
wp_cart_title |
widget_recent-posts |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WordPress Simple Shopping Cart
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,942 ▲180 | 13.40 ▼0.62 | 8.23 ▲6.41 | 41.17 ▼2.46 |
Dashboard /wp-admin | 2,265 ▲88 | 5.60 ▲0.03 | 89.43 ▼4.47 | 42.19 ▲2.36 |
Posts /wp-admin/edit.php | 2,167 ▲67 | 1.96 ▲0.02 | 34.52 ▼2.65 | 35.76 ▼0.46 |
Add New Post /wp-admin/post-new.php | 6,224 ▲4,698 | 22.73 ▼0.68 | 933.61 ▲254.25 | 37.48 ▼13.93 |
Media Library /wp-admin/upload.php | 1,464 ▲67 | 4.20 ▲0.03 | 111.41 ▲10.44 | 49.60 ▲8.19 |
Add-ons /wp-admin/admin.php?page=wspsc-addons | 891 | 2.00 | 23.85 | 32.69 |
Settings /wp-admin/admin.php?page=wspsc-menu-main | 1,520 | 2.00 | 22.57 | 39.04 |
Add New /wp-admin/post-new.php?post_type=wpsc_cart_orders | 1,620 | 2.53 | 49.82 | 59.43 |
Cart Orders /wp-admin/edit.php?post_type=wpsc_cart_orders | 1,180 | 1.91 | 29.98 | 30.00 |
WP Shopping Cart /wp-admin/options-general.php?page=wordpress-paypal-shopping-cart | 1,523 | 2.00 | 22.38 | 37.38 |
Tools /wp-admin/admin.php?page=wspsc-tools | 899 | 1.99 | 22.25 | 23.90 |
Coupons /wp-admin/admin.php?page=wspsc-discounts | 1,006 | 1.84 | 35.13 | 26.35 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 19 options
- wpspc_seller_email_body
- wspsc_plugin_user_feedback_notice
- cart_return_from_paypal_url
- can_compress_scripts
- theysaidso_admin_options
- wspsc_plugin_activated_time
- wpspc_buyer_email_subj
- widget_theysaidso_widget
- wpspc_seller_email_subj
- widget_recent-posts
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wordpress-simple-paypal-shopping-cart/lib/gallery-wp-cart.php
- > /wp-content/plugins/wordpress-simple-paypal-shopping-cart/gallery-wp-cart.php
- 253× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/wordpress-simple-paypal-shopping-cart/lib/stripe-gateway/lib/SourceTransaction.php:17
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/wordpress-simple-paypal-shopping-cart/lib/stripe-gateway/lib/FinancialConnections/Session.php:20
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/wordpress-simple-paypal-shopping-cart/lib/stripe-gateway/lib/Service/SetupIntentService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/wordpress-simple-paypal-shopping-cart/lib/stripe-gateway/lib/AccountLink.php:18
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Exception\\InvalidRequestException' not found in wp-content/plugins/wordpress-simple-paypal-shopping-cart/lib/stripe-gateway/lib/Exception/RateLimitException.php:10
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/wordpress-simple-paypal-shopping-cart/lib/stripe-gateway/lib/BillingPortal/Configuration.php:24
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/wordpress-simple-paypal-shopping-cart/lib/stripe-gateway/lib/Service/EphemeralKeyService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/wordpress-simple-paypal-shopping-cart/lib/stripe-gateway/lib/Refund.php:34
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/wordpress-simple-paypal-shopping-cart/lib/stripe-gateway/lib/LineItem.php:23
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/wordpress-simple-paypal-shopping-cart/lib/stripe-gateway/lib/TaxId.php:23
- > 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 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Screenshots: Add descriptions for screenshots #1, #2 in wordpress-simple-paypal-shopping-cart/assets to your readme.txt
- Tags: Please delete some tags, you are using 21 tag instead of maximum 10
wordpress-simple-paypal-shopping-cart/wp_shopping_cart.php 92% from 13 tests
The main PHP script in "WordPress Simple Shopping Cart" version 4.7.1 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wordpress-simple-paypal-shopping-cart.php" instead of "wp_shopping_cart.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Please fix the following items
- Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/wordpress-simple-paypal-shopping-cart/lib/stripe-gateway/data/ca-certificates.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 308 | 3,223 | 12,187 | 14,105 |
PO File | 12 | 1,588 | 1,766 | 4,368 |
Markdown | 2 | 783 | 0 | 1,538 |
JavaScript | 7 | 60 | 63 | 359 |
CSS | 3 | 12 | 15 | 215 |
JSON | 1 | 0 | 0 | 48 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 3.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 74.00 |
Average method complexity | 1.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 36 | |
Interfaces | 9 | |
Traits | 9 | |
Classes | 273 | |
▷ Abstract classes | 10 | 3.66% |
▷ Concrete classes | 263 | 96.34% |
▷ Final classes | 0 | 0.00% |
Methods | 963 | |
▷ Static methods | 186 | 19.31% |
▷ Public methods | 875 | 90.86% |
▷ Protected methods | 44 | 4.57% |
▷ Private methods | 44 | 4.57% |
Functions | 103 | |
▷ Named functions | 88 | 85.44% |
▷ Anonymous functions | 15 | 14.56% |
Constants | 1,061 | |
▷ Global constants | 13 | 1.23% |
▷ Class constants | 1,048 | 98.77% |
▷ Public constants | 1,048 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
21 PNG files occupy 0.09MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/paypal_checkout_DE.png | 8.32KB | 3.68KB | ▼ 55.81% |
assets/images/ui-icons_555555_256x240.png | 6.82KB | 4.17KB | ▼ 38.82% |
assets/images/ui-icons_777620_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
images/cart-orders-icon.png | 0.32KB | 0.33KB | 0.00% |
includes/admin/images/wp-affiliate-plugin-integration.png | 3.73KB | 2.75KB | ▼ 26.20% |