ZIP Code Based Content Protection 1.0.0

Does "ZIP Code Based Content Protection" work with WordPress 6.8.1 and PHP 8.1.12? A smoke test was performed on .

Summary

Errors
4PHP warnings
6JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

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

Page speed impact: insignificant.
The plugin didn't make the site noticeably slower.

Environment
WordPress version6.8.1
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs <10
WordPress.org page https://wordpress.org/plugins/zip-code-based-content-protection/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 8

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=zip-code-based-content-protection%2Fzipcode-based-content-protection.php&plugin_status=all&paged=1&s&_wpnonce=63c9b65475
Aspect after-activation
HTTP status 200
Load time 0.343 s
Memory usage 3.65 MiB
JS errors
[
    {
        "message": "TypeError: Cannot read properties of null (reading 'appendChild')\n    at HTMLDocument.<anonymous> (/wp-content/plugins/zip-code-based-content-protection/admin/js/zipcode-bcp-admin.js?ver=1.0.0:304:45)\n    at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.8.1:2:27028)\n    at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.8.1:2:27330)",
        "trace": null,
        "code": null
    }
]
Resource errors None

ZBCP

Page screenshot: ZBCP
URL /wp-admin/admin.php?page=zbcp
Aspect menu-item
HTTP status 200
Load time 0.167 s
Memory usage 3.6 MiB
JS errors None
Resource errors None

ZBCP → Requested ZIP Codes

Page screenshot: ZBCP → Requested ZIP Codes
URL /wp-admin/admin.php?page=zbcp-requests
Aspect menu-item
HTTP status 200
Load time 0.156 s
Memory usage 3.6 MiB
JS errors
[
    {
        "message": "TypeError: Cannot read properties of null (reading 'appendChild')\n    at HTMLDocument.<anonymous> (/wp-content/plugins/zip-code-based-content-protection/admin/js/zipcode-bcp-admin.js?ver=1.0.0:304:45)\n    at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.8.1:2:27028)\n    at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.8.1:2:27330)",
        "trace": null,
        "code": null
    }
]
Resource errors None

ZBCP → User Requests

Page screenshot: ZBCP → User Requests
URL /wp-admin/admin.php?page=zbcp-users-requests
Aspect menu-item
HTTP status 200
Load time 0.159 s
Memory usage 3.61 MiB
JS errors
[
    {
        "message": "TypeError: Cannot read properties of null (reading 'appendChild')\n    at HTMLDocument.<anonymous> (/wp-content/plugins/zip-code-based-content-protection/admin/js/zipcode-bcp-admin.js?ver=1.0.0:304:45)\n    at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.8.1:2:27028)\n    at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.8.1:2:27330)",
        "trace": null,
        "code": null
    }
]
Resource errors None

ZBCP → Settings

Page screenshot: ZBCP → Settings
URL /wp-admin/admin.php?page=zbcp-settings
Aspect menu-item
HTTP status 200
Load time 0.173 s
Memory usage 3.6 MiB
JS errors
[
    {
        "message": "TypeError: Cannot read properties of null (reading 'appendChild')\n    at HTMLDocument.<anonymous> (/wp-content/plugins/zip-code-based-content-protection/admin/js/zipcode-bcp-admin.js?ver=1.0.0:304:45)\n    at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.8.1:2:27028)\n    at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.8.1:2:27330)",
        "trace": null,
        "code": null
    }
]
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 0.202 s
Memory usage 3.5 MiB
JS errors None
Resource errors None

Add Post ‹ Test site — WordPress

Page screenshot: Add Post ‹ Test site — WordPress
URL /wp-admin/post-new.php
Aspect new-meta-boxes
HTTP status 200
Load time 0.685 s
Memory usage 6.24 MiB
JS errors
[
    {
        "message": "TypeError: Cannot read properties of null (reading 'appendChild')\n    at HTMLDocument.<anonymous> (/wp-content/plugins/zip-code-based-content-protection/admin/js/zipcode-bcp-admin.js?ver=1.0.0:304:45)\n    at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.8.1:2:27028)\n    at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.8.1:2:27330)",
        "trace": null,
        "code": null
    }
]
Resource errors None

Add Page ‹ Test site — WordPress

Page screenshot: Add Page ‹ Test site — WordPress
URL /wp-admin/post-new.php?post_type=page
Aspect new-meta-boxes
HTTP status 200
Load time 0.689 s
Memory usage 6.16 MiB
JS errors
[
    {
        "message": "TypeError: Cannot read properties of null (reading 'appendChild')\n    at HTMLDocument.<anonymous> (/wp-content/plugins/zip-code-based-content-protection/admin/js/zipcode-bcp-admin.js?ver=1.0.0:304:45)\n    at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.8.1:2:27028)\n    at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.8.1:2:27330)",
        "trace": null,
        "code": null
    }
]
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.336 s0.309 s-0.027 s3.51 MiB3.62 MiB+ 119.09 KiB
/wp-admin/edit.php0.225 s0.216 s-0.009 s3.57 MiB3.67 MiB+ 99.54 KiB
/wp-admin/post-new.php0.840 s0.867 s+0.027 s6.06 MiB6.24 MiB+ 182.33 KiB
/wp-admin/upload.php0.811 s0.586 s-0.225 s3.52 MiB3.62 MiB+ 99.32 KiB
/wp-admin/options-writing.php0.237 s0.213 s-0.024 s3.5 MiB3.6 MiB+ 103.31 KiB
/wp-admin/media-new.php0.302 s0.256 s-0.046 s3.49 MiB3.6 MiB+ 111.51 KiB
/wp-admin/edit-tags.php?taxonomy=category0.195 s0.200 s+0.005 s3.5 MiB3.62 MiB+ 122.49 KiB
/wp-admin/post-new.php?post_type=page0.755 s0.640 s-0.115 s6.05 MiB6.16 MiB+ 113.85 KiB
/wp-admin/options-discussion.php0.292 s0.524 s+0.232 s3.5 MiB3.6 MiB+ 100.38 KiB
/wp-admin/edit-comments.php0.454 s0.273 s-0.181 s3.52 MiB3.62 MiB+ 99.26 KiB
/0.318 s0.232 s-0.086 s3.43 MiB3.5 MiB+ 69.74 KiB
Average 0.433 s0.392 s-0.041 s3.97 MiB4.08 MiB+ 110.98 KiB

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.

JSON
Language % Lines of code Comment lines Files
JSON99.3%341,93001
PHP0.5%1,6401,07717
JavaScript0.1%430862
CSS0.1%247142
Total 344,247 1,177 22

PHP Code Analysis | More results »

Lines of code 1,613
Total complexity 230
Median class complexity 10.0
Median method complexity 1.0
Most complex class Zipcode_BCP_Admin_Requested_Zipcodes
Most complex function Zipcode_BCP_Admin_Requested_Zipcodes::column_default()
Classes 15
Methods 114
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.

Database Tables 3

Options wp_options 9

Meta Boxes

{
    "post": {
        "global-post-page-zipcode-selector": {
            "title": "ZIP Code Based Content Protection",
            "context": "advanced"
        }
    },
    "page": {
        "global-post-page-zipcode-selector": {
            "title": "ZIP Code Based Content Protection",
            "context": "advanced"
        }
    },
    "attachment": {
        "global-post-page-zipcode-selector": {
            "title": "ZIP Code Based Content Protection",
            "context": "advanced"
        }
    }
}

PHP Error Log 4 lines

[08-May-2025 03:41:41 UTC] PHP Warning:  Undefined array key "zipcode_nonce" in /wp-content/plugins/zip-code-based-content-protection/admin/metas/class-zipcode-bcp-admin-post-page-meta.php on line 99
[08-May-2025 03:41:45 UTC] PHP Warning:  Undefined array key "zipcode_nonce" in /wp-content/plugins/zip-code-based-content-protection/admin/metas/class-zipcode-bcp-admin-post-page-meta.php on line 99
[08-May-2025 03:41:49 UTC] PHP Warning:  Undefined array key "zipcode_nonce" in /wp-content/plugins/zip-code-based-content-protection/admin/metas/class-zipcode-bcp-admin-post-page-meta.php on line 99
[08-May-2025 03:41:51 UTC] PHP Warning:  Undefined array key "zipcode_nonce" in /wp-content/plugins/zip-code-based-content-protection/admin/metas/class-zipcode-bcp-admin-post-page-meta.php on line 99
See also: All tests for this plugin, How to Hide ZIP Code Based Content Protection Admin Menus and Meta Boxes