Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲2.56MB] [CPU: ▲16.35ms] Passed 4 tests
Analyzing server-side resources used by Enefti NFT Marketplace Core lite
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.00 ▲2.54 | 59.14 ▲23.24 |
Dashboard /wp-admin | 5.87 ▲2.56 | 62.87 ▲14.00 |
Posts /wp-admin/edit.php | 5.95 ▲2.59 | 70.42 ▲26.13 |
Add New Post /wp-admin/post-new.php | 8.49 ▲2.60 | 101.89 ▲5.80 |
Media Library /wp-admin/upload.php | 5.79 ▲2.55 | 56.97 ▲22.35 |
Categories /wp-admin/edit-tags.php?taxonomy=nft-listing-category&post_type=nft-listing | 5.79 | 55.96 |
Currencies /wp-admin/edit-tags.php?taxonomy=nft-listing-currency&post_type=nft-listing | 5.79 | 50.22 |
NFT Listings /wp-admin/edit.php?post_type=nft-listing | 5.83 | 51.29 |
Blockchains /wp-admin/edit-tags.php?taxonomy=nft_listing_blockchains&post_type=nft-listing | 5.79 | 47.27 |
Add NFT /wp-admin/post-new.php?post_type=nft-listing | 6.34 | 67.91 |
Collections /wp-admin/edit-tags.php?taxonomy=nft-listing-collection&post_type=nft-listing | 5.79 | 49.02 |
Server storage [IO: ▲7.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 155 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
nft-marketplace-core-version |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Enefti NFT Marketplace Core lite
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,245 ▲510 | 15.29 ▲0.89 | 31.12 ▲28.88 | 43.52 ▲0.27 |
Dashboard /wp-admin | 2,267 ▲79 | 5.91 ▲0.02 | 110.99 ▼4.75 | 83.53 ▲36.30 |
Posts /wp-admin/edit.php | 2,168 ▲79 | 2.25 ▲0.25 | 39.55 ▲4.75 | 36.60 ▲1.50 |
Add New Post /wp-admin/post-new.php | 1,575 ▲42 | 23.23 ▲0.03 | 762.41 ▲97.43 | 36.83 ▼12.70 |
Media Library /wp-admin/upload.php | 1,452 ▲61 | 4.30 ▲0.09 | 94.33 ▼7.07 | 79.37 ▲35.23 |
Categories /wp-admin/edit-tags.php?taxonomy=nft-listing-category&post_type=nft-listing | 1,339 | 2.39 | 31.52 | 29.12 |
Currencies /wp-admin/edit-tags.php?taxonomy=nft-listing-currency&post_type=nft-listing | 1,382 | 2.27 | 31.34 | 30.57 |
NFT Listings /wp-admin/edit.php?post_type=nft-listing | 1,169 | 2.20 | 31.89 | 32.19 |
Blockchains /wp-admin/edit-tags.php?taxonomy=nft_listing_blockchains&post_type=nft-listing | 1,393 | 2.40 | 31.11 | 29.38 |
Add NFT /wp-admin/post-new.php?post_type=nft-listing | 2,627 | 4.53 | 80.66 | 91.46 |
Collections /wp-admin/edit-tags.php?taxonomy=nft-listing-collection&post_type=nft-listing | 1,336 | 2.27 | 30.33 | 26.12 |
Uninstaller [IO: ▲7.03MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the followingZombie WordPress options detected upon uninstall: 8 options
- Uninstall procedure had uncaught errors
- > Error in wp-content/plugins/enefti-nft-marketplace-core-lite/uninstall.php+117
Uncaught Error: Call to a member function remove_cap() on array in wp-content/plugins/enefti-nft-marketplace-core-lite/uninstall.php:117
Stack trace:
#0 wp-content/plugins/enefti-nft-marketplace-core-lite/uninstall.php(51): nft_marketplace_core_uninstall()
#1 wp-content/plugins/enefti-nft-marketplace-core-lite/uninstall.php(122): nft_marketplace_core_uninstall_multisite()
#2 wp-admin/includes/plugin.php(1245): include_once('/var/www/wordpr...')
#3 wp-admin/includes/plugin.php(960): uninstall_plugin() - The plugin did not uninstall successfully, leaving 155 files (7.03MB) in the plugin directory
- (new file) assets/css/datatables.css
- (new file) LICENSE.txt
- (new file) assets/css/bootstrap-grid.min.css
- (new file) assets/css/fonts/font-awesome/all.min.css
- (new file) assets/css/bootstrap-grid.css.map
- (new file) assets/css/bootstrap-grid.min.css.map
- (new file) assets/css/datatables.min.css
- (new file) assets/css/bootstrap-grid.css
- (new file) .gitignore
- (new file) assets/banner-772x250.png
- ...
- widget_theysaidso_widget
- recovery_mode_email_last_sent
- theysaidso_admin_options
- nft-marketplace-core-version
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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 fix the following items
- 12× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/enefti-nft-marketplace-core-lite/internals/shortcodes/helpers.swiper.nft.php
- > /wp-content/plugins/enefti-nft-marketplace-core-lite/vendor/drlecks/simple-web3-php/Example/example.batch.php
- > /wp-content/plugins/enefti-nft-marketplace-core-lite/vendor/drlecks/simple-web3-php/Example/example.account.php
- > /wp-content/plugins/enefti-nft-marketplace-core-lite/vendor/micropackage/requirements/tests/bootstrap.php
- > /wp-content/plugins/enefti-nft-marketplace-core-lite/internals/shortcodes/listings-category/listings-category.php
- > /wp-content/plugins/enefti-nft-marketplace-core-lite/vendor/drlecks/simple-web3-php/Example/example.contract_creation.php
- > /wp-content/plugins/enefti-nft-marketplace-core-lite/nft-marketplace-core-lite.php
- > /wp-content/plugins/enefti-nft-marketplace-core-lite/vendor/drlecks/simple-web3-php/Example/example.send.php
- > /wp-content/plugins/enefti-nft-marketplace-core-lite/internals/shortcodes/nft-category-group/nft-category-group.php
- > /wp-content/plugins/enefti-nft-marketplace-core-lite/vendor/drlecks/simple-web3-php/Example/example.call.php
- 366× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/enefti-nft-marketplace-core-lite/vendor/cmb2/includes/types/CMB2_Type_File_List.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Mdanter\\Ecc\\Crypto\\Signature\\SignatureInterface' not found in wp-content/plugins/enefti-nft-marketplace-core-lite/vendor/kornrunner/secp256k1/src/Signature/SignatureInterface.php:7
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/enefti-nft-marketplace-core-lite/vendor/composer/installers/src/Composer/Installers/MODULEWorkInstaller.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_kses_post() in wp-content/plugins/enefti-nft-marketplace-core-lite/vendor/micropackage/requirements/src/notice.php:10
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/enefti-nft-marketplace-core-lite/vendor/composer/installers/src/Composer/Installers/RadPHPInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/enefti-nft-marketplace-core-lite/vendor/cmb2/includes/types/CMB2_Type_Oembed.php:13
- > PHP Fatal error
Uncaught Error: Class 'NFT_Marketplace_Core_Lite\\Engine\\Base' not found in wp-content/plugins/enefti-nft-marketplace-core-lite/backend/PageNames.php:15
- > PHP Fatal error
Uncaught Error: Class 'FG\\ASN1\\AbstractTime' not found in wp-content/plugins/enefti-nft-marketplace-core-lite/vendor/fgrosse/phpasn1/lib/ASN1/Universal/UTCTime.php:27
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/enefti-nft-marketplace-core-lite/vendor/composer/installers/src/Composer/Installers/PrestashopInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'NFT_Marketplace_Core_Lite\\Engine\\Base' not found in wp-content/plugins/enefti-nft-marketplace-core-lite/internals/tax-meta/CUR_TAX_META.php:10
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
- > GET request to /wp-admin/edit-tags.php?taxonomy=nft-listing-category&post_type=nft-listing
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cannot read properties of undefined (reading 'editor')" "TypeError: Cannot read properties of undefined (reading 'editor')\n at ct_media_upload (/wp-admin/edit-tags.php?taxonomy=nft-listing-category&post_type=nft-listing:368:58)\n at HTMLDocument.\u003Canonymous> (/wp-admin/edit-tags.php?taxonomy=nft-listing-category&post_type=nft-listing:388:17)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=nft-listing-collection&post_type=nft-listing
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: Cannot read properties of undefined (reading 'editor')
- > GET request to /wp-admin/edit-tags.php?taxonomy=nft-listing-currency&post_type=nft-listing
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cannot read properties of undefined (reading 'editor')" "TypeError: Cannot read properties of undefined (reading 'editor')\n at ct_media_upload (/wp-admin/edit-tags.php?taxonomy=nft-listing-currency&post_type=nft-listing:387:58)\n at HTMLDocument.\u003Canonymous> (/wp-admin/edit-tags.php?taxonomy=nft-listing-currency&post_type=nft-listing:407:17)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/edit-tags.php?taxonomy=nft_listing_blockchains&post_type=nft-listing
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cannot read properties of undefined (reading 'editor')" "TypeError: Cannot read properties of undefined (reading 'editor')\n at ct_media_upload (/wp-admin/edit-tags.php?taxonomy=nft_listing_blockchains&post_type=nft-listing:393:58)\n at HTMLDocument.\u003Canonymous> (/wp-admin/edit-tags.php?taxonomy=nft_listing_blockchains&post_type=nft-listing:413:17)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/edit-tags.php?taxonomy=nft-listing-collection&post_type=nft-listing
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cannot read properties of undefined (reading 'editor')" "TypeError: Cannot read properties of undefined (reading 'editor')\n at ct_media_upload (/wp-admin/edit-tags.php?taxonomy=nft-listing-collection&post_type=nft-listing:368:58)\n at HTMLDocument.\u003Canonymous> (/wp-admin/edit-tags.php?taxonomy=nft-listing-collection&post_type=nft-listing:388:17)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 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
10 plugin tags: ethereum, smart contract, erc721, blockchain, polygon...
enefti-nft-marketplace-core-lite/nft-marketplace-core-lite.php 77% from 13 tests
The main PHP file in "Enefti NFT Marketplace Core lite" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Git Repository: A Git repository was detected inside this plugin
- Main file name: Name the main plugin file the same as the plugin slug ("enefti-nft-marketplace-core-lite.php" instead of "nft-marketplace-core-lite.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected156,491 lines of code in 840 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 531 | 13,092 | 29,643 | 66,261 |
PO File | 121 | 14,324 | 18,513 | 32,369 |
JavaScript | 19 | 3,498 | 8,498 | 16,698 |
SVG | 10 | 0 | 12 | 14,230 |
CSS | 34 | 1,718 | 1,368 | 13,600 |
JSON | 35 | 14 | 0 | 7,928 |
Markdown | 34 | 999 | 0 | 2,686 |
Sass | 17 | 306 | 29 | 1,411 |
YAML | 20 | 133 | 42 | 678 |
XML | 13 | 16 | 7 | 302 |
Solidity | 2 | 50 | 15 | 149 |
Bourne Shell | 2 | 21 | 11 | 128 |
make | 2 | 17 | 0 | 51 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
It is recommended to fix the following
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 109)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 18.02 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 634.00 |
Average method complexity | 3.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 109.00 |
Code structure | ||
---|---|---|
Namespaces | 88 | |
Interfaces | 21 | |
Traits | 2 | |
Classes | 470 | |
▷ Abstract classes | 25 | 5.32% |
▷ Concrete classes | 445 | 94.68% |
▷ Final classes | 4 | 0.90% |
Methods | 3,429 | |
▷ Static methods | 456 | 13.30% |
▷ Public methods | 3,060 | 89.24% |
▷ Protected methods | 254 | 7.41% |
▷ Private methods | 115 | 3.35% |
Functions | 209 | |
▷ Named functions | 168 | 80.38% |
▷ Anonymous functions | 41 | 19.62% |
Constants | 397 | |
▷ Global constants | 59 | 14.86% |
▷ Class constants | 338 | 85.14% |
▷ Public constants | 324 | 95.86% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
22 compressed PNG files occupy 0.44MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/cmb2/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
vendor/cmb2/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
vendor/cmb2/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
vendor/cmb2/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
vendor/cmb2/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |