ZIP Code Based Content Protection 1.0.1

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

Summary

Errors
No PHP errors, warnings or notices
6JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

Memory usage: 110.9 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.3
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=b1a9b5555c
Aspect after-activation
HTTP status 200
Load time 0.301 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.1:304:45)\n    at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.8.3:2:27028)\n    at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.8.3: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.132 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.150 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.1:304:45)\n    at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.8.3:2:27028)\n    at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.8.3: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.127 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.1:304:45)\n    at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.8.3:2:27028)\n    at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.8.3: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.144 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.1:304:45)\n    at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.8.3:2:27028)\n    at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.8.3: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.166 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.552 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.1: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.3: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.3: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.534 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.1: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.3: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.3: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.285 s0.262 s-0.023 s3.51 MiB3.62 MiB+ 119.09 KiB
/wp-admin/edit.php0.171 s0.194 s+0.023 s3.57 MiB3.67 MiB+ 99.54 KiB
/wp-admin/post-new.php0.642 s0.659 s+0.017 s6.06 MiB6.24 MiB+ 182.08 KiB
/wp-admin/upload.php0.686 s0.520 s-0.166 s3.52 MiB3.62 MiB+ 99.32 KiB
/wp-admin/options-writing.php0.180 s0.173 s-0.007 s3.5 MiB3.6 MiB+ 103.31 KiB
/wp-admin/media-new.php0.216 s0.175 s-0.041 s3.49 MiB3.6 MiB+ 111.51 KiB
/wp-admin/edit-tags.php?taxonomy=category0.150 s0.164 s+0.014 s3.5 MiB3.62 MiB+ 122.49 KiB
/wp-admin/post-new.php?post_type=page0.529 s0.532 s+0.003 s6.05 MiB6.16 MiB+ 113.6 KiB
/wp-admin/options-discussion.php0.381 s0.405 s+0.024 s3.5 MiB3.6 MiB+ 100.44 KiB
/wp-admin/edit-comments.php0.216 s0.219 s+0.003 s3.52 MiB3.62 MiB+ 99.31 KiB
/0.251 s0.169 s-0.082 s3.43 MiB3.5 MiB+ 69.19 KiB
Average 0.337 s0.316 s-0.021 s3.97 MiB4.08 MiB+ 110.9 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,6661,08017
JavaScript0.1%430862
CSS0.1%247142
Total 344,273 1,180 22

PHP Code Analysis | More results »

Lines of code 1,639
Total complexity 240
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

The log file is empty.

See also: All tests for this plugin, How to Hide ZIP Code Based Content Protection Admin Menus and Meta Boxes