77% multi-currency-wallet

Code Review | Bitcoin, Ethereum and ERC20 crypto wallets with exchange

WordPress plugin Bitcoin, Ethereum and ERC20 crypto wallets with exchange scored77%from 54 tests.

About plugin

  • Plugin page: multi-currency-wa...
  • Plugin version: 1.1.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.0
  • WordPress version: 6.3.1
  • First release: Mar 26, 2020
  • Latest release: Jul 4, 2022
  • Number of updates: 49
  • Update frequency: every 17.0 days
  • Top authors: noxonsu (83.67%)burdianov (18.37%)

Code review

54 tests

User reviews

6 reviews

Install metrics

400+ active /11,119 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.40MB] [CPU: ▼9.30ms] Passed 4 tests

A check of server-side resources used by Bitcoin, Ethereum and ERC20 crypto wallets with exchange
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.98 ▲0.4756.65 ▲17.94
Dashboard /wp-admin3.79 ▲0.4055.52 ▼19.84
Posts /wp-admin/edit.php3.84 ▲0.4556.18 ▼6.41
Add New Post /wp-admin/post-new.php6.31 ▲0.3987.64 ▼21.59
Media Library /wp-admin/upload.php3.65 ▲0.3847.63 ▲10.64
Help /wp-admin/admin.php?page=mcwallet-help3.6236.93
MCWallet /wp-admin/admin.php?page=mcwallet3.8263.92
Banners /wp-admin/edit.php?post_type=mcwallet_banner3.8351.50

Server storage [IO: ▲28.30MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
Just a few items left to fix
  • Filesystem usage must be lower than 25MB (currently using 28.30MB)
Filesystem: 215 new files
Database: no new tables, 8 new options
New WordPress options
widget_theysaidso_widget
mcwallet_version
db_upgraded
can_compress_scripts
mcwallet_tokens
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Bitcoin, Ethereum and ERC20 crypto wallets with exchange
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲7614.73 ▲0.521.60 ▼0.0439.67 ▼2.02
Dashboard /wp-admin2,228 ▲485.49 ▼0.1596.54 ▲8.8542.60 ▲0.24
Posts /wp-admin/edit.php2,095 ▼52.01 ▼0.0035.46 ▼6.1435.26 ▼3.24
Add New Post /wp-admin/post-new.php1,553 ▲1823.50 ▲5.39677.76 ▲51.5465.06 ▲2.14
Media Library /wp-admin/upload.php1,436 ▲334.22 ▲0.0195.51 ▼10.9447.43 ▲2.73
Help /wp-admin/admin.php?page=mcwallet-help8222.0325.1927.14
MCWallet /wp-admin/admin.php?page=mcwallet4,5208.46178.0769.75
Banners /wp-admin/edit.php?post_type=mcwallet_banner1,8473.6853.8430.46

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 8 options
    • widget_theysaidso_widget
    • mcwallet_version
    • mcwallet_tokens
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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 output text when accessed directly:
    • > /wp-content/plugins/multi-currency-wallet/includes/scripts/load-app.php
  • 32× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multi-currency-wallet/includes/tinymce.php:26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/multi-currency-wallet/includes/shortcode.php:41
    • > PHP Fatal error
      require(): Failed opening required 'MCWALLET_PATHincludes/admin-page/admin-page-main.php' (include_path='.:/usr/share/php') in wp-content/plugins/multi-currency-wallet/includes/admin-page/admin-page.php on line 11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/multi-currency-wallet/includes/admin-page/tabs/edit-menu.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/multi-currency-wallet/includes/functions.php:151
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/multi-currency-wallet/includes/admin-page/tabs/strings-editor.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multi-currency-wallet/includes/admin-page/admin-page-help.php:17
    • > PHP Fatal error
      require(): Failed opening required 'MCWALLET_PATHincludes/setup.php' (include_path='.:/usr/share/php') in wp-content/plugins/multi-currency-wallet/includes/init.php on line 11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multi-currency-wallet/includes/admin-page/admin-page-design.php:22
    • > PHP Warning
      require(MCWALLET_PATHincludes/scripts/admin-scripts.php): failed to open stream: No such file or directory in wp-content/plugins/multi-currency-wallet/includes/scripts/scripts.php on line 11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

multi-currency-wallet/multi-currency-wallet.php 92% from 13 tests

The main file in "Bitcoin, Ethereum and ERC20 crypto wallets with exchange" v. 1.1.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("5.0" instead of "5.4")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected7,175 lines of code in 112 files:
LanguageFilesBlank linesComment linesLines of code
PHP314725503,417
SVG624102,044
CSS107668890
JavaScript910898824

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity4.20
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions100
▷ Named functions9595.00%
▷ Anonymous functions55.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
11 PNG files occupy 1.41MB with 0.92MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendors/swap/images/phi_fff600.png64.15KB24.80KB▼ 61.34%
vendors/swap/images/extensionPromoLight_490766.png286.78KB91.97KB▼ 67.93%
vendors/swap/images/extensionPromoDark_7abbf7.png305.13KB95.70KB▼ 68.64%
vendors/swap/images/liquality_151856.png36.33KB15.47KB▼ 57.43%
assets/images/banner-mastercard-visa.png49.40KB14.18KB▼ 71.29%