Top Bar Notification & Sticky Banners 1.0.1

Does "Top Bar Notification & Sticky Banners" work with WordPress 6.8.1 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.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/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=46c3fda6ed
Aspect after-activation
HTTP status 200
Load time 0.933 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.335 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.729 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.256 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.369 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.278 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.343 s0.328 s-0.015 s3.51 MiB3.65 MiB+ 142.36 KiB
/wp-admin/edit.php0.208 s0.237 s+0.029 s3.57 MiB3.71 MiB+ 140.55 KiB
/wp-admin/post-new.php0.814 s1.167 s+0.353 s6.06 MiB6.25 MiB+ 187.63 KiB
/wp-admin/upload.php0.618 s0.515 s-0.103 s3.52 MiB3.65 MiB+ 128.68 KiB
/wp-admin/options-writing.php0.232 s0.189 s-0.043 s3.5 MiB3.63 MiB+ 131.59 KiB
/wp-admin/media-new.php0.259 s0.236 s-0.023 s3.49 MiB3.63 MiB+ 139.79 KiB
/wp-admin/edit-tags.php?taxonomy=category0.279 s0.197 s-0.082 s3.51 MiB3.65 MiB+ 145.27 KiB
/wp-admin/post-new.php?post_type=page0.608 s0.613 s+0.005 s6.05 MiB6.23 MiB+ 183.15 KiB
/wp-admin/options-discussion.php0.472 s0.307 s-0.165 s3.5 MiB3.63 MiB+ 128.72 KiB
/wp-admin/edit-comments.php0.417 s0.463 s+0.046 s3.52 MiB3.65 MiB+ 127.59 KiB
/0.330 s0.314 s-0.016 s3.43 MiB3.56 MiB+ 129.23 KiB
Average 0.416 s0.415 s-0.001 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