84% wallet-login

Code Review | Wallet Login

WordPress plugin Wallet Login scored84%from 54 tests.

About plugin

  • Plugin page: wallet-login
  • Plugin version: 1.5.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.2.2
  • WordPress version: 6.3.1
  • First release: Jul 20, 2022
  • Latest release: May 25, 2023
  • Number of updates: 5
  • Update frequency: every 62.0 days
  • Top authors: zinger252 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /545 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.04MB] [CPU: ▼6.99ms] Passed 4 tests

Server-side resources used by Wallet Login
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.95 ▼0.5121.02 ▼15.93
Dashboard /wp-admin3.43 ▲0.1248.95 ▼2.18
Posts /wp-admin/edit.php3.54 ▲0.1844.52 ▼5.46
Add New Post /wp-admin/post-new.php6.01 ▲0.1285.23 ▼4.37
Media Library /wp-admin/upload.php3.35 ▲0.1235.92 ▲0.48

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Wallet Login
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,017 ▲28225.49 ▲10.85120.54 ▲118.8329.18 ▼15.82
Dashboard /wp-admin2,222 ▲344.86 ▼0.05110.23 ▼12.5241.48 ▼3.73
Posts /wp-admin/edit.php2,105 ▲162.01 ▼0.0333.12 ▼6.8934.26 ▼6.58
Add New Post /wp-admin/post-new.php1,546 ▲422.97 ▲4.80569.19 ▼75.7045.17 ▼5.61
Media Library /wp-admin/upload.php1,401 ▲104.18 ▼0.1496.42 ▼4.5543.70 ▲0.98

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Please fix the following items
  • 19× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Elliptic\\Curve\\BaseCurve\\Point' not found in wp-content/plugins/wallet-login/lib/Elliptic/Curve/MontCurve/Point.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wallet-login/main.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wallet-login/admin/admin.php:11
    • > PHP Fatal error
      Uncaught Exception: Cannot use BigInteger. Neither gmp nor bcmath module is loaded in wp-content/plugins/wallet-login/lib/Elliptic/BigInteger.php:14
    • > PHP Fatal error
      Uncaught Exception: Cannot use BigInteger. Neither gmp nor bcmath module is loaded in wp-content/plugins/wallet-login/lib/Elliptic/BigInteger.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Elliptic\\Curve\\BaseCurve\\Point' not found in wp-content/plugins/wallet-login/lib/Elliptic/Curve/EdwardsCurve/Point.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Elliptic\\Curve\\BaseCurve\\Point' not found in wp-content/plugins/wallet-login/lib/Elliptic/Curve/MontCurve/Point.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wallet-login/public/hooks.php:8
    • > PHP Fatal error
      Uncaught Exception: Cannot use BigInteger. Neither gmp nor bcmath module is loaded in wp-content/plugins/wallet-login/lib/Elliptic/BigInteger.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Elliptic\\Curve\\BaseCurve\\Point' not found in wp-content/plugins/wallet-login/lib/Elliptic/Curve/ShortCurve/Point.php:8

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 Passed 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
9 plugin tags: walletconnect, login, web3, torus, crypto...

wallet-login/main.php 85% from 13 tests

"Wallet Login" version 1.5.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wallet-login.php" instead of "main.php")
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin5,692 lines of code in 35 files:
LanguageFilesBlank linesComment linesLines of code
PHP261,0635495,387
JavaScript947186305

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity27.20
▷ Minimum class complexity1.00
▷ Maximum class complexity87.00
Average method complexity2.56
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces10
Interfaces0
Traits0
Classes25
▷ Abstract classes28.00%
▷ Concrete classes2392.00%
▷ Final classes14.35%
Methods400
▷ Static methods5012.50%
▷ Public methods37593.75%
▷ Protected methods51.25%
▷ Private methods205.00%
Functions19
▷ Named functions1263.16%
▷ Anonymous functions736.84%
Constants7
▷ Global constants457.14%
▷ Class constants342.86%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected