67% woo-altcoin-payment-gateway

Code Review | Bitcoin / AltCoin Payment Gateway for WooCommerce & Multivendor store / shop

WordPress plugin Bitcoin / AltCoin Payment Gateway for WooCommerce & Multivendor store / shop scored 67% from 54 tests.

About plugin

  • Plugin page: woo-altcoin-payme...
  • Plugin version: 1.6.9
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9
  • WordPress version: 5.8.1
  • First release: Mar 12, 2018
  • Latest release: Jan 26, 2022
  • Number of updates: 238
  • Update frequency: every 6.0 days
  • Top authors: codesolz (84.87%)m.tuhin (15.55%)

Code review

54 tests

User reviews

15 reviews

Install metrics

1,000+ active / 30,402 total downloads


Plugin footprint 65% 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.05MB] [CPU: ▼146.59ms] Passed 4 tests

Analyzing server-side resources used by Bitcoin / AltCoin Payment Gateway for WooCommerce & Multivendor store / shop
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.89 ▲0.0135.25 ▼3.36
Dashboard /wp-admin3.15 ▲0.0933.60 ▼9.23
Posts /wp-admin/edit.php3.25 ▼0.3529.98 ▼22.30
Add New Post /wp-admin/post-new.php5.50 ▲0.06144.80 ▼551.46
Media Library /wp-admin/upload.php3.08 ▲0.0830.21 ▲6.95
Go Pro Plan /wp-admin/admin.php?page=cs-wapg-go-pro3.1322.81
Automatic Order /wp-admin/admin.php?page=cs-woo-altcoin-automatic-order-confirmation-settings3.2124.66
Product Page Options /wp-admin/admin.php?page=cs-woo-altcoin-product-option-settings3.1328.39
Checkout Page Options /wp-admin/admin.php?page=cs-woo-altcoin-checkout-option-settings3.1321.60
Add New Coin /wp-admin/admin.php?page=cs-woo-altcoin-add-new-coin3.2322.15
Widget Options /wp-admin/admin.php?page=cs-woo-altcoin-widget-settings3.1124.05
All Coins /wp-admin/admin.php?page=cs-woo-altcoin-all-coins3.1423.88
Default Settings /wp-admin/admin.php?page=cs-woo-altcoin-gateway-settings3.1430.17

Server storage [IO: ▲1.43MB] [DB: ▲0.01MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 92 new files
Database: 4 new tables, 2 new options
New tables
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Bitcoin / AltCoin Payment Gateway for WooCommerce & Multivendor store / shop
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,905 ▲25217.58 ▲2.2749.65 ▲43.9870.38 ▼6.73
Dashboard /wp-admin3,030 ▲1266.05 ▲0.03120.99 ▼7.67228.15 ▲49.87
Posts /wp-admin/edit.php2,815 ▲762.78 ▲0.0264.69 ▲2.56137.06 ▲0.16
Add New Post /wp-admin/post-new.php1,674 ▲5922.22 ▲0.86418.40 ▲63.61191.93 ▲23.28
Media Library /wp-admin/upload.php1,839 ▲355.09 ▲0.05131.83 ▼6.15219.35 ▲43.16
Go Pro Plan /wp-admin/admin.php?page=cs-wapg-go-pro9072.1834.8070.14
Automatic Order /wp-admin/admin.php?page=cs-woo-altcoin-automatic-order-confirmation-settings2,6273.3271.05187.67
Product Page Options /wp-admin/admin.php?page=cs-woo-altcoin-product-option-settings2,6313.7178.06178.03
Checkout Page Options /wp-admin/admin.php?page=cs-woo-altcoin-checkout-option-settings2,6273.4471.29190.62
Add New Coin /wp-admin/admin.php?page=cs-woo-altcoin-add-new-coin2,4724.4689.29181.95
Widget Options /wp-admin/admin.php?page=cs-woo-altcoin-widget-settings2,6313.7273.83171.44
All Coins /wp-admin/admin.php?page=cs-woo-altcoin-all-coins1,3242.4054.54139.49
Default Settings /wp-admin/admin.php?page=cs-woo-altcoin-gateway-settings2,6323.7775.94180.64

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% 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 4 tables in the database
    • wp_wapg_coin_addresses
    • wp_wapg_coin_transactions
    • wp_wapg_coins
    • wp_wapg_coin_offers
  • This plugin did not uninstall successfully, leaving 2 options in the database
    • widget_altcoin_display_coin_prices
    • wapg_db_version

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=cs-wapg-go-pro
    • > Warning in wp-includes/pluggable.php+1343
    Cannot modify header information - headers already sent by (output started at wp-includes/script-loader.php:2015)
    • > GET request to /wp-admin/admin.php?page=cs-woo-altcoin-widget-settings
    • > Notice in wp-content/plugins/woo-altcoin-payment-gateway/core/admin/options/pages/WidgetPageOptions.php+77
    Trying to access array offset on value of type bool

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=cs-wapg-go-pro
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1 1:31592 "jQuery.Deferred exception: wp is not defined" "ReferenceError: wp is not defined\n at HTMLDocument.\u003Canonymous> (/wp-admin/admin.php?page=cs-wapg-go-pro:44:38)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1:2:30038)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1:2:30340)" undefined
    • > GET request to /wp-admin/admin.php?page=cs-wapg-go-pro
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1 1:31702 Uncaught ReferenceError: wp is not defined


Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: Please a description for screenshot #15 in woo-altcoin-payment-gateway/assets to your readme.txt
The official readme.txt might help

woo-altcoin-payment-gateway/woocommerce-altcoin-payment.php 85% from 13 tests

The main PHP script in "Bitcoin / AltCoin Payment Gateway for WooCommerce & Multivendor store / shop" version 1.6.9 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woo-altcoin-payment-gateway.php" instead of "woocommerce-altcoin-payment.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 172 characters long)

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 plugin6,989 lines of code in 73 files:
LanguageFilesBlank linesComment linesLines of code
PO File64946231,472

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity14.07
▷ Minimum class complexity1.00
▷ Maximum class complexity87.00
Average method complexity3.10
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes43100.00%
▷ Final classes00.00%
▷ Static methods9033.46%
▷ Public methods21579.93%
▷ Protected methods00.00%
▷ Private methods5420.07%
▷ Named functions133.33%
▷ Anonymous functions266.67%
▷ Global constants150.00%
▷ Class constants150.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/xxicon-24x24.png1.48KB1.40KB▼ 5.41%