WPSmartContracts 1.3.1

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

Summary

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

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

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

Environment
WordPress version5.9.2
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 16

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=eb3dcb0ddd
Aspect after-activation
HTTP status 200
Load time 2.884 s
Memory usage 5.7 MiB
JS errors None
Resource errors None

Smart Contract Creation Wizard

Page screenshot: Smart Contract Creation Wizard
URL /wp-admin/admin.php?page=wpsc_dashboard_menu
Aspect menu-item
HTTP status 200
Load time 2.187 s
Memory usage 5.71 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.060 s
Memory usage 5.59 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 3.555 s
Memory usage 5.72 MiB
JS errors
[
    {
        "message": "ReferenceError: web3 is not defined\n    at getNetworkVersion (/wp-content/plugins/wp-smart-contracts/assets/js/wpsc.js?ver=5.9.2:1:2898194)\n    at doLoadOtherNetworks (/wp-content/plugins/wp-smart-contracts/assets/js/wpsc.js?ver=5.9.2:1:9524425)\n    at HTMLDocument.<anonymous> (/wp-content/plugins/wp-smart-contracts/assets/js/wpsc.js?ver=5.9.2:1:11325882)",
        "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 0.707 s
Memory usage 5.62 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 3.240 s
Memory usage 5.72 MiB
JS errors
[
    {
        "message": "ReferenceError: web3 is not defined\n    at getNetworkVersion (/wp-content/plugins/wp-smart-contracts/assets/js/wpsc.js?ver=5.9.2:1:2898194)\n    at doLoadOtherNetworks (/wp-content/plugins/wp-smart-contracts/assets/js/wpsc.js?ver=5.9.2:1:9524425)\n    at HTMLDocument.<anonymous> (/wp-content/plugins/wp-smart-contracts/assets/js/wpsc.js?ver=5.9.2:1:11325882)",
        "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 0.609 s
Memory usage 5.62 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 2.810 s
Memory usage 5.72 MiB
JS errors
[
    {
        "message": "ReferenceError: web3 is not defined\n    at getNetworkVersion (/wp-content/plugins/wp-smart-contracts/assets/js/wpsc.js?ver=5.9.2:1:2898194)\n    at doLoadOtherNetworks (/wp-content/plugins/wp-smart-contracts/assets/js/wpsc.js?ver=5.9.2:1:9524425)\n    at HTMLDocument.<anonymous> (/wp-content/plugins/wp-smart-contracts/assets/js/wpsc.js?ver=5.9.2:1:11325882)",
        "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.804 s
Memory usage 5.62 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 1.916 s
Memory usage 5.72 MiB
JS errors
[
    {
        "message": "ReferenceError: web3 is not defined\n    at getNetworkVersion (/wp-content/plugins/wp-smart-contracts/assets/js/wpsc.js?ver=5.9.2:1:2898194)\n    at doLoadOtherNetworks (/wp-content/plugins/wp-smart-contracts/assets/js/wpsc.js?ver=5.9.2:1:9524425)\n    at HTMLDocument.<anonymous> (/wp-content/plugins/wp-smart-contracts/assets/js/wpsc.js?ver=5.9.2:1:11325882)",
        "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 2.058 s
Memory usage 5.62 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 1.273 s
Memory usage 5.68 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.592 s
Memory usage 5.55 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.392 s
Memory usage 5.55 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.552 s
Memory usage 5.54 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.350 s
Memory usage 3.59 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.333 s2.394 s+2.061 s3.37 MiB5.54 MiB+ 2.17 MiB
/wp-admin/edit.php0.166 s0.662 s+0.496 s3.4 MiB5.7 MiB+ 2.3 MiB
/wp-admin/post-new.php1.001 s1.955 s+0.954 s6.15 MiB7.89 MiB+ 1.74 MiB
/wp-admin/upload.php0.368 s1.255 s+0.887 s3.25 MiB5.55 MiB+ 2.31 MiB
/wp-admin/options-writing.php0.261 s1.781 s+1.520 s3.24 MiB5.53 MiB+ 2.29 MiB
/wp-admin/media-new.php0.255 s0.714 s+0.459 s3.23 MiB5.53 MiB+ 2.31 MiB
/wp-admin/edit-tags.php?taxonomy=category0.173 s0.450 s+0.277 s3.27 MiB5.56 MiB+ 2.29 MiB
/wp-admin/post-new.php?post_type=page0.902 s1.096 s+0.194 s6.15 MiB7.88 MiB+ 1.74 MiB
/wp-admin/options-discussion.php0.311 s0.655 s+0.344 s3.22 MiB5.53 MiB+ 2.31 MiB
/wp-admin/edit-comments.php0.224 s0.468 s+0.244 s3.27 MiB5.56 MiB+ 2.29 MiB
/0.304 s0.379 s+0.075 s3.4 MiB3.59 MiB+ 200.42 KiB
Average 0.391 s1.074 s+0.683 s3.81 MiB5.81 MiB+ 1.99 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
LESS
Mustache
PHP
Language % Lines of code Comment lines Files
JavaScript42.5%42,39510,175109
LESS19.8%19,7223,79148
Mustache19.0%18,90572172
PHP8.3%8,27872133
SVG6.2%6,1842516
PO File2.8%2,8061,3202
JSON0.7%71905
CSS0.6%595338
Markdown0.0%4703
HTML0.0%2902
Total 99,680 16,137 398

PHP Code Analysis | More results »

Lines of code 8,211
Total complexity 1,398
Median class complexity 39.5
Median method complexity 2.0
Most complex class WPSC_Shortcodes
Most complex function WPSC_Shortcodes::coin()
Classes 24
Methods 260
Functions 4

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.

Options wp_options 5

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 25 lines

[14-Mar-2022 00:26:41 UTC] PHP Notice:  Trying to access array offset on value of type bool in /wp-content/plugins/wp-smart-contracts/classes/wpsc-settings.php on line 99
[14-Mar-2022 00:26:41 UTC] PHP Notice:  Trying to access array offset on value of type bool in /wp-content/plugins/wp-smart-contracts/classes/wpsc-settings.php on line 100
[14-Mar-2022 00:26:41 UTC] PHP Notice:  Trying to access array offset on value of type bool in /wp-content/plugins/wp-smart-contracts/classes/wpsc-settings.php on line 101
[14-Mar-2022 00:26:41 UTC] PHP Notice:  Trying to access array offset on value of type bool in /wp-content/plugins/wp-smart-contracts/classes/wpsc-settings.php on line 102
[14-Mar-2022 00:26:41 UTC] PHP Notice:  Trying to access array offset on value of type bool in /wp-content/plugins/wp-smart-contracts/classes/wpsc-settings.php on line 103
[14-Mar-2022 00:26:41 UTC] PHP Notice:  Trying to access array offset on value of type bool in /wp-content/plugins/wp-smart-contracts/classes/wpsc-settings.php on line 104
[14-Mar-2022 00:26:41 UTC] PHP Notice:  Trying to access array offset on value of type bool in /wp-content/plugins/wp-smart-contracts/classes/wpsc-settings.php on line 107
[14-Mar-2022 00:26:41 UTC] PHP Notice:  Trying to access array offset on value of type bool in /wp-content/plugins/wp-smart-contracts/classes/wpsc-settings.php on line 108
[14-Mar-2022 00:26:41 UTC] PHP Notice:  Trying to access array offset on value of type bool in /wp-content/plugins/wp-smart-contracts/classes/wpsc-settings.php on line 109
[14-Mar-2022 00:26:41 UTC] PHP Notice:  Trying to access array offset on value of type bool in /wp-content/plugins/wp-smart-contracts/classes/wpsc-settings.php on line 110
[14-Mar-2022 00:26:41 UTC] PHP Notice:  Trying to access array offset on value of type bool in /wp-content/plugins/wp-smart-contracts/classes/wpsc-settings.php on line 111
[14-Mar-2022 00:26:41 UTC] PHP Notice:  Trying to access array offset on value of type bool in /wp-content/plugins/wp-smart-contracts/classes/wpsc-settings.php on line 112
[14-Mar-2022 00:26:41 UTC] PHP Notice:  Trying to access array offset on value of type bool in /wp-content/plugins/wp-smart-contracts/classes/wpsc-settings.php on line 113
[14-Mar-2022 00:26:41 UTC] PHP Notice:  Trying to access array offset on value of type bool in /wp-content/plugins/wp-smart-contracts/classes/wpsc-settings.php on line 114
[14-Mar-2022 00:26:41 UTC] PHP Notice:  Trying to access array offset on value of type bool in /wp-content/plugins/wp-smart-contracts/classes/wpsc-settings.php on line 115
[14-Mar-2022 00:26:41 UTC] PHP Notice:  Trying to access array offset on value of type bool in /wp-content/plugins/wp-smart-contracts/classes/wpsc-settings.php on line 116
[14-Mar-2022 00:26:41 UTC] PHP Notice:  Trying to access array offset on value of type bool in /wp-content/plugins/wp-smart-contracts/classes/wpsc-settings.php on line 117
[14-Mar-2022 00:26:41 UTC] PHP Notice:  Trying to access array offset on value of type bool in /wp-content/plugins/wp-smart-contracts/classes/wpsc-settings.php on line 118
[14-Mar-2022 00:26:41 UTC] PHP Notice:  Trying to access array offset on value of type bool in /wp-content/plugins/wp-smart-contracts/classes/wpsc-settings.php on line 119
[14-Mar-2022 00:26:41 UTC] PHP Notice:  Trying to access array offset on value of type bool in /wp-content/plugins/wp-smart-contracts/classes/wpsc-settings.php on line 120
[14-Mar-2022 00:26:52 UTC] PHP Notice:  Undefined index: post_type in /wp-content/plugins/wp-smart-contracts/classes/wpsc-assets.php on line 91
[14-Mar-2022 00:26:52 UTC] PHP Notice:  Undefined index: post_type in /wp-content/plugins/wp-smart-contracts/classes/wpsc-assets.php on line 92
[14-Mar-2022 00:26:52 UTC] PHP Notice:  Undefined index: post_type in /wp-content/plugins/wp-smart-contracts/classes/wpsc-assets.php on line 93
[14-Mar-2022 00:26:52 UTC] PHP Notice:  Undefined index: post_type in /wp-content/plugins/wp-smart-contracts/classes/wpsc-assets.php on line 102
[14-Mar-2022 00:26:52 UTC] PHP Notice:  Undefined index: post_type in /wp-content/plugins/wp-smart-contracts/classes/wpsc-assets.php on line 129
See also: All tests for this plugin, How to Hide WP Smart Contracts Admin Menus and Meta Boxes