ZIP Code Based Content Protection 1.0.0

Does "ZIP Code Based Content Protection" work with WordPress 6.7 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: 103.99 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.7
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=c62daef921
Aspect after-activation
HTTP status 200
Load time 0.300 s
Memory usage 3.62 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.7:2:27028)\n    at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.7: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.170 s
Memory usage 3.58 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.145 s
Memory usage 3.58 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.7:2:27028)\n    at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.7: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.150 s
Memory usage 3.58 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.7:2:27028)\n    at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.7: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.159 s
Memory usage 3.57 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.7:2:27028)\n    at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.7: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.47 MiB
JS errors None
Resource errors None

Add New Post ‹ Test site — WordPress

Page screenshot: Add New Post ‹ Test site — WordPress
URL /wp-admin/post-new.php
Aspect new-meta-boxes
HTTP status 200
Load time 0.618 s
Memory usage 6.07 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.7: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.7:2:27330)",
        "trace": null,
        "code": null
    }
]
Resource errors None

Add New Page ‹ Test site — WordPress

Page screenshot: Add New Page ‹ Test site — WordPress
URL /wp-admin/post-new.php?post_type=page
Aspect new-meta-boxes
HTTP status 200
Load time 0.590 s
Memory usage 6.06 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.7: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.7: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.283 s0.277 s-0.006 s3.48 MiB3.59 MiB+ 116.93 KiB
/wp-admin/edit.php0.184 s0.193 s+0.009 s3.54 MiB3.64 MiB+ 99.84 KiB
/wp-admin/post-new.php0.745 s0.630 s-0.115 s5.92 MiB6.07 MiB+ 147.81 KiB
/wp-admin/upload.php0.507 s0.450 s-0.057 s3.49 MiB3.59 MiB+ 99.62 KiB
/wp-admin/options-writing.php0.194 s0.194 s+0.000 s3.47 MiB3.57 MiB+ 103.61 KiB
/wp-admin/media-new.php0.263 s0.245 s-0.018 s3.46 MiB3.57 MiB+ 111.8 KiB
/wp-admin/edit-tags.php?taxonomy=category0.164 s0.183 s+0.019 s3.48 MiB3.6 MiB+ 122.79 KiB
/wp-admin/post-new.php?post_type=page0.601 s0.594 s-0.007 s5.92 MiB6.06 MiB+ 143.35 KiB
/wp-admin/options-discussion.php0.252 s0.423 s+0.171 s3.47 MiB3.57 MiB+ 100.73 KiB
/wp-admin/edit-comments.php0.187 s0.232 s+0.045 s3.49 MiB3.59 MiB+ 99.61 KiB
/0.284 s0.199 s-0.085 s3.48 MiB3.48 MiB- 2.26 KiB
Average 0.333 s0.329 s-0.004 s3.93 MiB4.03 MiB+ 103.99 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

[20-Nov-2024 22:47:02 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
[20-Nov-2024 22:47:06 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
[20-Nov-2024 22:47:09 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
[20-Nov-2024 22:47:12 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