84% wallets

Code Review | Bitcoin and Altcoin Wallets

WordPress plugin Bitcoin and Altcoin Wallets scored84%from 54 tests.

About plugin

  • Plugin page: wallets
  • Plugin version: 6.2.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Jan 5, 2017
  • Latest release: Nov 15, 2023
  • Number of updates: 379
  • Update frequency: every 6.6 days
  • Top authors: dashedslug (100%)

Code review

54 tests

User reviews

26 reviews

Install metrics

300+ active /81,536 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.59MB] [CPU: ▲3.59ms] Passed 4 tests

An overview of server-side resources used by Bitcoin and Altcoin Wallets
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.94 ▲0.4741.84 ▲1.86
Dashboard /wp-admin3.92 ▲0.6257.35 ▲0.02
Posts /wp-admin/edit.php4.02 ▲0.6656.11 ▲12.31
Add New Post /wp-admin/post-new.php6.71 ▲0.8291.17 ▲0.16
Media Library /wp-admin/upload.php3.82 ▲0.5946.47 ▲13.86

Server storage [IO: ▲2.61MB] [DB: ▲0.74MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 184 new files
Database: no new tables, 37 new options
New WordPress options
db_upgraded
wallets_fiat_fixerio_key
wallets_cron_autocancel
wallets_rates_vs
theysaidso_admin_options
wallets_polling_interval
widget_recent-comments
wallets_http_tor_port
wallets_cron_last_run
can_compress_scripts
...

Browser metrics Passed 4 tests

An overview of browser requirements for Bitcoin and Altcoin Wallets
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,706 ▲94414.10 ▼0.415.56 ▲3.9931.32 ▼12.02
Dashboard /wp-admin2,983 ▲8095.26 ▼0.30114.48 ▲17.4154.24 ▲12.16
Posts /wp-admin/edit.php2,397 ▲2972.33 ▲0.3649.84 ▲13.1838.84 ▲6.07
Add New Post /wp-admin/post-new.php1,681 ▲14223.20 ▲0.08705.91 ▲28.8260.55 ▼2.67
Media Library /wp-admin/upload.php1,734 ▲3344.61 ▲0.44110.74 ▲1.9345.51 ▲1.64

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin does not fully uninstall, leaving 11 options in the database
    • wallets_cron_last_peak_mem
    • widget_theysaidso_widget
    • wallets_cron_last_elapsed_time
    • wallets_cron_last_run
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • wallets_migration_state
    • wallets_cron_last_mem_delta
    • widget_recent-comments
    • ...

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wallets/uninstall.php on line 6
    • > PHP Warning
      require_once(ABSPATH/wp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/wallets/uninstall.php on line 6
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATH/wp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/wallets/uninstall.php on line 6
    • > PHP Fatal error
      Uncaught Error: Class 'Parsedown' not found in wp-content/plugins/wallets/third-party/ParsedownExtra.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function DSWallets\\add_action() in wp-content/plugins/wallets/apis/suggest.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
The official readme.txt might help

wallets/wallets.php 92% from 13 tests

The main file in "Bitcoin and Altcoin Wallets" v. 6.2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Requires PHP: Required version does not match the one declared in readme.txt ("5.6" instead of "7.2")

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 detected35,253 lines of code in 152 files:
LanguageFilesBlank linesComment linesLines of code
PHP1007,0405,54931,149
Markdown172,15103,434
JavaScript283168411
CSS65618257
SVG1002

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity66.43
▷ Minimum class complexity1.00
▷ Maximum class complexity314.00
Average method complexity5.59
▷ Minimum method complexity1.00
▷ Maximum method complexity82.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes22
▷ Abstract classes418.18%
▷ Concrete classes1881.82%
▷ Final classes00.00%
Methods295
▷ Static methods8428.47%
▷ Public methods20067.80%
▷ Protected methods7324.75%
▷ Private methods227.46%
Functions390
▷ Named functions17444.62%
▷ Anonymous functions21655.38%
Constants73
▷ Global constants56.85%
▷ Class constants6893.15%
▷ Public constants68100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/sprites/reload-icon.png0.78KB1.15KB0.00%
assets/sprites/wallets-32x32.png1.47KB1.41KB▼ 4.06%