84% express-checkout

Code Review | Express Checkout via PayPal for WooCommerce

WordPress plugin Express Checkout via PayPal for WooCommerce scored 84% from 54 tests.

About plugin

  • Plugin page: express-checkout
  • Plugin version: 5.1.2
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Mar 26, 2016
  • Latest release: Dec 6, 2022
  • Number of updates: 72
  • Update frequency: every 34.0 days
  • Top authors: wpgateways (100%)

Code review

54 tests

User reviews

22 reviews

Install metrics

2,000+ active / 89,975 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2328.44 ▼16.93
Dashboard /wp-admin3.61 ▲0.3047.14 ▲3.47
Posts /wp-admin/edit.php3.66 ▲0.3051.66 ▲4.62
Add New Post /wp-admin/post-new.php6.12 ▲0.2486.04 ▼10.43
Media Library /wp-admin/upload.php3.47 ▲0.2438.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,465 ▼29213.27 ▼1.110.50 ▼1.6018.60 ▼32.46
Dashboard /wp-admin2,206 ▲154.90 ▼0.98167.72 ▲65.9149.87 ▲5.99
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0335.21 ▼6.0432.04 ▼4.16
Add New Post /wp-admin/post-new.php1,514 ▼2817.63 ▼0.45673.48 ▲58.8771.47 ▲10.39
Media Library /wp-admin/upload.php1,382 ▼94.27 ▲0.0496.59 ▲0.1343.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP336254077,909
JavaScript131981,235
CSS464277

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 code0.51
Average class complexity50.44
▷ Minimum class complexity1.00
▷ Maximum class complexity383.00
Average method complexity5.13
▷ Minimum method complexity1.00
▷ Maximum method complexity61.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes27
▷ Abstract classes00.00%
▷ Concrete classes27100.00%
▷ Final classes00.00%
Methods323
▷ Static methods175.26%
▷ Public methods31196.28%
▷ Protected methods00.00%
▷ Private methods123.72%
Functions22
▷ Named functions2195.45%
▷ Anonymous functions14.55%
Constants12
▷ Global constants758.33%
▷ Class constants541.67%
▷ Public constants5100.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
FileSize - originalSize - compressedSavings
includes/assets/images/dynamic-image/en_US.png5.25KB2.19KB▼ 58.34%
includes/assets/images/paypal.png2.73KB1.56KB▼ 43.02%
includes/assets/images/paypal-credit-card-logos.png16.73KB5.74KB▼ 65.70%
includes/assets/images/card-paypal.png0.76KB0.79KB0.00%