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
Install script ran successfully
Server metrics [RAM: ▲0.25MB] [CPU: ▼4.82ms] Passed 4 tests
Server-side resources used by Express Checkout via PayPal for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.23 | 28.44 ▼16.93 |
Dashboard /wp-admin | 3.61 ▲0.30 | 47.14 ▲3.47 |
Posts /wp-admin/edit.php | 3.66 ▲0.30 | 51.66 ▲4.62 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.24 | 86.04 ▼10.43 |
Media Library /wp-admin/upload.php | 3.47 ▲0.24 | 38.46 ▲4.64 |
Server storage [IO: ▲0.66MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 93 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Express Checkout via PayPal for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,465 ▼292 | 13.27 ▼1.11 | 0.50 ▼1.60 | 18.60 ▼32.46 |
Dashboard /wp-admin | 2,206 ▲15 | 4.90 ▼0.98 | 167.72 ▲65.91 | 49.87 ▲5.99 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.99 ▼0.03 | 35.21 ▼6.04 | 32.04 ▼4.16 |
Add New Post /wp-admin/post-new.php | 1,514 ▼28 | 17.63 ▼0.45 | 673.48 ▲58.87 | 71.47 ▲10.39 |
Media Library /wp-admin/upload.php | 1,382 ▼9 | 4.27 ▲0.04 | 96.59 ▲0.13 | 43.28 ▼4.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% 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
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_url() in wp-content/plugins/express-checkout/upgrade/psb-upgrade-notice.php:3
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway_CC' not found in wp-content/plugins/express-checkout/ppcp/includes/class-ppcp-paypal-checkout-for-woocommerce-gateway.php:9
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/express-checkout/ppcp/includes/class-ppcp-paypal-checkout-for-woocommerce-request.php:9
- > PHP Fatal error
Uncaught Error: Class 'WC_Form_Handler' not found in wp-content/plugins/express-checkout/ppcp/includes/class-ppcp-paypal-checkout-for-woocommerce-product.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: paypal checkout, paypal, payment, credit card, payment gateway...
express-checkout/express-checkout.php 92% from 13 tests
The primary PHP file in "Express Checkout via PayPal for WooCommerce" version 5.1.2 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Requires at least: Required version does not match the one declared in readme.txt ("3.0.1" instead of "5.3.0")
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
There were no executable files found in this plugin9,421 lines of code in 50 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 33 | 625 | 407 | 7,909 |
JavaScript | 13 | 19 | 8 | 1,235 |
CSS | 4 | 6 | 4 | 277 |
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 issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 50.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 383.00 |
Average method complexity | 5.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 61.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 27 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 27 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 323 | |
▷ Static methods | 17 | 5.26% |
▷ Public methods | 311 | 96.28% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 3.72% |
Functions | 22 | |
▷ Named functions | 21 | 95.45% |
▷ Anonymous functions | 1 | 4.55% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/assets/images/dynamic-image/en_US.png | 5.25KB | 2.19KB | ▼ 58.34% |
includes/assets/images/paypal.png | 2.73KB | 1.56KB | ▼ 43.02% |
includes/assets/images/paypal-credit-card-logos.png | 16.73KB | 5.74KB | ▼ 65.70% |
includes/assets/images/card-paypal.png | 0.76KB | 0.79KB | 0.00% |