78% woocommerce-quickpay

Code Review | WooCommerce QuickPay

WordPress plugin WooCommerce QuickPay scored78%from 54 tests.

About plugin

  • Plugin page: woocommerce-quickpay
  • Plugin version: 7.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 7.1.0-6.3
  • WordPress version: 6.3.1
  • First release: Apr 21, 2013
  • Latest release: Oct 6, 2023
  • Number of updates: 175
  • Update frequency: every 21.8 days
  • Top authors: PerfectSolution (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

6,000+ active /176,497 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.15MB] [CPU: ▲0.16ms] Passed 4 tests

Server-side resources used by WooCommerce QuickPay
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1538.39 ▼1.32
Dashboard /wp-admin3.45 ▲0.1549.26 ▼5.38
Posts /wp-admin/edit.php3.57 ▲0.2153.98 ▲3.33
Add New Post /wp-admin/post-new.php6.04 ▲0.14102.79 ▲7.37
Media Library /wp-admin/upload.php3.38 ▲0.1440.16 ▲4.01

Server storage [IO: ▲1.00MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 147 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WooCommerce QuickPay
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲3314.31 ▼0.071.87 ▲0.0941.01 ▼6.08
Dashboard /wp-admin2,203 ▲265.65 ▲0.0988.51 ▼11.9838.93 ▼7.42
Posts /wp-admin/edit.php2,105 ▲52.00 ▼0.0340.07 ▼0.1934.80 ▼2.58
Add New Post /wp-admin/post-new.php1,550 ▲922.83 ▼0.45665.15 ▼21.1760.57 ▲10.43
Media Library /wp-admin/upload.php1,408 ▲54.21 ▼0.02107.60 ▲2.3751.25 ▲2.95

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
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

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
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/woocommerce-quickpay/templates/admin/meta-box-subscription.php
    • > /wp-content/plugins/woocommerce-quickpay/templates/admin/meta-box-order.php
  • 43× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WC_QuickPay_Admin_Ajax_Action' not found in wp-content/plugins/woocommerce-quickpay/classes/modules/ajax/woocommerce-quickpay-admin-ajax-private-key.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WC_QuickPay_Module' not found in wp-content/plugins/woocommerce-quickpay/classes/modules/woocommerce-quickpay-orders.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'WC_QuickPay_Admin_Ajax_Action' not found in wp-content/plugins/woocommerce-quickpay/classes/modules/ajax/woocommerce-quickpay-admin-ajax-manage-payment.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Order' not found in wp-content/plugins/woocommerce-quickpay/classes/woocommerce-quickpay-order.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'WC_QuickPay_Instance' not found in wp-content/plugins/woocommerce-quickpay/classes/instances/vipps.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WC_QuickPay_Instance' not found in wp-content/plugins/woocommerce-quickpay/classes/instances/ideal.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WC_QuickPay' not found in wp-content/plugins/woocommerce-quickpay/classes/instances/instance.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WC_QuickPay_Module' not found in wp-content/plugins/woocommerce-quickpay/classes/modules/woocommerce-quickpay-admin-ajax.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WC_QuickPay_Instance' not found in wp-content/plugins/woocommerce-quickpay/classes/instances/google-pay.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WC_QuickPay_Module' not found in wp-content/plugins/woocommerce-quickpay/classes/modules/woocommerce-quickpay-admin-orders.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: quick pay, payment, payment gateway, quickpay, woo commerce...

woocommerce-quickpay/woocommerce-quickpay.php 85% from 13 tests

The main PHP script in "WooCommerce QuickPay" version 7.0.4 is automatically included on every request by WordPress
You should first fix the following items:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.0.0" instead of "7.1.0")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected9,375 lines of code in 112 files:
LanguageFilesBlank linesComment linesLines of code
PHP751,4512,9665,235
SVG309242,823
PO File1360749745
JavaScript44867345
CSS1400218
XML1009

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 code0.40
Average class complexity11.22
▷ Minimum class complexity1.00
▷ Maximum class complexity86.00
Average method complexity2.49
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes59
▷ Abstract classes23.39%
▷ Concrete classes5796.61%
▷ Final classes00.00%
Methods399
▷ Static methods12531.33%
▷ Public methods36992.48%
▷ Protected methods112.76%
▷ Private methods194.76%
Functions30
▷ Named functions2480.00%
▷ Anonymous functions620.00%
Constants4
▷ Global constants375.00%
▷ Class constants125.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
29 PNG files occupy 0.21MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/mobilepay-checkout/white/large@2x.png10.26KB3.69KB▼ 64.01%
assets/images/cards/vipps.png10.26KB10.34KB0.00%
assets/images/mobilepay-checkout/white/medium@1x.png5.61KB1.76KB▼ 68.66%
assets/images/icons/error.png3.29KB2.08KB▼ 36.84%
assets/images/mobilepay-checkout/darkblue/large@2x.png11.70KB3.62KB▼ 69.08%