Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼10.29ms] Passed 4 tests
This is a short check of server-side resources used by Token / NFT / Blockchain Page Gating
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 34.72 ▼3.80 |
Dashboard /wp-admin | 3.37 ▲0.02 | 46.56 ▼12.44 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 46.32 ▲1.32 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 78.91 ▼19.86 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 31.97 ▼5.04 |
Server storage [IO: ▲7.59MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Token / NFT / Blockchain Page Gating
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,149 ▲403 | 18.30 ▲3.94 | 27.88 ▲26.10 | 38.38 ▼2.41 |
Dashboard /wp-admin | 2,226 ▲41 | 7.34 ▲1.50 | 143.08 ▲39.63 | 75.45 ▲35.20 |
Posts /wp-admin/edit.php | 2,106 ▲17 | 4.63 ▲2.61 | 74.24 ▲34.49 | 35.57 ▲0.44 |
Add New Post /wp-admin/post-new.php | 1,543 ▲20 | 20.72 ▼2.36 | 681.43 ▲34.78 | 43.31 ▼13.83 |
Media Library /wp-admin/upload.php | 1,408 ▲23 | 7.37 ▲3.13 | 129.35 ▲15.03 | 75.17 ▲28.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/litprotocol-wp-lit-gated/wp-lit-gated.php
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant LIT_MENU_PAGE_CONTENT - assumed 'LIT_MENU_PAGE_CONTENT' (this will throw an Error in a future version of PHP) in wp-content/plugins/litprotocol-wp-lit-gated/setup/Setup.php on line 106
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/litprotocol-wp-lit-gated/setup/Setup.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/litprotocol-wp-lit-gated/setup/menu-page.php:7
- > PHP Warning
Use of undefined constant LIT_MENU_SLUG - assumed 'LIT_MENU_SLUG' (this will throw an Error in a future version of PHP) in wp-content/plugins/litprotocol-wp-lit-gated/setup/Setup.php on line 103
- > PHP Warning
Use of undefined constant LIT_ICON - assumed 'LIT_ICON' (this will throw an Error in a future version of PHP) in wp-content/plugins/litprotocol-wp-lit-gated/setup/Setup.php on line 104
- > PHP Warning
Use of undefined constant LIT_MENU_NAME - assumed 'LIT_MENU_NAME' (this will throw an Error in a future version of PHP) in wp-content/plugins/litprotocol-wp-lit-gated/setup/Setup.php on line 102
- > PHP Warning
Use of undefined constant LIT_MENU_GROUP - assumed 'LIT_MENU_GROUP' (this will throw an Error in a future version of PHP) in wp-content/plugins/litprotocol-wp-lit-gated/setup/Setup.php on line 107
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: blockchain, ethereum, access control, dao, nft
litprotocol-wp-lit-gated/wp-lit-gated.php 92% from 13 tests
"Token / NFT / Blockchain Page Gating" version 0.0.5'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: The principal plugin file should be the same as the plugin slug ("litprotocol-wp-lit-gated.php" instead of "wp-lit-gated.php")
Code Analysis Passed 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
Everything looks great! No dangerous files found in this plugin4,205 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 250 | 56 | 2,781 |
PHP | 3 | 338 | 356 | 1,003 |
CSS | 3 | 9 | 12 | 402 |
Markdown | 1 | 12 | 0 | 16 |
Bourne Shell | 1 | 0 | 0 | 3 |
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.22 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 11 | 68.75% |
▷ Anonymous functions | 5 | 31.25% |
Constants | 14 | |
▷ Global constants | 14 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 0.53MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-128x128.png | 12.45KB | 5.32KB | ▼ 57.27% |
assets/favicon-16x16.png | 0.88KB | 0.85KB | ▼ 3.43% |
assets/lit-logo.png | 13.75KB | 5.27KB | ▼ 61.67% |
assets/bg-2.png | 110.60KB | 135.08KB | 0.00% |
assets/icon-256x256.png | 31.88KB | 13.99KB | ▼ 56.12% |