Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼6.03ms] Passed 4 tests
Server-side resources used by Web3 - Crypto wallet Login & NFT token gating
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 45.03 ▲2.75 |
Dashboard /wp-admin | 3.31 ▼0.04 | 50.12 ▼15.78 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.80 ▼2.06 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 89.33 ▼9.02 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.61 ▲2.82 |
Server storage [IO: ▲6.11MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 140 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Web3 - Crypto wallet Login & NFT token gating
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.23 ▼0.12 | 1.73 ▼0.09 | 44.19 ▲0.61 |
Dashboard /wp-admin | 2,195 ▲18 | 5.59 ▲0.04 | 95.71 ▲5.09 | 39.76 ▼0.98 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.98 ▼0.06 | 40.24 ▲1.21 | 42.67 ▲3.17 |
Add New Post /wp-admin/post-new.php | 1,526 ▼8 | 23.17 ▲4.79 | 640.03 ▼12.75 | 57.08 ▼9.46 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.18 ▼0.05 | 96.26 ▼11.33 | 48.12 ▲1.66 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
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 issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
web3-authentication/miniorange-web3-login-settings.php 85% from 13 tests
The main file in "Web3 - Crypto wallet Login & NFT token gating" v. 3.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("web3-authentication.php" instead of "miniorange-web3-login-settings.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 142 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin8,847 lines of code in 99 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 71 | 1,661 | 1,796 | 8,731 |
JavaScript | 14 | 13 | 156 | 47 |
TypeScript | 2 | 0 | 0 | 32 |
SVG | 6 | 0 | 0 | 31 |
CSS | 6 | 0 | 6 | 6 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 22.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 87.00 |
Average method complexity | 2.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 23 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 44 | |
▷ Abstract classes | 2 | 4.55% |
▷ Concrete classes | 42 | 95.45% |
▷ Final classes | 1 | 2.38% |
Methods | 489 | |
▷ Static methods | 47 | 9.61% |
▷ Public methods | 461 | 94.27% |
▷ Protected methods | 3 | 0.61% |
▷ Private methods | 25 | 5.11% |
Functions | 20 | |
▷ Named functions | 12 | 60.00% |
▷ Anonymous functions | 8 | 40.00% |
Constants | 36 | |
▷ Global constants | 5 | 13.89% |
▷ Class constants | 31 | 86.11% |
▷ Public constants | 25 | 80.65% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
16 PNG files occupy 0.45MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
classes/common/Web3/resources/images/cryptowallet_images/metamask.png | 21.22KB | 10.80KB | ▼ 49.10% |
resources/images/miniorange.png | 0.44KB | 0.35KB | ▼ 18.61% |
classes/common/Web3/resources/images/woocommerce.png | 46.09KB | 21.00KB | ▼ 54.44% |
classes/common/Web3/resources/images/paypal.png | 7.45KB | 7.20KB | ▼ 3.36% |
classes/common/Web3/resources/images/buddyboss.png | 67.57KB | 29.31KB | ▼ 56.62% |