10% coinremitter-crypto-payment-gateway

Code Review | Coinremitter Crypto Payment Processor

WordPress plugin Coinremitter Crypto Payment Processor scored10%from 54 tests.

About plugin

  • Plugin page: coinremitter-cryp...
  • Plugin version: 1.0.8
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.2
  • WordPress version: 6.3.1
  • First release: Dec 28, 2019
  • Latest release: Nov 2, 2023
  • Number of updates: 29
  • Update frequency: every 48.5 days
  • Top authors: coinremitter (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /10,031 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
  • The plugin did not install without errors
    • > Warning in wp-content/plugins/coinremitter-crypto-payment-gateway/coinremitter.php+1172
    copy(wp-content/plugins/coinremitter-crypto-payment-gateway/images/dir/files/.htaccess): failed to open stream: No such file or directory

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

Analyzing server-side resources used by Coinremitter Crypto Payment Processor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.81 ▼4.89
Dashboard /wp-admin3.31 ▼0.0443.67 ▼19.25
Posts /wp-admin/edit.php3.36 ▲0.0049.12 ▲5.22
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.38 ▼5.54
Media Library /wp-admin/upload.php3.23 ▲0.0036.72 ▲1.22

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 86 new files
Database: 3 new tables, 8 new options
New tables
coinremitter_webhook
coinremitter_order_address
coinremitter_payments
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
coinremitterversion
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
woocommerce_coinremitterpayments_settings

Browser metrics Passed 4 tests

This is an overview of browser requirements for Coinremitter Crypto Payment Processor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲3214.35 ▼0.001.79 ▼0.1944.59 ▲0.86
Dashboard /wp-admin2,198 ▲185.63 ▼0.0495.94 ▼1.0943.54 ▼2.49
Posts /wp-admin/edit.php2,097 ▼32.01 ▼0.1439.78 ▲5.6535.17 ▼0.95
Add New Post /wp-admin/post-new.php1,526 ▼223.34 ▼0.04596.49 ▼81.1544.80 ▼13.62
Media Library /wp-admin/upload.php1,394 ▼94.19 ▼0.0394.05 ▼6.1841.22 ▼0.26

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The plugin did not uninstall successfully, leaving 3 tables in the database
    • coinremitter_order_address
    • coinremitter_webhook
    • coinremitter_payments
  • Zombie WordPress options were found after uninstall: 8 options
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • woocommerce_coinremitterpayments_settings
    • coinremitterversion
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means 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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_json_encode() in wp-content/plugins/coinremitter-crypto-payment-gateway/includes/coinremitter.class.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 17 tag instead of maximum 10
The official readme.txt might help

coinremitter-crypto-payment-gateway/coinremitter-wordpress.php 92% from 13 tests

The primary PHP file in "Coinremitter Crypto Payment Processor" version 1.0.8 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("coinremitter-crypto-payment-gateway.php" instead of "coinremitter-wordpress.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
Good job! No executable or dangerous file extensions detected8,191 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP56432864,527
CSS7180373,186
JavaScript84726454
HTML36024

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity109.00
▷ Minimum class complexity59.00
▷ Maximum class complexity169.00
Average method complexity7.00
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods54
▷ Static methods23.70%
▷ Public methods4379.63%
▷ Protected methods00.00%
▷ Private methods1120.37%
Functions64
▷ Named functions64100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
22 PNG files occupy 0.25MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/succsess.png12.42KB3.83KB▼ 69.18%
images/bitcoin_donate.png11.69KB6.07KB▼ 48.05%
images/usdterc20.png10.53KB4.79KB▼ 54.57%
images/bnb.png12.25KB5.61KB▼ 54.17%
images/checkmark.png0.51KB0.49KB▼ 4.78%