Booking.com Official Search Box 2.2.8

Does "Booking.com Official Search Box" work with WordPress 5.9 and PHP 7.4.8? A smoke test was performed on .

Summary

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

Memory usage: 60.61 KiB
The average PHP memory usage increased by this amount after activating by the plugin.

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

Environment
WordPress version5.9
PHP version7.4.8
MySQL version8.0.21
PHP memory limit256M
Plugin Info
Last updated
Active installs 2,000+
WordPress.org page https://wordpress.org/plugins/bookingcom-official-searchbox/
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=bookingcom-official-searchbox%2Fbooking-official-searchbox.php&plugin_status=all&paged=1&s&_wpnonce=fdbc85b31c
Aspect after-activation
HTTP status 200
Load time 0.849 s
Memory usage 3.32 MiB
JS errors
[
    {
        "message": "TypeError: Cannot read properties of null (reading 'offsetWidth')\n    at /wp-content/plugins/bookingcom-official-searchbox/assets/js/bos_main.js?ver=5.9:10:18\n    at /wp-content/plugins/bookingcom-official-searchbox/assets/js/bos_main.js?ver=5.9:99:3",
        "trace": null,
        "code": null
    }
]
Resource errors None

Settings → Booking.com Search Box

Page screenshot: Settings → Booking.com Search Box
URL /wp-admin/options-general.php?page=bos_searchbox
Aspect menu-item
HTTP status 200
Load time 0.611 s
Memory usage 3.29 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.980 s
Memory usage 3.38 MiB
JS errors
[
    {
        "message": "TypeError: Cannot read properties of null (reading 'offsetWidth')\n    at /wp-content/plugins/bookingcom-official-searchbox/assets/js/bos_main.js?ver=5.9:10:18\n    at /wp-content/plugins/bookingcom-official-searchbox/assets/js/bos_main.js?ver=5.9:99:3",
        "trace": null,
        "code": null
    }
]
Resource errors None

Add New Post ‹ Test site — WordPress

Page screenshot: Add New Post ‹ Test site — WordPress
URL /wp-admin/post-new.php
Aspect new-meta-boxes
HTTP status 200
Load time 1.525 s
Memory usage 6.21 MiB
JS errors
[
    {
        "message": "TypeError: Cannot read properties of null (reading 'offsetWidth')\n    at /wp-content/plugins/bookingcom-official-searchbox/assets/js/bos_main.js?ver=5.9:10:18\n    at /wp-content/plugins/bookingcom-official-searchbox/assets/js/bos_main.js?ver=5.9:99:3",
        "trace": null,
        "code": null
    }
]
Resource errors None

Add New Page ‹ Test site — WordPress

Page screenshot: Add New Page ‹ Test site — WordPress
URL /wp-admin/post-new.php?post_type=page
Aspect new-meta-boxes
HTTP status 200
Load time 1.645 s
Memory usage 6.2 MiB
JS errors
[
    {
        "message": "TypeError: Cannot read properties of null (reading 'offsetWidth')\n    at /wp-content/plugins/bookingcom-official-searchbox/assets/js/bos_main.js?ver=5.9:10:18\n    at /wp-content/plugins/bookingcom-official-searchbox/assets/js/bos_main.js?ver=5.9:99:3",
        "trace": null,
        "code": null
    }
]
Resource errors None

Widgets ‹ Test site — WordPress

Page screenshot: Widgets ‹ Test site — WordPress
URL /wp-admin/widgets.php
Aspect new-sidebar-widgets
HTTP status 200
Load time 2.390 s
Memory usage 5.19 MiB
JS errors
[
    {
        "message": "TypeError: Cannot read properties of null (reading 'offsetWidth')\n    at /wp-content/plugins/bookingcom-official-searchbox/assets/js/bos_main.js?ver=5.9:10:18\n    at /wp-content/plugins/bookingcom-official-searchbox/assets/js/bos_main.js?ver=5.9:99:3",
        "trace": null,
        "code": null
    }
]
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.444 s0.756 s+0.312 s3.36 MiB3.43 MiB+ 62.98 KiB
/wp-admin/edit.php0.281 s0.323 s+0.042 s3.39 MiB3.46 MiB+ 64.88 KiB
/wp-admin/post-new.php1.532 s2.061 s+0.529 s6.14 MiB6.21 MiB+ 63.7 KiB
/wp-admin/upload.php0.836 s0.812 s-0.024 s3.24 MiB3.31 MiB+ 71.04 KiB
/wp-admin/options-writing.php0.420 s0.293 s-0.127 s3.24 MiB3.29 MiB+ 56.96 KiB
/wp-admin/media-new.php0.398 s0.386 s-0.012 s3.22 MiB3.29 MiB+ 74.91 KiB
/wp-admin/edit-tags.php?taxonomy=category0.218 s0.331 s+0.113 s3.25 MiB3.32 MiB+ 69.67 KiB
/wp-admin/post-new.php?post_type=page1.359 s1.669 s+0.310 s6.14 MiB6.2 MiB+ 59.28 KiB
/wp-admin/options-discussion.php0.452 s0.687 s+0.235 s3.22 MiB3.29 MiB+ 73.59 KiB
/wp-admin/edit-comments.php0.331 s0.384 s+0.053 s3.26 MiB3.35 MiB+ 93.15 KiB
/0.427 s0.444 s+0.017 s3.4 MiB3.38 MiB- 23.41 KiB
Average 0.609 s0.741 s+0.132 s3.81 MiB3.87 MiB+ 60.61 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.

PO File
PHP
Language % Lines of code Comment lines Files
PO File67.0%4,5012,47114
PHP19.2%1,28920812
JavaScript7.7%520293
CSS6.0%404152
Total 6,714 2,723 31

PHP Code Analysis | More results »

Lines of code 1,208
Total complexity 229
Median class complexity 4.0
Median method complexity 1.0
Most complex class bos_searchbox_widget
Most complex function bos_searchbox_validate_options()
Classes 1
Methods 4
Functions 28

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 1

Sidebar Widgets 1

ID Name
bos_searchbox_widget_classBooking.com Official Search Box

Meta Boxes

{
    "post": {
        "bos_dest": {
            "title": "Booking.com search box destination",
            "context": "normal"
        }
    },
    "page": {
        "bos_dest": {
            "title": "Booking.com search box destination",
            "context": "normal"
        }
    }
}

PHP Error Log

The log file is empty.

See also: All tests for this plugin, How to Hide Booking.com Official Search Box Admin Menus and Meta Boxes