Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▲1.19ms] Passed 4 tests
An overview of server-side resources used by NFT Marketplace and Loyalty Rewards
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.13 | 42.85 ▲8.60 |
Dashboard /wp-admin | 3.43 ▲0.13 | 50.23 ▼2.22 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 53.29 ▲5.65 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.15 | 93.11 ▼2.75 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 39.05 ▲4.08 |
Server storage [IO: ▲4.85MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 85 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
monft_profile_page_id |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
monft_marketplace_page_id |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for NFT Marketplace and Loyalty Rewards
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲76 | 14.35 ▲0.03 | 1.94 ▲0.05 | 31.16 ▼12.99 |
Dashboard /wp-admin | 2,221 ▲41 | 5.93 ▲0.25 | 87.86 ▼3.69 | 82.04 ▲41.73 |
Posts /wp-admin/edit.php | 2,120 ▲17 | 2.16 ▲0.21 | 35.40 ▼5.17 | 35.72 ▼2.99 |
Add New Post /wp-admin/post-new.php | 1,701 ▲175 | 22.47 ▼1.16 | 675.08 ▼28.69 | 69.39 ▲12.52 |
Media Library /wp-admin/upload.php | 1,420 ▲20 | 4.25 ▲0.06 | 107.07 ▼6.02 | 85.97 ▲38.85 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 8 options
- monft_marketplace_page_id
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- monft_profile_page_id
- widget_recent-posts
- can_compress_scripts
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 everything seems fine, this is not an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% 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
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (NFT Marketplace Configuration), #2 (Import NFT Collection), #3 (Minting NFTs), #4 (Listing NFTs), #5 (Buying NFTs), #6 (FAQs)
nft-marketplace/miniorange-nft-marketplace-settings.php 92% from 13 tests
The primary PHP file in "NFT Marketplace and Loyalty Rewards" version 3.0.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("nft-marketplace.php" instead of "miniorange-nft-marketplace-settings.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected4,203 lines of code in 47 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 457 | 1,235 | 3,742 |
JSON | 1 | 0 | 0 | 422 |
SVG | 6 | 0 | 0 | 19 |
JavaScript | 9 | 3 | 53 | 15 |
CSS | 5 | 0 | 6 | 5 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 18.18 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 68.00 |
Average method complexity | 3.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 64.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 22 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 131 | |
▷ Static methods | 3 | 2.29% |
▷ Public methods | 126 | 96.18% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 3.82% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 38 | |
▷ Global constants | 3 | 7.89% |
▷ Class constants | 35 | 92.11% |
▷ Public constants | 35 | 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
9 PNG files occupy 0.11MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
classes/resources/images/support3.png | 2.49KB | 2.11KB | ▼ 15.28% |
classes/resources/images/metamask.png | 10.00KB | 10.42KB | 0.00% |
classes/resources/images/miniorange.png | 0.44KB | 0.35KB | ▼ 18.61% |
classes/resources/images/add-nft-details.png | 4.45KB | 2.37KB | ▼ 46.62% |
classes/resources/images/flags16.png | 61.80KB | 19.90KB | ▼ 67.79% |