Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- Install procedure had errors
- > User deprecated in wp-includes/functions.php+5453
Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
Server metrics [RAM: ▼0.70MB] [CPU: ▼32.95ms] Passed 4 tests
An overview of server-side resources used by MintNFT Plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.26 | 46.59 ▲5.71 |
Dashboard /wp-admin | 3.24 ▼0.06 | 22.78 ▼23.90 |
Posts /wp-admin/edit.php | 3.24 ▼0.12 | 29.55 ▼16.63 |
Add New Post /wp-admin/post-new.php | 3.24 ▼2.65 | 23.83 ▼84.57 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 25.08 ▼6.69 |
Meta Generation /wp-admin/admin.php?page=meta-generation | 3.24 | 24.93 |
Contract Deployment /wp-admin/admin.php?page=contractdeployment | 3.24 | 22.74 |
Mint NFT /wp-admin/admin.php?page=mintnft | 3.24 | 24.01 |
Activation /wp-admin/admin.php?page=activation | 3.24 | 24.63 |
Server storage [IO: ▲6.38MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 74 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
MintNFT_option_name |
theysaidso_admin_options |
Browser metrics Passed 4 tests
MintNFT Plugin: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,035 ▲278 | 21.22 ▲6.84 | 2.11 ▲0.11 | 40.33 ▼5.77 |
Dashboard /wp-admin | 2,402 ▲214 | 12.12 ▲7.24 | 335.46 ▲230.18 | 59.87 ▲17.24 |
Posts /wp-admin/edit.php | 2,333 ▲244 | 8.70 ▲6.73 | 115.01 ▲76.23 | 49.31 ▲15.60 |
Add New Post /wp-admin/post-new.php | 1,730 ▲216 | 24.77 ▲7.26 | 719.16 ▲45.96 | 42.07 ▼12.10 |
Media Library /wp-admin/upload.php | 1,466 ▲78 | 9.64 ▲5.52 | 141.90 ▲26.66 | 62.18 ▲12.46 |
Meta Generation /wp-admin/admin.php?page=meta-generation | 1,155 | 19.86 | 471.80 | 45.57 |
Contract Deployment /wp-admin/admin.php?page=contractdeployment | 842 | 7.54 | 70.20 | 18.87 |
Mint NFT /wp-admin/admin.php?page=mintnft | 1,324 | 8.79 | 97.60 | 90.82 |
Activation /wp-admin/admin.php?page=activation | 1,463 | 9.00 | 106.25 | 97.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin cannot be uninstalled
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=activation
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/mintnft/setup/plugin_abi.php
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/mintnft/templates/minting_page.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/mintnft/meta_generation.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/mintnft/contract_deployment.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/mintnft/activation.php:1
- > PHP Fatal error
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 87% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: Please add an image for screenshot #1 (2. Get activation key.)
- Screenshots: Please describe screenshot #2 in mintnft/assets to your readme.txt
mintnft/MintNFT.php 85% from 13 tests
The entry point to "MintNFT Plugin" version 1.1.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("mintnft.php" instead of "MintNFT.php")
- Text Domain: Please use dashes and lowercase characters for text domains
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected24,944 lines of code in 45 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 11 | 4,727 | 98 | 11,698 |
JSON | 2 | 0 | 0 | 4,634 |
PHP | 7 | 804 | 273 | 3,297 |
SVG | 5 | 0 | 1 | 2,788 |
JavaScript | 15 | 708 | 418 | 1,999 |
PO File | 5 | 140 | 155 | 528 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 40 | |
▷ Named functions | 40 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 0% from 2 tests
Image compression 0% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.63MB with 0.36MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/us.png | 2.23KB | 1.14KB | ▼ 48.91% |
setup/logo.png | 3.21KB | 3.08KB | ▼ 4.02% |
assets/img/icon.png | 3.23KB | 0.50KB | ▼ 84.35% |
assets/img/india.png | 1.51KB | 0.73KB | ▼ 51.62% |
(invalid) setup/nft-bg.png | 634.31KB | 0.00KB | ▼ 100.00% |