Top Bar Notification & Sticky Banners 1.0.0

Does "Top Bar Notification & Sticky Banners" work with WordPress 6.7.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: 198.88 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.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=c7edd33656
Aspect after-activation
HTTP status 200
Load time 0.811 s
Memory usage 3.82 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.245 s
Memory usage 3.72 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.700 s
Memory usage 3.78 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.257 s
Memory usage 3.72 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.316 s
Memory usage 3.67 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.249 s
Memory usage 3.54 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.278 s0.317 s+0.039 s3.48 MiB3.68 MiB+ 204.99 KiB
/wp-admin/edit.php0.182 s0.172 s-0.010 s3.54 MiB3.74 MiB+ 197.88 KiB
/wp-admin/post-new.php0.706 s0.598 s-0.108 s5.93 MiB6.18 MiB+ 264.22 KiB
/wp-admin/upload.php0.504 s0.530 s+0.026 s3.5 MiB3.69 MiB+ 195.59 KiB
/wp-admin/options-writing.php0.181 s0.185 s+0.004 s3.47 MiB3.67 MiB+ 198.19 KiB
/wp-admin/media-new.php0.238 s0.221 s-0.017 s3.46 MiB3.67 MiB+ 206.38 KiB
/wp-admin/edit-tags.php?taxonomy=category0.156 s0.172 s+0.016 s3.48 MiB3.68 MiB+ 211.87 KiB
/wp-admin/post-new.php?post_type=page0.520 s0.556 s+0.036 s5.92 MiB6.18 MiB+ 261.94 KiB
/wp-admin/options-discussion.php0.248 s0.244 s-0.004 s3.48 MiB3.67 MiB+ 195.31 KiB
/wp-admin/edit-comments.php0.210 s0.396 s+0.186 s3.5 MiB3.69 MiB+ 194.19 KiB
/0.278 s0.275 s-0.003 s3.48 MiB3.54 MiB+ 57.19 KiB
Average 0.318 s0.333 s+0.015 s3.93 MiB4.13 MiB+ 198.88 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.2%2,71580612
CSS18.4%779543
JavaScript16.9%7161324
SVG0.2%901
HTML0.1%621
XML0.1%601
Total 4,231 994 22

PHP Code Analysis | More results »

Lines of code 1,682
Total complexity 410
Median class complexity 181.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