Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼0.08MB] [CPU: ▼5.00ms] Passed 4 tests
This is a short check of server-side resources used by Web3devs Access by NFT Plugin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 41.18 ▼3.02 |
Dashboard /wp-admin | 3.35 ▲0.00 | 62.63 ▼4.68 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 54.52 ▲6.51 |
Add New Post /wp-admin/post-new.php | 5.49 ▼0.40 | 77.70 ▼18.80 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 50.04 ▲11.16 |
Access by NFT /wp-admin/admin.php?page=web3devs-abnft | 3.26 | 34.13 |
Settings /wp-admin/admin.php?page=web3devs-abnft-settings | 3.29 | 35.46 |
Server storage [IO: ▲3.48MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Web3devs Access by NFT Plugin
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲45 | 14.34 ▼0.32 | 1.65 ▼0.28 | 44.91 ▼1.96 |
Dashboard /wp-admin | 2,222 ▲48 | 5.62 ▼0.02 | 91.45 ▲1.14 | 40.83 ▼1.90 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 1.97 ▼0.04 | 39.30 ▲2.34 | 36.99 ▲1.22 |
Add New Post /wp-admin/post-new.php | 6,257 ▲4,731 | 25.88 ▲2.46 | 925.84 ▲245.23 | 70.13 ▲11.49 |
Media Library /wp-admin/upload.php | 1,430 ▲33 | 4.33 ▲0.13 | 99.55 ▼3.79 | 44.17 ▼2.83 |
Access by NFT /wp-admin/admin.php?page=web3devs-abnft | 834 | 1.99 | 28.61 | 27.37 |
Settings /wp-admin/admin.php?page=web3devs-abnft-settings | 1,072 | 2.13 | 23.48 | 25.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=web3devs-abnft-settings
- > Warning in wp-admin/includes/template.php+1771
call_user_func() expects parameter 1 to be a valid callback, class 'Web3devs_ABNFT_Admin' does not have a method 'web3devs_abnft_display_api_key'
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 take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/access-by-nft/admin/partials/web3devs-abnft-admin-display.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Undefined variable: coins in wp-content/plugins/access-by-nft/admin/partials/web3devs-abnft-admin-settings-display.php on line 38
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/access-by-nft/admin/partials/web3devs-abnft-admin-settings-display.php:73
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were 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:
- Requires php: Invalid plugin version format
access-by-nft/web3devs-abnft.php 85% from 13 tests
"Web3devs Access by NFT Plugin" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("access-by-nft.php" instead of "web3devs-abnft.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 plugin940 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 197 | 563 | 839 |
JavaScript | 5 | 6 | 67 | 43 |
JSON | 2 | 0 | 0 | 40 |
CSS | 3 | 1 | 9 | 9 |
Markdown | 1 | 5 | 0 | 8 |
HTML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 9.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 58 | |
▷ Static methods | 2 | 3.45% |
▷ Public methods | 40 | 68.97% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 18 | 31.03% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 compressed PNG files occupy 0.01MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/js/near-component/build/logo192.png | 5.22KB | 5.57KB | 0.00% |
public/js/near-component/build/logo512.png | 9.44KB | 10.35KB | 0.00% |