78% webplus-liqpay-woocommerce

Code Review | WebPlus Gateway for LiqPay on WooCommerce

WordPress plugin WebPlus Gateway for LiqPay on WooCommerce scored78%from 54 tests.

About plugin

  • Plugin page: webplus-liqpay-wo...
  • Plugin version: 3.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 13, 2019
  • Latest release: Oct 11, 2023
  • Number of updates: 156
  • Update frequency: every 9.4 days
  • Top authors: borysenko (100%)

Code review

54 tests

User reviews

24 reviews

Install metrics

2,000+ active /22,547 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.30ms] Passed 4 tests

An overview of server-side resources used by WebPlus Gateway for LiqPay on WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0034.67 ▼9.21
Dashboard /wp-admin3.31 ▲0.0146.70 ▼1.98
Posts /wp-admin/edit.php3.36 ▲0.0146.68 ▼9.64
Add New Post /wp-admin/post-new.php5.89 ▲0.0187.35 ▼4.35
Media Library /wp-admin/upload.php3.23 ▲0.0133.88 ▲2.09
Pro версия /wp-admin/admin.php?page=wc-settings&tab=checkout§ion=liqpay-webplus&page=pro-liqpay-webplus-version3.2031.18
WebPlus LiqPay /wp-admin/admin.php?page=wc-settings&tab=checkout§ion=liqpay-webplus3.0124.74

Server storage [IO: ▲0.03MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 8 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

Checking browser requirements for WebPlus Gateway for LiqPay on WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲5114.64 ▲0.271.61 ▼0.0640.63 ▲0.83
Dashboard /wp-admin2,221 ▲415.53 ▼0.0781.05 ▼11.9174.28 ▲25.45
Posts /wp-admin/edit.php2,105 ▲21.98 ▼0.0336.65 ▼2.6932.49 ▼8.73
Add New Post /wp-admin/post-new.php1,571 ▲4518.30 ▼4.83681.39 ▼8.5658.54 ▼4.49
Media Library /wp-admin/upload.php1,420 ▲204.22 ▲0.1198.72 ▲2.8685.51 ▲43.91
Pro версия /wp-admin/admin.php?page=wc-settings&tab=checkout§ion=liqpay-webplus&page=pro-liqpay-webplus-version8101.9926.8730.31
WebPlus LiqPay /wp-admin/admin.php?page=wc-settings&tab=checkout§ion=liqpay-webplus280.420.073.53

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/webplus-liqpay-woocommerce/liqpay-webplus.php:9

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
    • > GET request to /wp-admin/admin.php?page=wc-settings&tab=checkout§ion=liqpay-webplus
    • > Network (severe)
    wp-admin/admin.php?page=wc-settings&tab=checkout&section=liqpay-webplus - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Requires at least: Version not formatted correctly
The official readme.txt might help

webplus-liqpay-woocommerce/liqpay-webplus.php 92% from 13 tests

"WebPlus Gateway for LiqPay on WooCommerce" version 3.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("webplus-liqpay-woocommerce.php" instead of "liqpay-webplus.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin336 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP455143289
SVG10047

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity7.33
▷ Minimum class complexity1.00
▷ Maximum class complexity12.00
Average method complexity1.95
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods1680.00%
▷ Protected methods15.00%
▷ Private methods315.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants00.00%
▷ Class constants5100.00%
▷ 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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/liqpay.png1.24KB1.09KB▼ 11.76%
img/logo-liqpay.png4.51KB2.46KB▼ 45.58%