Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.49MB] [CPU: ▼3.95ms] Passed 4 tests
Analyzing server-side resources used by RainbowKit Login (Web3 Integration for Sign-In With Ethereum)
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.98 ▲0.52 | 40.85 ▼4.70 |
Dashboard /wp-admin | 3.80 ▲0.46 | 49.54 ▼14.75 |
Posts /wp-admin/edit.php | 3.85 ▲0.49 | 50.59 ▲2.94 |
Add New Post /wp-admin/post-new.php | 6.39 ▲0.50 | 93.64 ▲0.70 |
Media Library /wp-admin/upload.php | 3.72 ▲0.49 | 37.38 ▲6.95 |
Server storage [IO: ▲9.97MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 518 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for RainbowKit Login (Web3 Integration for Sign-In With Ethereum)
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,762 ▼0 | 19.10 ▲4.34 | 1.61 ▼0.10 | 39.75 ▼2.32 |
Dashboard /wp-admin | 2,211 ▲37 | 5.58 ▼0.12 | 90.07 ▼5.27 | 40.18 ▼5.06 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 2.03 ▲0.06 | 39.56 ▲1.21 | 35.91 ▼0.68 |
Add New Post /wp-admin/post-new.php | 6,226 ▲4,700 | 24.72 ▲1.31 | 1,004.34 ▲340.12 | 35.05 ▼24.20 |
Media Library /wp-admin/upload.php | 1,416 ▲16 | 4.27 ▲0.01 | 107.12 ▲9.03 | 41.79 ▲0.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/rainbowkit-login-web3-integration-for-sign-in-with-ethereum/vendor/web3p/web3.php/docker/php/composer-setup.php
- 227× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Test\\TestCase' not found in wp-content/plugins/rainbowkit-login-web3-integration-for-sign-in-with-ethereum/vendor/web3p/web3.php/test/unit/NetTest.php:12
- > PHP Fatal error
Uncaught Error: Class 'Web3\\Methods\\EthMethod' not found in wp-content/plugins/rainbowkit-login-web3-integration-for-sign-in-with-ethereum/vendor/web3p/web3.php/src/Methods/Eth/GetUncleCountByBlockNumber.php:21
- > PHP Fatal error
Uncaught Error: Class 'phpseclib\\Crypt\\Base' not found in wp-content/plugins/rainbowkit-login-web3-integration-for-sign-in-with-ethereum/vendor/phpseclib/phpseclib/phpseclib/Crypt/Blowfish.php:129
- > PHP Fatal error
Uncaught Error: Class 'Web3\\Methods\\EthMethod' not found in wp-content/plugins/rainbowkit-login-web3-integration-for-sign-in-with-ethereum/vendor/web3p/web3.php/src/Methods/Eth/GetBlockByNumber.php:22
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/rainbowkit-login-web3-integration-for-sign-in-with-ethereum/vendor/guzzlehttp/promises/src/Promise.php:10
- > PHP Fatal error
Uncaught Error: Class 'Web3\\Methods\\EthMethod' not found in wp-content/plugins/rainbowkit-login-web3-integration-for-sign-in-with-ethereum/vendor/web3p/web3.php/src/Methods/Eth/GetTransactionByBlockHashAndIndex.php:21
- > PHP Fatal error
require(): Failed opening required 'wp-content/plugins/rainbowkit-login-web3-integration-for-sign-in-with-ethereum/vendor/simplito/elliptic-php/benchmarks/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/rainbowkit-login-web3-integration-for-sign-in-with-ethereum/vendor/simplito/elliptic-php/benchmarks/EllipticBench.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'Test\\TestCase' not found in wp-content/plugins/rainbowkit-login-web3-integration-for-sign-in-with-ethereum/vendor/web3p/web3.php/test/unit/HttpProviderTest.php:11
- > PHP Warning
require(../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/rainbowkit-login-web3-integration-for-sign-in-with-ethereum/vendor/web3p/web3.php/examples/exampleBase.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'phpseclib\\Crypt\\Rijndael' not found in wp-content/plugins/rainbowkit-login-web3-integration-for-sign-in-with-ethereum/vendor/phpseclib/phpseclib/phpseclib/Crypt/AES.php:59
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5, #6, #7, #8 in rainbowkit-login-web3-integration-for-sign-in-with-ethereum/assets to your readme.txt
rainbowkit-login-web3-integration-for-sign-in-with-ethereum/wp-rainbow.php 85% from 13 tests
The main PHP file in "RainbowKit Login (Web3 Integration for Sign-In With Ethereum)" ver. 0.4.4 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("rainbowkit-login-web3-integration-for-sign-in-with-ethereum.php" instead of "wp-rainbow.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected62,033 lines of code in 485 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 370 | 8,872 | 25,469 | 51,183 |
Markdown | 25 | 1,571 | 0 | 4,444 |
CSS | 2 | 25 | 24 | 4,331 |
JSON | 17 | 0 | 0 | 1,763 |
YAML | 7 | 25 | 0 | 130 |
XML | 3 | 6 | 0 | 69 |
JavaScript | 56 | 0 | 0 | 56 |
Solidity | 2 | 9 | 0 | 32 |
Bourne Shell | 1 | 5 | 0 | 10 |
make | 1 | 3 | 0 | 10 |
Dockerfile | 1 | 4 | 0 | 5 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
Please fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 109)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 20.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 634.00 |
Average method complexity | 3.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 109.00 |
Code structure | ||
---|---|---|
Namespaces | 48 | |
Interfaces | 33 | |
Traits | 3 | |
Classes | 300 | |
▷ Abstract classes | 3 | 1.00% |
▷ Concrete classes | 297 | 99.00% |
▷ Final classes | 37 | 12.46% |
Methods | 2,311 | |
▷ Static methods | 291 | 12.59% |
▷ Public methods | 2,152 | 93.12% |
▷ Protected methods | 16 | 0.69% |
▷ Private methods | 143 | 6.19% |
Functions | 384 | |
▷ Named functions | 120 | 31.25% |
▷ Anonymous functions | 264 | 68.75% |
Constants | 276 | |
▷ Global constants | 36 | 13.04% |
▷ Class constants | 240 | 86.96% |
▷ Public constants | 223 | 92.92% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin