Booking.com Official Search Box 2.2.7

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

Summary

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

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

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

Environment
WordPress version5.8.3
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=af32d9ff46
Aspect after-activation
HTTP status 200
Load time 0.728 s
Memory usage 3.1 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.8.3:10:18\n    at /wp-content/plugins/bookingcom-official-searchbox/assets/js/bos_main.js?ver=5.8.3: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.280 s
Memory usage 3.07 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.547 s
Memory usage 2.94 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.8.3:10:18\n    at /wp-content/plugins/bookingcom-official-searchbox/assets/js/bos_main.js?ver=5.8.3: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 0.689 s
Memory usage 5.34 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.8.3:10:18\n    at /wp-content/plugins/bookingcom-official-searchbox/assets/js/bos_main.js?ver=5.8.3: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 0.935 s
Memory usage 5.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.8.3:10:18\n    at /wp-content/plugins/bookingcom-official-searchbox/assets/js/bos_main.js?ver=5.8.3: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 1.676 s
Memory usage 4.52 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.8.3:10:18\n    at /wp-content/plugins/bookingcom-official-searchbox/assets/js/bos_main.js?ver=5.8.3:99:3",
        "trace": null,
        "code": null
    },
    {
        "message": "TypeError: Cannot read properties of null (reading 'offsetWidth')\n    at /wp-content/plugins/bookingcom-official-searchbox/assets/js/bos_main.js?ver=5.8.3:10:18\n    at /wp-content/plugins/bookingcom-official-searchbox/assets/js/bos_main.js?ver=5.8.3:99:3",
        "trace": null,
        "code": null
    },
    {
        "message": "TypeError: Cannot read properties of null (reading 'offsetWidth')\n    at /wp-content/plugins/bookingcom-official-searchbox/assets/js/bos_main.js?ver=5.8.3:10:18\n    at /wp-content/plugins/bookingcom-official-searchbox/assets/js/bos_main.js?ver=5.8.3: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.306 s0.492 s+0.186 s3.08 MiB3.14 MiB+ 62.98 KiB
/wp-admin/edit.php0.168 s0.243 s+0.075 s3.11 MiB3.24 MiB+ 129.59 KiB
/wp-admin/post-new.php0.726 s1.070 s+0.344 s5.27 MiB5.34 MiB+ 69.86 KiB
/wp-admin/upload.php0.493 s0.547 s+0.054 s3.03 MiB3.09 MiB+ 63.04 KiB
/wp-admin/options-writing.php0.260 s0.305 s+0.045 s3.02 MiB3.07 MiB+ 49.09 KiB
/wp-admin/media-new.php0.437 s0.308 s-0.129 s3.01 MiB3.07 MiB+ 66.91 KiB
/wp-admin/edit-tags.php?taxonomy=category0.197 s0.218 s+0.021 s3.04 MiB3.1 MiB+ 61.67 KiB
/wp-admin/post-new.php?post_type=page0.580 s0.692 s+0.112 s5.26 MiB5.32 MiB+ 65.45 KiB
/wp-admin/options-discussion.php0.220 s0.306 s+0.086 s3 MiB3.07 MiB+ 65.59 KiB
/wp-admin/edit-comments.php0.214 s0.410 s+0.196 s3.04 MiB3.11 MiB+ 66.91 KiB
/0.320 s0.298 s-0.022 s2.91 MiB2.94 MiB+ 26.06 KiB
Average 0.356 s0.444 s+0.088 s3.43 MiB3.5 MiB+ 66.1 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