Booking.com Official Search Box 2.2.4

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: 61.77 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 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=1bb065f54a
Aspect after-activation
HTTP status 200
Load time 0.666 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:9:18\n    at /wp-content/plugins/bookingcom-official-searchbox/assets/js/bos_main.js?ver=5.8.3:89: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.276 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.521 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:9:18\n    at /wp-content/plugins/bookingcom-official-searchbox/assets/js/bos_main.js?ver=5.8.3:89: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.933 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:9:18\n    at /wp-content/plugins/bookingcom-official-searchbox/assets/js/bos_main.js?ver=5.8.3:89: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.092 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:9:18\n    at /wp-content/plugins/bookingcom-official-searchbox/assets/js/bos_main.js?ver=5.8.3:89: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.900 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:9:18\n    at /wp-content/plugins/bookingcom-official-searchbox/assets/js/bos_main.js?ver=5.8.3:89: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:9:18\n    at /wp-content/plugins/bookingcom-official-searchbox/assets/js/bos_main.js?ver=5.8.3:89: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:9:18\n    at /wp-content/plugins/bookingcom-official-searchbox/assets/js/bos_main.js?ver=5.8.3:89:3",
        "trace": null,
        "code": null
    }
]
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.310 s0.331 s+0.021 s3.08 MiB3.14 MiB+ 62.98 KiB
/wp-admin/edit.php0.185 s0.389 s+0.204 s3.11 MiB3.24 MiB+ 129.59 KiB
/wp-admin/post-new.php1.470 s1.196 s-0.274 s5.27 MiB5.34 MiB+ 69.86 KiB
/wp-admin/upload.php0.397 s0.405 s+0.008 s3.03 MiB3.09 MiB+ 63.04 KiB
/wp-admin/options-writing.php0.145 s0.179 s+0.034 s3.02 MiB3.07 MiB+ 49.09 KiB
/wp-admin/media-new.php0.389 s0.551 s+0.162 s3.01 MiB3.07 MiB+ 66.91 KiB
/wp-admin/edit-tags.php?taxonomy=category0.190 s0.232 s+0.042 s3.04 MiB3.1 MiB+ 61.67 KiB
/wp-admin/post-new.php?post_type=page1.059 s0.920 s-0.139 s5.26 MiB5.32 MiB+ 65.45 KiB
/wp-admin/options-discussion.php0.210 s0.283 s+0.073 s3 MiB3.07 MiB+ 65.59 KiB
/wp-admin/edit-comments.php0.206 s0.238 s+0.032 s3.04 MiB3.11 MiB+ 66.91 KiB
/0.264 s0.275 s+0.011 s2.96 MiB2.94 MiB- 21.6 KiB
Average 0.439 s0.454 s+0.016 s3.44 MiB3.5 MiB+ 61.77 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.3%4,5012,47114
PHP19.3%1,28920812
JavaScript7.6%510293
CSS5.8%390672
Total 6,690 2,775 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