83% ethereum-wallet

Code Review | Ethereum Wallet

WordPress plugin Ethereum Wallet scored83%from 54 tests.

About plugin

  • Plugin page: ethereum-wallet
  • Plugin version: 4.10.7
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5.0-6.3.2
  • WordPress version: 6.3.1
  • First release: Sep 22, 2018
  • Latest release: Oct 19, 2023
  • Number of updates: 141
  • Update frequency: every 13.1 days
  • Top authors: ethereumicoio (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

80+ active /13,937 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.04ms] Passed 4 tests

A check of server-side resources used by Ethereum Wallet
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.86 ▼1.56
Dashboard /wp-admin3.31 ▲0.0044.36 ▼5.23
Posts /wp-admin/edit.php3.36 ▲0.0047.53 ▲0.95
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.23 ▼9.84
Media Library /wp-admin/upload.php3.23 ▲0.0036.95 ▼3.53

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 1,834 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Ethereum Wallet
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.39 ▼0.021.88 ▲0.3644.66 ▲1.66
Dashboard /wp-admin2,198 ▲215.58 ▲0.0387.87 ▲4.8136.92 ▼4.41
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0138.59 ▲5.4635.66 ▼0.56
Add New Post /wp-admin/post-new.php1,526 ▼222.99 ▲0.21649.79 ▼17.6154.47 ▼5.72
Media Library /wp-admin/upload.php1,400 ▼04.08 ▼0.2399.17 ▼11.6144.85 ▼4.80

Uninstaller [IO: ▲0.00MB] [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
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 603× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Ethereumico\\EthereumWallet\\Dependencies\\phpseclib3\\Crypt\\EC\\Curves\\secp256r1' not found in wp-content/plugins/ethereum-wallet/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Curves/nistp256.php:17
    • > PHP Fatal error
      Uncaught Error: Interface 'Ethereumico\\EthereumWallet\\Dependencies\\GuzzleHttp\\Handler\\CurlFactoryInterface' not found in wp-content/plugins/ethereum-wallet/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Ethereumico\\EthereumWallet\\Dependencies\\BitWasp\\Bitcoin\\Serializable' not found in wp-content/plugins/ethereum-wallet/vendor/olegabr/bitcoin/src/Block/BlockHeader.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Ethereumico\\EthereumWallet\\Dependencies\\phpseclib3\\Math\\BigInteger\\Engines\\Engine' not found in wp-content/plugins/ethereum-wallet/vendor/phpseclib/phpseclib/phpseclib/Math/BigInteger/Engines/GMP.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'Ethereumico\\EthereumWallet\\Dependencies\\Web3\\Methods\\EthMethod' not found in wp-content/plugins/ethereum-wallet/vendor/olegabr/web3.php/src/Methods/Eth/GetUncleByBlockNumberAndIndex.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Ethereumico\\EthereumWallet\\Dependencies\\phpseclib3\\Crypt\\EC\\BaseCurves\\Prime' not found in wp-content/plugins/ethereum-wallet/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Curves/secp224r1.php:19
    • > PHP Fatal error
      Uncaught Error: Interface 'Ethereumico\\EthereumWallet\\Dependencies\\BitWasp\\Bitcoin\\Script\\Interpreter\\InterpreterInterface' not found in wp-content/plugins/ethereum-wallet/vendor/olegabr/bitcoin/src/Script/Interpreter/Interpreter.php:24
    • > PHP Fatal error
      Uncaught Error: Interface 'Ethereumico\\EthereumWallet\\Dependencies\\Mdanter\\Ecc\\Crypto\\Signature\\SignatureInterface' not found in wp-content/plugins/ethereum-wallet/vendor/mdanter/ecc/src/Crypto/Signature/Signature.php:32
    • > PHP Fatal error
      Uncaught Error: Class 'Ethereumico\\EthereumWallet\\Dependencies\\Web3\\Methods\\EthMethod' not found in wp-content/plugins/ethereum-wallet/vendor/olegabr/web3.php/src/Methods/Shh/NewFilter.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Ethereumico\\EthereumWallet\\Dependencies\\FG\\ASN1\\ASNObject' not found in wp-content/plugins/ethereum-wallet/vendor/fgrosse/phpasn1/lib/ASN1/UnknownObject.php:13

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

ethereum-wallet/ethereum-wallet.php 92% from 13 tests

The main PHP script in "Ethereum Wallet" version 4.10.7 is automatically included on every request by WordPress
You should first fix the following items:
  • Requires at least: Required version must match the one declared in readme.txt ("3.7" instead of "5.5.0")

Code Analysis 95% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected120,263 lines of code in 1,778 files:
LanguageFilesBlank linesComment linesLines of code
PHP1,28212,40770,906114,008
JSON1003,579
PO File37218941,958
SVG47000470
JavaScript63463197
XML23035
CSS130013
Bourne Shell1203

PHP code 0% from 2 tests

An overview of cyclomatic complexity and code structure
The following items need your attention
  • Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,088)
  • Cyclomatic complexity of methods has to be reduced to less than 100 (currently 204)
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity13.92
▷ Minimum class complexity1.00
▷ Maximum class complexity3,088.00
Average method complexity3.27
▷ Minimum method complexity1.00
▷ Maximum method complexity204.00
Code structure
Namespaces188
Interfaces106
Traits7
Classes1,044
▷ Abstract classes24723.66%
▷ Concrete classes79776.34%
▷ Final classes506.27%
Methods6,876
▷ Static methods1,19617.39%
▷ Public methods5,58981.28%
▷ Protected methods4536.59%
▷ Private methods83412.13%
Functions586
▷ Named functions30552.05%
▷ Anonymous functions28147.95%
Constants901
▷ Global constants10711.88%
▷ Class constants79488.12%
▷ Public constants78398.61%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/freemius/wordpress-sdk/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
vendor/freemius/wordpress-sdk/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%