83% eukapay-cryptocurrency-payment-gateway-for-woocommerce

Code Review | EukaPay Cryptocurrency Payment Gateway for WooCommerce

WordPress plugin EukaPay Cryptocurrency Payment Gateway for WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: eukapay-cryptocur...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0.2-6.0
  • WordPress version: 6.3.1
  • First release: Oct 18, 2022
  • Latest release: Oct 26, 2022
  • Number of updates: 13
  • Update frequency: every 15.3 days
  • Top authors: tomoeukapay (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /371 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
Installer ran successfully

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

This is a short check of server-side resources used by EukaPay Cryptocurrency Payment Gateway for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.56 ▼4.37
Dashboard /wp-admin3.31 ▲0.0144.31 ▼6.64
Posts /wp-admin/edit.php3.36 ▲0.0146.54 ▲0.77
Add New Post /wp-admin/post-new.php5.89 ▲0.0180.78 ▼11.46
Media Library /wp-admin/upload.php3.23 ▲0.0033.91 ▼3.48

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by EukaPay Cryptocurrency Payment Gateway for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.61 ▼1.021.66 ▼0.2841.52 ▼2.74
Dashboard /wp-admin2,206 ▲185.81 ▼0.07110.73 ▼4.7937.86 ▼7.23
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0441.48 ▲7.0135.76 ▼0.34
Add New Post /wp-admin/post-new.php1,534 ▼123.39 ▲0.24667.25 ▲17.5450.33 ▼4.76
Media Library /wp-admin/upload.php1,388 ▼04.30 ▲0.1098.99 ▲3.0442.43 ▼0.18

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/eukapay-cryptocurrency-payment-gateway-for-woocommerce/woocommerce-gateway-eukapay.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% 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
7 plugin tags: woocommerce, cryptocurrency, ethereum, usdc, usdt...

eukapay-cryptocurrency-payment-gateway-for-woocommerce/woocommerce-gateway-eukapay.php 77% from 13 tests

"EukaPay Cryptocurrency Payment Gateway for WooCommerce" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Requires at least: Required version does not match the one declared in readme.txt ("5.7" instead of "6.0.2")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("eukapay-cryptocurrency-payment-gateway-for-woocommerce.php" instead of "woocommerce-gateway-eukapay.php")

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
Success! There were no dangerous files found in this plugin412 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP289144412

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity57.00
▷ Minimum class complexity57.00
▷ Maximum class complexity57.00
Average method complexity3.94
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods1578.95%
▷ Protected methods210.53%
▷ Private methods210.53%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/EukaPayEmailIcon.png22.91KB12.94KB▼ 43.52%