WPSmartContracts 1.3.0

Does WP Smart Contracts work with WordPress 5.8.3 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.74 MiB
The average PHP memory usage increased by this amount after activating by the plugin.

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

Environment
WordPress version5.8.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 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=f5478a90c5
Aspect after-activation
HTTP status 200
Load time 2.824 s
Memory usage 5.11 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 0.730 s
Memory usage 5.42 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 2.761 s
Memory usage 5.05 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.156 s
Memory usage 5.13 MiB
JS errors
[
    {
        "message": "ReferenceError: web3 is not defined\n    at getNetworkVersion (/wp-content/plugins/wp-smart-contracts/assets/js/wpsc.js?ver=5.8.3:1:2898194)\n    at doLoadOtherNetworks (/wp-content/plugins/wp-smart-contracts/assets/js/wpsc.js?ver=5.8.3:1:9169320)\n    at HTMLDocument.<anonymous> (/wp-content/plugins/wp-smart-contracts/assets/js/wpsc.js?ver=5.8.3:1:10874751)",
        "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 2.236 s
Memory usage 5.08 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.808 s
Memory usage 5.13 MiB
JS errors
[
    {
        "message": "ReferenceError: web3 is not defined\n    at getNetworkVersion (/wp-content/plugins/wp-smart-contracts/assets/js/wpsc.js?ver=5.8.3:1:2898194)\n    at doLoadOtherNetworks (/wp-content/plugins/wp-smart-contracts/assets/js/wpsc.js?ver=5.8.3:1:9169320)\n    at HTMLDocument.<anonymous> (/wp-content/plugins/wp-smart-contracts/assets/js/wpsc.js?ver=5.8.3:1:10874751)",
        "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 1.973 s
Memory usage 5.08 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.577 s
Memory usage 5.13 MiB
JS errors
[
    {
        "message": "ReferenceError: web3 is not defined\n    at getNetworkVersion (/wp-content/plugins/wp-smart-contracts/assets/js/wpsc.js?ver=5.8.3:1:2898194)\n    at doLoadOtherNetworks (/wp-content/plugins/wp-smart-contracts/assets/js/wpsc.js?ver=5.8.3:1:9169320)\n    at HTMLDocument.<anonymous> (/wp-content/plugins/wp-smart-contracts/assets/js/wpsc.js?ver=5.8.3:1:10874751)",
        "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.814 s
Memory usage 5.08 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.359 s
Memory usage 5.27 MiB
JS errors
[
    {
        "message": "ReferenceError: web3 is not defined\n    at getNetworkVersion (/wp-content/plugins/wp-smart-contracts/assets/js/wpsc.js?ver=5.8.3:1:2898194)\n    at doLoadOtherNetworks (/wp-content/plugins/wp-smart-contracts/assets/js/wpsc.js?ver=5.8.3:1:9169320)\n    at HTMLDocument.<anonymous> (/wp-content/plugins/wp-smart-contracts/assets/js/wpsc.js?ver=5.8.3:1:10874751)",
        "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.589 s
Memory usage 5.08 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.366 s
Memory usage 5.09 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 1.815 s
Memory usage 5.02 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.666 s
Memory usage 5.02 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 4.351 s
Memory usage 5.01 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.101 s
Memory usage 3.16 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.507 s2.078 s+1.571 s3.08 MiB5.01 MiB+ 1.93 MiB
/wp-admin/edit.php0.181 s0.952 s+0.771 s3.11 MiB5.1 MiB+ 1.99 MiB
/wp-admin/post-new.php0.778 s1.240 s+0.462 s5.27 MiB6.81 MiB+ 1.54 MiB
/wp-admin/upload.php0.387 s0.620 s+0.233 s3.03 MiB5.02 MiB+ 1.99 MiB
/wp-admin/options-writing.php0.259 s0.391 s+0.132 s3.02 MiB5.01 MiB+ 1.98 MiB
/wp-admin/media-new.php0.302 s0.524 s+0.222 s3.01 MiB5 MiB+ 2 MiB
/wp-admin/edit-tags.php?taxonomy=category0.184 s2.022 s+1.838 s3.04 MiB5.02 MiB+ 1.99 MiB
/wp-admin/post-new.php?post_type=page0.692 s1.642 s+0.950 s5.26 MiB6.8 MiB+ 1.54 MiB
/wp-admin/options-discussion.php0.265 s0.537 s+0.272 s3 MiB5 MiB+ 2 MiB
/wp-admin/edit-comments.php0.227 s0.453 s+0.226 s3.04 MiB5.03 MiB+ 1.98 MiB
/0.353 s0.356 s+0.003 s2.96 MiB3.16 MiB+ 203.52 KiB
Average 0.376 s0.983 s+0.607 s3.44 MiB5.18 MiB+ 1.74 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
Language % Lines of code Comment lines Files
JavaScript75.1%172,44231,985109
LESS8.6%19,7223,79148
Mustache8.2%18,86772173
PHP3.6%8,19760233
SVG2.7%6,1842516
PO File1.2%2,8061,3202
JSON0.3%71905
CSS0.3%591338
Markdown0.0%4703
HTML0.0%2902
Total 229,604 37,828 399

PHP Code Analysis | More results »

Lines of code 8,109
Total complexity 1,383
Median class complexity 39.0
Median method complexity 2.0
Most complex class WPSC_Shortcodes
Most complex function WPSC_Shortcodes::coin()
Classes 24
Methods 260
Functions 2

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

[20-Jan-2022 14:55:45 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
[20-Jan-2022 14:55:45 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
[20-Jan-2022 14:55:45 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
[20-Jan-2022 14:55:45 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
[20-Jan-2022 14:55:45 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
[20-Jan-2022 14:55:45 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
[20-Jan-2022 14:55:45 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
[20-Jan-2022 14:55:45 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
[20-Jan-2022 14:55:45 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
[20-Jan-2022 14:55:45 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
[20-Jan-2022 14:55:45 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
[20-Jan-2022 14:55:45 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
[20-Jan-2022 14:55:45 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
[20-Jan-2022 14:55:45 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
[20-Jan-2022 14:55:45 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
[20-Jan-2022 14:55:45 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
[20-Jan-2022 14:55:45 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
[20-Jan-2022 14:55:45 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
[20-Jan-2022 14:55:45 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
[20-Jan-2022 14:55:45 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
[20-Jan-2022 14:55:56 UTC] PHP Notice:  Undefined index: post_type in /wp-content/plugins/wp-smart-contracts/classes/wpsc-assets.php on line 83
[20-Jan-2022 14:55:56 UTC] PHP Notice:  Undefined index: post_type in /wp-content/plugins/wp-smart-contracts/classes/wpsc-assets.php on line 84
[20-Jan-2022 14:55:56 UTC] PHP Notice:  Undefined index: post_type in /wp-content/plugins/wp-smart-contracts/classes/wpsc-assets.php on line 85
[20-Jan-2022 14:55:56 UTC] PHP Notice:  Undefined index: post_type in /wp-content/plugins/wp-smart-contracts/classes/wpsc-assets.php on line 94
[20-Jan-2022 14:55:56 UTC] PHP Notice:  Undefined index: post_type in /wp-content/plugins/wp-smart-contracts/classes/wpsc-assets.php on line 121
See also: All tests for this plugin, How to Hide WP Smart Contracts Admin Menus and Meta Boxes