Benchmarks
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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.02 | 54.37 ▲5.32 |
Dashboard /wp-admin | 3.43 ▲0.03 | 33.59 ▲0.62 |
Posts /wp-admin/edit.php | 3.66 ▲0.02 | 38.99 ▲3.98 |
Add New Post /wp-admin/post-new.php | 6.90 ▼0.07 | 93.37 ▼1,195.10 |
Media Library /wp-admin/upload.php | 3.31 ▲0.02 | 27.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,853 ▲99 | 21.94 ▲5.90 | 5.70 ▼0.14 | 2.89 ▲0.24 |
Dashboard /wp-admin | 2,917 ▲37 | 6.37 ▼0.21 | 130.05 ▼15.46 | 155.66 ▼1.66 |
Posts /wp-admin/edit.php | 2,708 ▲20 | 3.56 ▲0.12 | 59.83 ▼2.35 | 138.63 ▲0.14 |
Add New Post /wp-admin/post-new.php | 1,771 ▲54 | 22.85 ▲1.22 | 409.20 ▼44.66 | 156.77 ▲2.84 |
Media Library /wp-admin/upload.php | 1,721 ▲26 | 5.75 ▲0.00 | 137.17 ▼6.88 | 186.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
- > PHP Fatal error
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
Optimizations
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 45 | 1,270 | 622 | 6,847 |
JSON | 6 | 0 | 0 | 491 |
Markdown | 6 | 189 | 0 | 471 |
JavaScript | 8 | 86 | 308 | 213 |
SVG | 1 | 0 | 1 | 60 |
Bourne Shell | 2 | 10 | 4 | 37 |
PO File | 1 | 10 | 2 | 30 |
XML | 1 | 0 | 0 | 21 |
make | 1 | 3 | 0 | 10 |
Python | 1 | 5 | 0 | 9 |
Ruby | 1 | 3 | 3 | 6 |
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 code | 0.27 |
Average class complexity | 21.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 87.00 |
Average method complexity | 2.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 12 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 36 | |
▷ Abstract classes | 2 | 5.56% |
▷ Concrete classes | 34 | 94.44% |
▷ Final classes | 1 | 2.94% |
Methods | 494 | |
▷ Static methods | 48 | 9.72% |
▷ Public methods | 468 | 94.74% |
▷ Protected methods | 3 | 0.61% |
▷ Private methods | 23 | 4.66% |
Functions | 39 | |
▷ Named functions | 25 | 64.10% |
▷ Anonymous functions | 14 | 35.90% |
Constants | 14 | |
▷ Global constants | 5 | 35.71% |
▷ Class constants | 9 | 64.29% |
▷ Public constants | 6 | 66.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/walletconnect-logo.png | 11.14KB | 4.31KB | ▼ 61.31% |
images/whatsthis.png | 23.08KB | 9.98KB | ▼ 56.76% |
images/torus-logo.png | 55.05KB | 20.52KB | ▼ 62.72% |