Top Bar Notification & Sticky Banners 1.0.1

Does "Top Bar Notification & Sticky Banners" work with WordPress 6.8.2 and PHP 8.1.12? A smoke test was performed on .

Summary

Errors
No PHP errors, warnings or notices
No JavaScript exceptions
All test pages loaded successfully
No resource errors
Looks good! No problems were detected.
Performance

Memory usage: 144.05 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.2
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/top-bar-notification-sticky-banners/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 6

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=top-bar-notification-sticky-banners%2Ftop-bar-notification-sticky-banners.php&plugin_status=all&paged=1&s&_wpnonce=4fe244b2af
Aspect after-activation
HTTP status 200
Load time 0.873 s
Memory usage 3.84 MiB
JS errors None
Resource errors None

Top Bar NSB

Page screenshot: Top Bar NSB
URL /wp-admin/edit.php?post_type=topbarnsb
Aspect menu-item
HTTP status 200
Load time 0.277 s
Memory usage 3.71 MiB
JS errors None
Resource errors None

Top Bar NSB → Add a new banner

Page screenshot: Top Bar NSB → Add a new banner
URL /wp-admin/post-new.php?post_type=topbarnsb
Aspect menu-item
HTTP status 200
Load time 0.776 s
Memory usage 3.76 MiB
JS errors None
Resource errors None

Top Bar NSB → Banner styles

Page screenshot: Top Bar NSB → Banner styles
URL /wp-admin/edit.php?post_type=topbarnsb-style
Aspect menu-item
HTTP status 200
Load time 0.281 s
Memory usage 3.73 MiB
JS errors None
Resource errors None

Top Bar NSB → Settings

Page screenshot: Top Bar NSB → Settings
URL /wp-admin/edit.php?post_type=topbarnsb&page=topbarnsb-settings
Aspect menu-item
HTTP status 200
Load time 0.375 s
Memory usage 3.63 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 0.293 s
Memory usage 3.56 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.303 s0.306 s+0.003 s3.51 MiB3.65 MiB+ 142.36 KiB
/wp-admin/edit.php0.201 s0.212 s+0.011 s3.57 MiB3.71 MiB+ 140.55 KiB
/wp-admin/post-new.php0.751 s0.632 s-0.119 s6.06 MiB6.24 MiB+ 187.62 KiB
/wp-admin/upload.php0.719 s0.549 s-0.170 s3.52 MiB3.65 MiB+ 128.68 KiB
/wp-admin/options-writing.php0.194 s0.209 s+0.015 s3.5 MiB3.63 MiB+ 131.59 KiB
/wp-admin/media-new.php0.261 s0.196 s-0.065 s3.49 MiB3.63 MiB+ 139.79 KiB
/wp-admin/edit-tags.php?taxonomy=category0.167 s0.199 s+0.032 s3.5 MiB3.65 MiB+ 145.27 KiB
/wp-admin/post-new.php?post_type=page0.602 s0.625 s+0.023 s6.05 MiB6.23 MiB+ 183.15 KiB
/wp-admin/options-discussion.php0.323 s0.308 s-0.015 s3.5 MiB3.63 MiB+ 128.72 KiB
/wp-admin/edit-comments.php0.204 s0.412 s+0.208 s3.52 MiB3.65 MiB+ 127.59 KiB
/0.305 s0.343 s+0.038 s3.43 MiB3.56 MiB+ 129.23 KiB
Average 0.366 s0.363 s-0.004 s3.97 MiB4.11 MiB+ 144.05 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.

PHP
CSS
JavaScript
Language % Lines of code Comment lines Files
PHP64.4%2,74681312
CSS18.3%779543
JavaScript16.8%7161324
SVG0.2%901
HTML0.1%621
XML0.1%601
Total 4,262 1,001 22

PHP Code Analysis | More results »

Lines of code 1,713
Total complexity 418
Median class complexity 189.0
Median method complexity 5.0
Most complex class TopBarNSB
Most complex function TopBarNSB::print_banners()
Classes 1
Methods 29
Functions 0

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 3

Custom Post Types 2

ID Name
topbarnsbBanners
topbarnsb-styleStyles

Meta Boxes

{
    "topbarnsb": {
        "topbarnsb_banner_preview": {
            "title": "Banner preview",
            "context": "normal"
        },
        "topbarnsb_banner_cf": {
            "title": "Banner settings",
            "context": "normal"
        }
    },
    "topbarnsb-style": {
        "topbarnsb_style_cf": {
            "title": "Style settings",
            "context": "normal"
        }
    }
}

PHP Error Log

The log file is empty.

See also: All tests for this plugin, How to Hide Top Bar Notification & Sticky Banners Admin Menus and Meta Boxes