10% web3-login

Code Review | Web3 Login

WordPress plugin Web3 Login scored 10% from 54 tests.

About plugin

  • Plugin page: web3-login
  • Plugin version: 0.0.1
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.9.1
  • WordPress version: 5.9.2
  • First release: Mar 3, 2022
  • Latest release: Mar 4, 2022
  • Number of updates: 10
  • Update frequency: every 0.1 days
  • Top authors: airdropmytoken (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 224 total downloads


Plugin footprint 75% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/web3-login/web3-login.php+522
    The (real) cast is deprecated, use (float) instead

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

Analyzing server-side resources used by Web3 Login
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0254.37 ▲5.32
Dashboard /wp-admin3.43 ▲0.0333.59 ▲0.62
Posts /wp-admin/edit.php3.66 ▲0.0238.99 ▲3.98
Add New Post /wp-admin/post-new.php6.90 ▼0.0793.37 ▼1,195.10
Media Library /wp-admin/upload.php3.31 ▲0.0227.70 ▲1.60

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 63 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Web3 Login
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,853 ▲9921.94 ▲5.905.70 ▼0.142.89 ▲0.24
Dashboard /wp-admin2,917 ▲376.37 ▼0.21130.05 ▼15.46155.66 ▼1.66
Posts /wp-admin/edit.php2,708 ▲203.56 ▲0.1259.83 ▼2.35138.63 ▲0.14
Add New Post /wp-admin/post-new.php1,771 ▲5422.85 ▲1.22409.20 ▼44.66156.77 ▲2.84
Media Library /wp-admin/upload.php1,721 ▲265.75 ▲0.00137.17 ▼6.88186.71 ▼0.66

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 50% 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)
Good news, no errors were detected

SRP 0% 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
Please fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/web3-login/.web3scripts/node_install.php
  • 21× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Exception: Extension bcmath not loaded in wp-content/plugins/web3-login/elliptic-php/vendor/simplito/bigint-wrapper-php/lib/BigInteger.php:236
    • > PHP Fatal error
      Uncaught Error: Class 'BI\\BigInteger' not found in wp-content/plugins/web3-login/elliptic-php/vendor/simplito/bigint-wrapper-php/test/test.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/web3-login/elliptic-php/tests/ECDSATest.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/web3-login/elliptic-php/tests/ECDHTest.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/web3-login/elliptic-php/tests/CurveTest.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/web3-login/elliptic-php/tests/ED25519Test.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Elliptic\\Curve\\PresetCurve' not found in wp-content/plugins/web3-login/elliptic-php/lib/Curves.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'Elliptic\\Curve\\BaseCurve\\Point' not found in wp-content/plugins/web3-login/elliptic-php/lib/Curve/ShortCurve/JPoint.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Elliptic\\Curve\\BaseCurve' not found in wp-content/plugins/web3-login/elliptic-php/lib/Curve/ShortCurve.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Elliptic\\Curve\\BaseCurve' not found in wp-content/plugins/web3-login/elliptic-php/lib/Curve/MontCurve.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
You can take inspiration from this readme.txt

web3-login/web3-login.php 92% from 13 tests

The principal PHP file in "Web3 Login" v. 0.0.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Git Repository: A Git repository was detected inside this plugin

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
Success! There were no dangerous files found in this plugin8,195 lines of code in 73 files:
LanguageFilesBlank linesComment linesLines of code
Bourne Shell210437
PO File110230

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity21.25
▷ Minimum class complexity1.00
▷ Maximum class complexity87.00
Average method complexity2.43
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
▷ Abstract classes25.56%
▷ Concrete classes3494.44%
▷ Final classes12.94%
▷ Static methods489.72%
▷ Public methods46894.74%
▷ Protected methods30.61%
▷ Private methods234.66%
▷ Named functions2564.10%
▷ Anonymous functions1435.90%
▷ Global constants535.71%
▷ Class constants964.29%
▷ Public constants666.67%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/walletconnect-logo.png11.14KB4.31KB▼ 61.31%
images/whatsthis.png23.08KB9.98KB▼ 56.76%
images/torus-logo.png55.05KB20.52KB▼ 62.72%