Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.55MB] [CPU: ▼3.65ms] Passed 4 tests
This is a short check of server-side resources used by Web3 Coin Gate
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.08 ▲0.62 | 44.31 ▲0.46 |
Dashboard /wp-admin | 3.91 ▲0.60 | 47.73 ▼4.11 |
Posts /wp-admin/edit.php | 3.96 ▲0.60 | 50.68 ▲1.49 |
Add New Post /wp-admin/post-new.php | 6.44 ▲0.55 | 86.08 ▼12.42 |
Media Library /wp-admin/upload.php | 3.67 ▲0.44 | 38.76 ▲5.88 |
Freemius Debug [v.2.5.3] /wp-admin/admin.php?page=freemius | 4.04 | 35.65 |
Server storage [IO: ▲12.27MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 238 new files
Database: no new tables, 10 new options
New WordPress options |
---|
can_compress_scripts |
fs_debug_mode |
fs_active_plugins |
fs_accounts |
db_upgraded |
fs_gdpr |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Web3 Coin Gate
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,157 ▲422 | 37.23 ▲22.68 | 117.87 ▲115.82 | 33.50 ▼11.92 |
Dashboard /wp-admin | 2,240 ▲52 | 5.84 ▲0.94 | 96.62 ▼12.77 | 41.32 ▼7.27 |
Posts /wp-admin/edit.php | 2,123 ▲31 | 2.01 ▼0.05 | 41.93 ▼3.08 | 38.86 ▲4.43 |
Add New Post /wp-admin/post-new.php | 1,545 ▲22 | 23.02 ▼0.24 | 566.30 ▼68.64 | 36.32 ▼14.05 |
Media Library /wp-admin/upload.php | 1,416 ▲25 | 4.28 ▲0.02 | 99.67 ▲1.93 | 45.79 ▲2.89 |
Freemius Debug [v.2.5.3] /wp-admin/admin.php?page=freemius | 1,081 | 1.73 | 25.29 | 27.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/web3-coin-gate/freemius/includes/class-freemius.php+8772
Undefined property: stdClass::$plugins
- The uninstall procedure has failed, leaving 10 options in the database
- fs_active_plugins
- widget_recent-comments
- fs_accounts
- fs_gdpr
- db_upgraded
- fs_debug_mode
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 5× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/web3-coin-gate/includes/class-web3-coin-gate-shortcode.php
- > /wp-content/plugins/web3-coin-gate/includes/class-web3-coin-gate-frontend.php
- > /wp-content/plugins/web3-coin-gate/includes/class-web3-coin-gate-admin.php
- > /wp-content/plugins/web3-coin-gate/includes/class-web3-coin-gate-settings.php
- > /wp-content/plugins/web3-coin-gate/web3-coin-gate.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/web3-coin-gate/includes/rest-api/rest.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function register_rest_route() in wp-content/plugins/web3-coin-gate/includes/rest-api/routes/class-web3-coin-gate-verification.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: nft, web3, verification, blockchain
web3-coin-gate/web3-coin-gate.php 92% from 13 tests
The entry point to "Web3 Coin Gate" version 1.0.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected140,389 lines of code in 181 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 11 | 0 | 0 | 84,091 |
PHP | 139 | 8,198 | 17,595 | 33,942 |
JavaScript | 12 | 3,634 | 2,533 | 22,274 |
Sass | 2 | 16 | 3 | 58 |
CSS | 15 | 0 | 8 | 15 |
XML | 2 | 0 | 0 | 9 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
These items need your attention
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,089)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 78.84 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,089.00 |
Average method complexity | 4.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 58 | |
▷ Abstract classes | 2 | 3.45% |
▷ Concrete classes | 56 | 96.55% |
▷ Final classes | 1 | 1.79% |
Methods | 1,308 | |
▷ Static methods | 211 | 16.13% |
▷ Public methods | 924 | 70.64% |
▷ Protected methods | 17 | 1.30% |
▷ Private methods | 367 | 28.06% |
Functions | 106 | |
▷ Named functions | 97 | 91.51% |
▷ Anonymous functions | 9 | 8.49% |
Constants | 148 | |
▷ Global constants | 101 | 68.24% |
▷ Class constants | 47 | 31.76% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.11MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-1544x500.png | 63.42KB | 24.33KB | ▼ 61.64% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
assets/icon-256x256.png | 20.54KB | 9.90KB | ▼ 51.81% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/web3-coin-gate.png | 9.16KB | 5.26KB | ▼ 42.58% |