WP Custom Google Search 1.0

Does WP Custom Google Search work with WordPress 6.5.2 and PHP 8.1.12? A smoke test was performed on .

Summary

Errors
2PHP fatal errors
2PHP warnings
3PHP notices
33PHP deprecation warnings
No JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

Memory usage: -644.8 bytes
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 version6.5.2
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs 50+
WordPress.org page https://wordpress.org/plugins/wp-custom-google-search/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 4

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=wp-custom-google-search%2Fwp-custom-google-search.php&plugin_status=all&paged=1&s&_wpnonce=c444b8c762
Aspect after-activation
HTTP status 200
Load time 0.227 s
Memory usage 3.39 MiB
JS errors None
Resource errors None

Settings → WP Custom Google Search

Page screenshot: Settings → WP Custom Google Search
URL /wp-admin/options-general.php?page=wp-custom-google-search
Aspect menu-item
HTTP status 200
Load time 0.326 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.186 s
Memory usage 3.37 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 0.210 s
Memory usage N/A
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.340 s0.286 s-0.054 s3.44 MiB3.45 MiB+ 12.68 KiB
/wp-admin/edit.php0.190 s0.173 s-0.017 s3.46 MiB3.47 MiB+ 13.05 KiB
/wp-admin/post-new.php0.818 s0.205 s-0.613 s5.59 MiB
/wp-admin/upload.php0.591 s0.374 s-0.217 s3.38 MiB3.38 MiB- 3.4 KiB
/wp-admin/options-writing.php0.205 s0.170 s-0.035 s3.37 MiB3.36 MiB- 10.61 KiB
/wp-admin/media-new.php0.280 s0.297 s+0.017 s3.35 MiB3.36 MiB+ 9.62 KiB
/wp-admin/edit-tags.php?taxonomy=category0.176 s0.169 s-0.007 s3.37 MiB3.38 MiB+ 13.96 KiB
/wp-admin/post-new.php?post_type=page0.548 s1.275 s+0.727 s5.59 MiB5.6 MiB+ 15.83 KiB
/wp-admin/options-discussion.php0.520 s0.235 s-0.285 s3.36 MiB3.36 MiB- 2.08 KiB
/wp-admin/edit-comments.php0.239 s0.195 s-0.044 s3.39 MiB3.39 MiB- 4.15 KiB
/0.272 s0.201 s-0.071 s3.42 MiB3.37 MiB- 51.2 KiB
Average 0.380 s0.325 s-0.054 s3.79 MiB3.61 MiB- 644.8 bytes

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
PO File
Language % Lines of code Comment lines Files
PHP69.6%5172885
PO File30.4%2262122
Total 743 500 7

PHP Code Analysis | More results »

Lines of code 517
Total complexity 61
Median class complexity 9.5
Median method complexity 1.0
Most complex class CustomGoogleSearchAdmin
Most complex function CustomGoogleSearchOptions::getAdminGoogleMetaboxData()
Classes 4
Methods 20
Functions 2

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.

Meta Boxes

{
    "post": {
        "wp-cgs": {
            "title": "WP Custom Google Search",
            "context": "normal"
        }
    }
}

PHP Error Log 54 lines

[23-Apr-2024 17:01:52 UTC] PHP Warning:  The magic method CustomGoogleSearchOptions::__get() must have public visibility in /wp-content/plugins/wp-custom-google-search/CustomGoogleSearchOptions.php on line 482
[23-Apr-2024 17:01:52 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6078
[23-Apr-2024 17:01:52 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6078
[23-Apr-2024 17:01:53 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6078
[23-Apr-2024 17:01:53 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6078
[23-Apr-2024 17:01:54 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6078
[23-Apr-2024 17:01:54 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6078
[23-Apr-2024 17:01:54 UTC] PHP Warning:  Undefined array key "action" in /wp-content/plugins/wp-custom-google-search/CustomGoogleSearchAdmin.php on line 91
[23-Apr-2024 17:01:55 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6078
[23-Apr-2024 17:01:55 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6078
[23-Apr-2024 17:01:56 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6078
[23-Apr-2024 17:01:56 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6078
[23-Apr-2024 17:01:56 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6078
[23-Apr-2024 17:01:56 UTC] PHP Notice:  Function map_meta_cap was called incorrectly. When checking for the edit_post capability, you must always check it against a specific post. Please see <a>Debugging in WordPress</a> for more information. (This message was added in version 6.1.0.) in /wp-includes/functions.php on line 6078
[23-Apr-2024 17:01:56 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6078
[23-Apr-2024 17:01:56 UTC] PHP Fatal error:  Uncaught TypeError: Cannot access offset of type string on string in /wp-content/plugins/wp-custom-google-search/CustomGoogleSearchAdmin.php:132
Stack trace:
#0 /wp-admin/includes/template.php(1456): CustomGoogleSearchAdmin->postMetaboxSearchText()
#1 /wp-admin/includes/post.php(2383): do_meta_boxes()
#2 /wp-admin/edit-form-blocks.php(316): the_block_editor_meta_boxes()
#3 /wp-admin/post-new.php(72): require('...')
#4 {main}
  thrown in /wp-content/plugins/wp-custom-google-search/CustomGoogleSearchAdmin.php on line 132
[23-Apr-2024 17:01:56 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6078
[23-Apr-2024 17:01:56 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6078
[23-Apr-2024 17:01:56 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6078
[23-Apr-2024 17:01:56 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6078
[23-Apr-2024 17:01:57 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6078
[23-Apr-2024 17:01:57 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6078
[23-Apr-2024 17:01:57 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6078
[23-Apr-2024 17:01:57 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6078
[23-Apr-2024 17:01:57 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6078
[23-Apr-2024 17:01:57 UTC] PHP Notice:  Function map_meta_cap was called incorrectly. When checking for the edit_post capability, you must always check it against a specific post. Please see <a>Debugging in WordPress</a> for more information. (This message was added in version 6.1.0.) in /wp-includes/functions.php on line 6078
[23-Apr-2024 17:01:57 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6078
[23-Apr-2024 17:02:01 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6078
[23-Apr-2024 17:02:01 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6078
[23-Apr-2024 17:02:01 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6078
[23-Apr-2024 17:02:01 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6078
[23-Apr-2024 17:02:02 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6078
[23-Apr-2024 17:02:02 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6078
[23-Apr-2024 17:02:02 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6078
[23-Apr-2024 17:02:02 UTC] PHP Notice:  Function map_meta_cap was called incorrectly. When checking for the edit_post capability, you must always check it against a specific post. Please see <a>Debugging in WordPress</a> for more information. (This message was added in version 6.1.0.) in /wp-includes/functions.php on line 6078
[23-Apr-2024 17:02:02 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6078
[23-Apr-2024 17:02:02 UTC] PHP Fatal error:  Uncaught TypeError: Cannot access offset of type string on string in /wp-content/plugins/wp-custom-google-search/CustomGoogleSearchAdmin.php:132
Stack trace:
#0 /wp-admin/includes/template.php(1456): CustomGoogleSearchAdmin->postMetaboxSearchText()
#1 /wp-admin/includes/post.php(2383): do_meta_boxes()
#2 /wp-admin/edit-form-blocks.php(316): the_block_editor_meta_boxes()
#3 /wp-admin/post-new.php(72): require('...')
#4 {main}
  thrown in /wp-content/plugins/wp-custom-google-search/CustomGoogleSearchAdmin.php on line 132
[23-Apr-2024 17:02:03 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6078
[23-Apr-2024 17:02:03 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6078
[23-Apr-2024 17:02:03 UTC] PHP Deprecated:  Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead. in /wp-includes/functions.php on line 6078
See also: All tests for this plugin