Top Bar Notification & Sticky Banners 1.0.1

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: 144.29 KiB
The average PHP memory usage increased by this amount after activating by the plugin.

Page speed impact: 0.024 seconds
The average page load time increased by this amount after activating the plugin.

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=1cbf14ee9a
Aspect after-activation
HTTP status 200
Load time 1.016 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.292 s
Memory usage 3.68 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.777 s
Memory usage 3.73 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.279 s
Memory usage 3.7 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.396 s
Memory usage 3.6 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.407 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.475 s0.454 s-0.021 s3.48 MiB3.62 MiB+ 142.58 KiB
/wp-admin/edit.php0.214 s0.233 s+0.019 s3.54 MiB3.68 MiB+ 140.77 KiB
/wp-admin/post-new.php0.865 s1.266 s+0.401 s5.93 MiB6.14 MiB+ 221.7 KiB
/wp-admin/upload.php0.610 s0.610 s+0.000 s3.5 MiB3.62 MiB+ 128.59 KiB
/wp-admin/options-writing.php0.204 s0.210 s+0.006 s3.47 MiB3.6 MiB+ 131.81 KiB
/wp-admin/media-new.php0.268 s0.260 s-0.008 s3.46 MiB3.6 MiB+ 140.01 KiB
/wp-admin/edit-tags.php?taxonomy=category0.167 s0.190 s+0.023 s3.48 MiB3.62 MiB+ 145.49 KiB
/wp-admin/post-new.php?post_type=page1.102 s0.762 s-0.340 s5.92 MiB6.13 MiB+ 217.23 KiB
/wp-admin/options-discussion.php0.308 s0.471 s+0.163 s3.48 MiB3.6 MiB+ 128.94 KiB
/wp-admin/edit-comments.php0.266 s0.305 s+0.039 s3.5 MiB3.62 MiB+ 127.81 KiB
/0.352 s0.335 s-0.017 s3.47 MiB3.54 MiB+ 62.25 KiB
Average 0.439 s0.463 s+0.024 s3.93 MiB4.07 MiB+ 144.29 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