Booking.com Official Search Box 2.2.1

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

Summary

Errors
1PHP notices
No JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

Memory usage: 58.12 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.1
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=779dc921b3
Aspect after-activation
HTTP status 200
Load time 0.251 s
Memory usage 3.1 MiB
JS errors None
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.420 s
Memory usage 3.37 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.238 s
Memory usage 2.93 MiB
JS errors None
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.088 s
Memory usage 5.33 MiB
JS errors None
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.078 s
Memory usage 5.32 MiB
JS errors None
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.867 s
Memory usage 4.52 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.598 s0.262 s-0.336 s3.08 MiB3.14 MiB+ 61.01 KiB
/wp-admin/edit.php0.214 s0.198 s-0.016 s3.11 MiB3.23 MiB+ 125.01 KiB
/wp-admin/post-new.php1.140 s0.987 s-0.153 s5.27 MiB5.33 MiB+ 68.57 KiB
/wp-admin/upload.php0.635 s0.318 s-0.317 s3.03 MiB3.09 MiB+ 59.25 KiB
/wp-admin/options-writing.php0.166 s0.219 s+0.053 s3.02 MiB3.06 MiB+ 43.16 KiB
/wp-admin/media-new.php0.262 s0.188 s-0.074 s3.01 MiB3.06 MiB+ 60.05 KiB
/wp-admin/edit-tags.php?taxonomy=category0.216 s0.190 s-0.026 s3.04 MiB3.1 MiB+ 60.33 KiB
/wp-admin/post-new.php?post_type=page1.204 s1.046 s-0.158 s5.26 MiB5.32 MiB+ 63.53 KiB
/wp-admin/options-discussion.php0.239 s0.302 s+0.063 s3 MiB3.06 MiB+ 60.3 KiB
/wp-admin/edit-comments.php0.215 s0.216 s+0.001 s3.04 MiB3.1 MiB+ 59.23 KiB
/0.427 s0.247 s-0.180 s2.96 MiB2.93 MiB- 21.14 KiB
Average 0.483 s0.379 s-0.104 s3.44 MiB3.49 MiB+ 58.12 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
JavaScript
Language % Lines of code Comment lines Files
PO File64.9%4,5382,13314
PHP21.1%1,47216910
JavaScript9.3%648373
CSS4.8%333122
Total 6,991 2,351 29

PHP Code Analysis | More results »

Lines of code 1,301
Total complexity 259
Median class complexity 3.0
Median method complexity 1.0
Most complex class bos_searchbox_widget
Most complex function bos_dateSelector()
Classes 2
Methods 6
Functions 26

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 2

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 1 lines

[10-Sep-2021 01:23:38 UTC] PHP Notice:  Trying to access array offset on value of type bool in /wp-content/plugins/bookingcom-official-searchbox/includes/bos_forms.php on line 510
See also: All tests for this plugin, How to Hide Booking.com Official Search Box Admin Menus and Meta Boxes