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

Code Review | Cryptocurrency Payment Gateway for WooCommerce

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

About plugin

  • Plugin page: triplea-cryptocur...
  • Plugin version: 2.0.13
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-6.4.1
  • WordPress version: 6.3.1
  • First release: May 30, 2019
  • Latest release: Nov 16, 2023
  • Number of updates: 147
  • Update frequency: every 11.1 days
  • Top authors: tripleatechnology (100%)

Code review

54 tests

User reviews

25 reviews

Install metrics

1,000+ active /64,176 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲1.14MB] [CPU: ▲6.11ms] Passed 4 tests

Server-side resources used by Cryptocurrency Payment Gateway for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.64 ▲1.1843.81 ▲6.45
Dashboard /wp-admin4.47 ▲1.1653.83 ▲7.66
Posts /wp-admin/edit.php4.52 ▲1.1657.46 ▲10.07
Add New Post /wp-admin/post-new.php7.01 ▲1.1399.84 ▲0.26
Media Library /wp-admin/upload.php4.33 ▲1.1048.84 ▲12.24

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 169 new files
Database: no new tables, 9 new options
New WordPress options
wc_triplea_crypto_payment_installed
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
wc_triplea_crypto_payment_version
woocommerce_triplea_payment_gateway_settings
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Cryptocurrency Payment Gateway for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.13 ▼0.211.82 ▲0.2637.74 ▼0.69
Dashboard /wp-admin2,192 ▲155.62 ▼0.0093.70 ▼7.5342.71 ▼5.07
Posts /wp-admin/edit.php2,097 ▼61.95 ▲0.0038.91 ▼1.8635.09 ▼4.83
Add New Post /wp-admin/post-new.php1,526 ▼023.37 ▲0.22613.73 ▼89.5452.90 ▼1.48
Media Library /wp-admin/upload.php1,397 ▼04.23 ▼0.0599.36 ▼5.7845.13 ▲1.27

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 9 options
    • widget_recent-posts
    • db_upgraded
    • wc_triplea_crypto_payment_installed
    • woocommerce_triplea_payment_gateway_settings
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • wc_triplea_crypto_payment_version
    • widget_recent-comments

Smoke tests 75% 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 148× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Notice
      Constant SODIUM_CRYPTO_PWHASH_MEMLIMIT_INTERACTIVE already defined in wp-content/plugins/triplea-cryptocurrency-payment-gateway-for-woocommerce/vendor/paragonie/sodium_compat/lib/php72compat_const.php on line 57
    • > PHP Notice
      Constant SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_NPUBBYTES already defined in wp-content/plugins/triplea-cryptocurrency-payment-gateway-for-woocommerce/vendor/paragonie/sodium_compat/lib/php72compat_const.php on line 17
    • > PHP Notice
      Constant SODIUM_CRYPTO_PWHASH_ALG_ARGON2ID13 already defined in wp-content/plugins/triplea-cryptocurrency-payment-gateway-for-woocommerce/vendor/paragonie/sodium_compat/lib/php72compat_const.php on line 56
    • > PHP Fatal error
      Uncaught Error: Class 'ParagonIE_Sodium_Core_ChaCha20_IetfCtx' not found in wp-content/plugins/triplea-cryptocurrency-payment-gateway-for-woocommerce/vendor/paragonie/sodium_compat/namespaced/Core/ChaCha20/IetfCtx.php:4
    • > PHP Notice
      Constant SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_IETF_KEYBYTES already defined in wp-content/plugins/triplea-cryptocurrency-payment-gateway-for-woocommerce/vendor/paragonie/sodium_compat/lib/php72compat_const.php on line 19
    • > PHP Notice
      Constant SODIUM_CRYPTO_SCALARMULT_BYTES already defined in wp-content/plugins/triplea-cryptocurrency-payment-gateway-for-woocommerce/vendor/paragonie/sodium_compat/lib/php72compat_const.php on line 69
    • > PHP Notice
      Constant SODIUM_CRYPTO_AEAD_AES256GCM_ABYTES already defined in wp-content/plugins/triplea-cryptocurrency-payment-gateway-for-woocommerce/vendor/paragonie/sodium_compat/lib/php72compat_const.php on line 14
    • > PHP Notice
      Constant SODIUM_CRYPTO_KX_PUBLICKEYBYTES already defined in wp-content/plugins/triplea-cryptocurrency-payment-gateway-for-woocommerce/vendor/paragonie/sodium_compat/lib/php72compat_const.php on line 44
    • > PHP Notice
      Constant SODIUM_LIBRARY_MINOR_VERSION already defined in wp-content/plugins/triplea-cryptocurrency-payment-gateway-for-woocommerce/vendor/paragonie/sodium_compat/lib/php72compat_const.php on line 4
    • > PHP Fatal error
      Uncaught Error: Class 'ParagonIE_Sodium_Core_HChaCha20' not found in wp-content/plugins/triplea-cryptocurrency-payment-gateway-for-woocommerce/vendor/paragonie/sodium_compat/namespaced/Core/HChaCha20.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: altcoin woocommerce, crypto payment gateway, crypto payments, bitcoin, bitcoin payments

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

This is the main PHP file of "Cryptocurrency Payment Gateway for WooCommerce" version 2.0.13, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Requires at least: Required version does not match the one declared in readme.txt ("5.5" instead of "5.0.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
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 265 characters long)

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
No dangerous file extensions were detected29,772 lines of code in 151 files:
LanguageFilesBlank linesComment linesLines of code
PHP1313,76112,96926,988
PO File73784061,308
Markdown31500493
JSON600438
JavaScript15924290
CSS2464249
SVG1006

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.21
Average class complexity19.93
▷ Minimum class complexity1.00
▷ Maximum class complexity386.00
Average method complexity3.32
▷ Minimum method complexity1.00
▷ Maximum method complexity60.00
Code structure
Namespaces13
Interfaces0
Traits0
Classes107
▷ Abstract classes2018.69%
▷ Concrete classes8781.31%
▷ Final classes11.15%
Methods874
▷ Static methods56764.87%
▷ Public methods78189.36%
▷ Protected methods515.84%
▷ Private methods424.81%
Functions185
▷ Named functions18197.84%
▷ Anonymous functions42.16%
Constants335
▷ Global constants164.78%
▷ Class constants31995.22%
▷ Public constants319100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/crypto-icon.png12.60KB5.23KB▼ 58.47%