WPSmartContracts 1.3.11

Does WP Smart Contracts work with WordPress 6.0.3 and PHP 7.4.8? A smoke test was performed on .

Summary

Errors
5PHP notices
4JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

Memory usage: 1.32 MiB
The average PHP memory usage increased by this amount after activating by the plugin.

Page speed impact: 0.572 seconds
The average page load time increased by this amount after activating the plugin.

Environment
WordPress version6.0.3
PHP version7.4.8
MySQL version8.0.21
PHP memory limit256M
Plugin Info
Last updated
Active installs 500+
WordPress.org page https://wordpress.org/plugins/wp-smart-contracts/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 20

Plugins ‹ Test site — WordPress

Page screenshot: Plugins ‹ Test site — WordPress
URL /wp-admin/plugins.php?plugin_status=all&paged=1&s
Requested URL /wp-admin/plugins.php?action=activate&plugin=wp-smart-contracts%2Fwp-smart-contracts.php&plugin_status=all&paged=1&s&_wpnonce=4fc9323ee1
Aspect after-activation
HTTP status 200
Load time 2.657 s
Memory usage 5.23 MiB
JS errors None
Resource errors None

Smart Contracts Wizards

Page screenshot: Smart Contracts Wizards
URL /wp-admin/admin.php?page=wpsc_dashboard
Aspect menu-item
HTTP status 200
Load time 0.671 s
Memory usage 5.08 MiB
JS errors None
Resource errors None

Smart Contracts Wizards → Create Smart Contract

Page screenshot: Smart Contracts Wizards → Create Smart Contract
URL /wp-admin/admin.php?page=wpsc_dashboard_menu
Aspect menu-item
HTTP status 200
Load time 2.298 s
Memory usage 6.13 MiB
JS errors None
Resource errors None

Smart Contracts Wizards → Batch Mint NFTs

Page screenshot: Smart Contracts Wizards → Batch Mint NFTs
URL /wp-admin/admin.php?page=nft-batch-mint
Aspect menu-item
HTTP status 200
Load time 0.899 s
Memory usage 5.76 MiB
JS errors None
Resource errors None

Coins

Page screenshot: Coins
URL /wp-admin/edit.php?post_type=coin
Aspect menu-item
HTTP status 200
Load time 1.998 s
Memory usage 5.21 MiB
JS errors None
Resource errors None

Coins → Add New

Page screenshot: Coins → Add New
URL /wp-admin/post-new.php?post_type=coin
Aspect menu-item
HTTP status 200
Load time 2.122 s
Memory usage 5.41 MiB
JS errors
[
    {
        "message": "ReferenceError: web3 is not defined\n    at getNetworkVersion (/wp-content/plugins/wp-smart-contracts/assets/js/wpsc.js?ver=6.0.3:1:4934421)\n    at doLoadOtherNetworks (/wp-content/plugins/wp-smart-contracts/assets/js/wpsc.js?ver=6.0.3:1:5035819)\n    at HTMLDocument.<anonymous> (/wp-content/plugins/wp-smart-contracts/assets/js/wpsc.js?ver=6.0.3:1:5060363)",
        "trace": null,
        "code": null
    }
]
Resource errors None

Stakes

Page screenshot: Stakes
URL /wp-admin/edit.php?post_type=staking
Aspect menu-item
HTTP status 200
Load time 1.886 s
Memory usage 5.24 MiB
JS errors None
Resource errors None

Stakes → Add New Stake

Page screenshot: Stakes → Add New Stake
URL /wp-admin/post-new.php?post_type=staking
Aspect menu-item
HTTP status 200
Load time 1.523 s
Memory usage 5.34 MiB
JS errors
[
    {
        "message": "ReferenceError: web3 is not defined\n    at getNetworkVersion (/wp-content/plugins/wp-smart-contracts/assets/js/wpsc.js?ver=6.0.3:1:4934421)\n    at doLoadOtherNetworks (/wp-content/plugins/wp-smart-contracts/assets/js/wpsc.js?ver=6.0.3:1:5035819)\n    at HTMLDocument.<anonymous> (/wp-content/plugins/wp-smart-contracts/assets/js/wpsc.js?ver=6.0.3:1:5060363)",
        "trace": null,
        "code": null
    }
]
Resource errors None

Crowdfundings

Page screenshot: Crowdfundings
URL /wp-admin/edit.php?post_type=crowdfunding
Aspect menu-item
HTTP status 200
Load time 2.010 s
Memory usage 5.24 MiB
JS errors None
Resource errors None

Crowdfundings → Add New

Page screenshot: Crowdfundings → Add New
URL /wp-admin/post-new.php?post_type=crowdfunding
Aspect menu-item
HTTP status 200
Load time 1.284 s
Memory usage 5.28 MiB
JS errors
[
    {
        "message": "ReferenceError: web3 is not defined\n    at getNetworkVersion (/wp-content/plugins/wp-smart-contracts/assets/js/wpsc.js?ver=6.0.3:1:4934421)\n    at doLoadOtherNetworks (/wp-content/plugins/wp-smart-contracts/assets/js/wpsc.js?ver=6.0.3:1:5035819)\n    at HTMLDocument.<anonymous> (/wp-content/plugins/wp-smart-contracts/assets/js/wpsc.js?ver=6.0.3:1:5060363)",
        "trace": null,
        "code": null
    }
]
Resource errors None

NFT Collections

Page screenshot: NFT Collections
URL /wp-admin/edit.php?post_type=nft-collection
Aspect menu-item
HTTP status 200
Load time 0.648 s
Memory usage 5.24 MiB
JS errors None
Resource errors None

NFT Collections → Add New Collection

Page screenshot: NFT Collections → Add New Collection
URL /wp-admin/post-new.php?post_type=nft-collection
Aspect menu-item
HTTP status 200
Load time 3.433 s
Memory usage 6.82 MiB
JS errors
[
    {
        "message": "ReferenceError: web3 is not defined\n    at getNetworkVersion (/wp-content/plugins/wp-smart-contracts/assets/js/wpsc.js?ver=6.0.3:1:4934421)\n    at doLoadOtherNetworks (/wp-content/plugins/wp-smart-contracts/assets/js/wpsc.js?ver=6.0.3:1:5035819)\n    at HTMLDocument.<anonymous> (/wp-content/plugins/wp-smart-contracts/assets/js/wpsc.js?ver=6.0.3:1:5060363)",
        "trace": null,
        "code": null
    }
]
Resource errors None

NFT

Page screenshot: NFT
URL /wp-admin/edit.php?post_type=nft
Aspect menu-item
HTTP status 200
Load time 0.587 s
Memory usage 5.24 MiB
JS errors None
Resource errors None

NFT → Add New NFT

Page screenshot: NFT → Add New NFT
URL /wp-admin/post-new.php?post_type=nft
Aspect menu-item
HTTP status 200
Load time 3.004 s
Memory usage 5.28 MiB
JS errors None
Resource errors None

NFT → Galleries

Page screenshot: NFT → Galleries
URL /wp-admin/edit-tags.php?taxonomy=nft-gallery&post_type=nft
Aspect menu-item
HTTP status 200
Load time 0.468 s
Memory usage 5.17 MiB
JS errors None
Resource errors None

NFT → Taxonomies

Page screenshot: NFT → Taxonomies
URL /wp-admin/edit-tags.php?taxonomy=nft-taxonomy&post_type=nft
Aspect menu-item
HTTP status 200
Load time 0.406 s
Memory usage 5.17 MiB
JS errors None
Resource errors None

NFT → Attributes

Page screenshot: NFT → Attributes
URL /wp-admin/edit-tags.php?taxonomy=nft-tag&post_type=nft
Aspect menu-item
HTTP status 200
Load time 0.382 s
Memory usage 5.17 MiB
JS errors None
Resource errors None

NFT → Batch Mint NFTs

Page screenshot: NFT → Batch Mint NFTs
URL /wp-admin/edit.php?post_type=nft&page=nft-batch-mint
Aspect menu-item
HTTP status 200
Load time 1.857 s
Memory usage 5.77 MiB
JS errors None
Resource errors None

Settings → WP Smart Contracts

Page screenshot: Settings → WP Smart Contracts
URL /wp-admin/options-general.php?page=etherscan-api-key-setting-admin
Aspect menu-item
HTTP status 200
Load time 5.484 s
Memory usage 5.09 MiB
JS errors None
Resource errors None

Test site – Just another WordPress site

Page screenshot: Test site – Just another WordPress site
URL /
Aspect front-page
HTTP status 200
Load time 1.316 s
Memory usage 3.8 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.323 s1.978 s+1.655 s3.73 MiB5.1 MiB+ 1.37 MiB
/wp-admin/edit.php0.189 s0.557 s+0.368 s3.76 MiB5.25 MiB+ 1.49 MiB
/wp-admin/post-new.php0.749 s1.172 s+0.423 s5.55 MiB6.89 MiB+ 1.34 MiB
/wp-admin/upload.php0.400 s0.844 s+0.444 s3.69 MiB5.17 MiB+ 1.48 MiB
/wp-admin/options-writing.php0.154 s0.471 s+0.317 s3.62 MiB5.09 MiB+ 1.47 MiB
/wp-admin/media-new.php0.463 s0.402 s-0.061 s3.67 MiB5.09 MiB+ 1.42 MiB
/wp-admin/edit-tags.php?taxonomy=category0.211 s0.439 s+0.228 s3.69 MiB5.17 MiB+ 1.48 MiB
/wp-admin/post-new.php?post_type=page0.713 s1.351 s+0.638 s5.55 MiB6.89 MiB+ 1.34 MiB
/wp-admin/options-discussion.php0.259 s1.766 s+1.507 s3.6 MiB5.09 MiB+ 1.49 MiB
/wp-admin/edit-comments.php0.221 s0.862 s+0.641 s3.7 MiB5.17 MiB+ 1.47 MiB
/0.296 s0.424 s+0.128 s3.62 MiB3.8 MiB+ 188.06 KiB
Average 0.362 s0.933 s+0.572 s4.02 MiB5.34 MiB+ 1.32 MiB

Code Statistics

Note: Third-party libraries and minified JS/CSS files are excluded from these statistics where possible, so the numbers you see here may be lower than those reported by other tools.

JavaScript
Mustache
LESS
PHP
Language % Lines of code Comment lines Files
JavaScript41.2%43,08810,273113
Mustache19.9%20,7743181
LESS18.9%19,7223,79148
PHP10.0%10,49155038
SVG5.9%6,1842516
PO File2.7%2,8061,3202
CSS0.9%971339
JSON0.3%36505
Markdown0.0%4703
HTML0.0%2902
Total 104,477 15,995 417

PHP Code Analysis | More results »

Lines of code 10,289
Total complexity 1,922
Median class complexity 47.0
Median method complexity 2.0
Most complex class WPSC_Endpoints
Most complex function wpsc_nft_batch_mint()
Classes 25
Methods 320
Functions 8

Additions

Things that the plugin adds to the site. This section is not intended to be comprehensive. The test tool only looks for a few specific types of added content.

Database Tables 1

Options wp_options 7

Custom Post Types 5

ID Name
coinCoins
stakingStakes
crowdfundingCrowdfundings
nft-collectionNFT Collections
nftNFT

Meta Boxes

{
    "coin": {
        "wpsc_cryptocurrency_metabox": {
            "title": "WPSmartContracts: Coin Specification",
            "context": "normal"
        },
        "wpsc_smart_contract": {
            "title": "WPSmartContracts: Smart Contract",
            "context": "normal"
        },
        "wpsc_code": {
            "title": "WPSmartContracts: Source Code",
            "context": "normal"
        },
        "wpsc_reminder": {
            "title": "WPSmartContracts: Friendly Reminder",
            "context": "normal"
        },
        "wpsc_sidebar": {
            "title": "WPSmartContracts: Tutorials & Tools",
            "context": "side"
        }
    },
    "staking": {
        "wpsc_nft_metabox": {
            "title": "WPSmartContracts: Staking Specification",
            "context": "normal"
        },
        "wpsc_smart_contract": {
            "title": "WPSmartContracts: Smart Contract",
            "context": "normal"
        },
        "wpsc_code_crowd": {
            "title": "WPSmartContracts: Source Code",
            "context": "normal"
        },
        "wpsc_reminder_crowd": {
            "title": "WPSmartContracts: Friendly Reminder",
            "context": "normal"
        },
        "wpsc_sidebar": {
            "title": "WPSmartContracts: Tutorials & Tools",
            "context": "side"
        }
    },
    "crowdfunding": {
        "wpsc_crowdfunding_metabox": {
            "title": "WPSmartContracts: Crowdfunding Specification",
            "context": "normal"
        },
        "wpsc_smart_contract": {
            "title": "WPSmartContracts: Smart Contract",
            "context": "normal"
        },
        "wpsc_code_crowd": {
            "title": "WPSmartContracts: Source Code",
            "context": "normal"
        },
        "wpsc_reminder_crowd": {
            "title": "WPSmartContracts: Friendly Reminder",
            "context": "normal"
        },
        "wpsc_sidebar": {
            "title": "WPSmartContracts: Tutorials & Tools",
            "context": "side"
        }
    },
    "nft-collection": {
        "wpsc_nft_metabox": {
            "title": "WPSmartContracts: NFT Specification",
            "context": "normal"
        },
        "wpsc_smart_contract": {
            "title": "WPSmartContracts: Smart Contract",
            "context": "normal"
        },
        "wpsc_code_crowd": {
            "title": "WPSmartContracts: Source Code",
            "context": "normal"
        },
        "wpsc_reminder_crowd": {
            "title": "WPSmartContracts: Friendly Reminder",
            "context": "normal"
        },
        "wpsc_sidebar": {
            "title": "WPSmartContracts: Tutorials & Tools",
            "context": "side"
        }
    },
    "nft": {
        "wpsc_nft_metabox": {
            "title": "WPSmartContracts: NFT Item",
            "context": "normal"
        },
        "wpsc_smart_contract": {
            "title": "WPSmartContracts: Smart Contract",
            "context": "normal"
        },
        "wpsc_sidebar": {
            "title": "WPSmartContracts: Tutorials & Tools",
            "context": "side"
        }
    }
}

PHP Error Log 5 lines

[20-Oct-2022 16:08:33 UTC] PHP Notice:  Undefined index: post_type in /wp-content/plugins/wp-smart-contracts/classes/wpsc-assets.php on line 110
[20-Oct-2022 16:08:33 UTC] PHP Notice:  Undefined index: post_type in /wp-content/plugins/wp-smart-contracts/classes/wpsc-assets.php on line 111
[20-Oct-2022 16:08:33 UTC] PHP Notice:  Undefined index: post_type in /wp-content/plugins/wp-smart-contracts/classes/wpsc-assets.php on line 112
[20-Oct-2022 16:08:33 UTC] PHP Notice:  Undefined index: post_type in /wp-content/plugins/wp-smart-contracts/classes/wpsc-assets.php on line 121
[20-Oct-2022 16:08:33 UTC] PHP Notice:  Undefined index: post_type in /wp-content/plugins/wp-smart-contracts/classes/wpsc-assets.php on line 156
See also: All tests for this plugin, How to Hide WP Smart Contracts Admin Menus and Meta Boxes