OneSignal Push Notifications 3.1.1

Does OneSignal Push Notifications work with WordPress 6.7.2 and PHP 8.1.12? A smoke test was performed on .

Summary

Errors
14PHP warnings
4Unrecognized messages in the PHP error log
1JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

Memory usage: 7.02 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 version6.7.2
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs 90,000+
WordPress.org page https://wordpress.org/plugins/onesignal-free-web-push-notifications/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 5

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=onesignal-free-web-push-notifications%2Fonesignal.php&plugin_status=all&paged=1&s&_wpnonce=c70b7d1836
Aspect after-activation
HTTP status 200
Load time 0.288 s
Memory usage 3.51 MiB
JS errors None
Resource errors None

OneSignal

Page screenshot: OneSignal
URL /wp-admin/admin.php?page=onesignal-admin-page.php
Aspect menu-item
HTTP status 200
Load time 0.338 s
Memory usage 3.47 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.386 s
Memory usage 3.42 MiB
JS errors
[
    {
        "message": "SdkInitError: OneSignal: This app ID does not match any existing app. Double check your app ID.\n    at Function.<anonymous> (https://cdn.onesignal.com/sdks/web/v16/OneSignalSDK.page.es6.js?v=160300:1:23832)\n    at Generator.next (<anonymous>)\n    at https://cdn.onesignal.com/sdks/web/v16/OneSignalSDK.page.es6.js?v=160300:1:269013\n    at new Promise (<anonymous>)\n    at o (https://cdn.onesignal.com/sdks/web/v16/OneSignalSDK.page.es6.js?v=160300:1:268758)\n    at Function.getAppConfig (https://cdn.onesignal.com/sdks/web/v16/OneSignalSDK.page.es6.js?v=160300:1:23746)\n    at se.<anonymous> (https://cdn.onesignal.com/sdks/web/v16/OneSignalSDK.page.es6.js?v=160300:1:35601)\n    at Generator.next (<anonymous>)\n    at https://cdn.onesignal.com/sdks/web/v16/OneSignalSDK.page.es6.js?v=160300:1:269013\n    at new Promise (<anonymous>)",
        "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.994 s
Memory usage 5.98 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 0.805 s
Memory usage 5.97 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.341 s0.317 s-0.024 s3.48 MiB3.49 MiB+ 12.59 KiB
/wp-admin/edit.php0.213 s0.213 s+0.000 s3.54 MiB3.56 MiB+ 12.59 KiB
/wp-admin/post-new.php0.804 s0.844 s+0.040 s5.93 MiB5.98 MiB+ 53.81 KiB
/wp-admin/upload.php0.768 s0.368 s-0.400 s3.5 MiB3.49 MiB- 4.82 KiB
/wp-admin/options-writing.php0.210 s0.418 s+0.208 s3.47 MiB3.47 MiB- 848 bytes
/wp-admin/media-new.php0.287 s0.288 s+0.001 s3.46 MiB3.47 MiB+ 7.37 KiB
/wp-admin/edit-tags.php?taxonomy=category0.187 s0.196 s+0.009 s3.48 MiB3.49 MiB+ 18.04 KiB
/wp-admin/post-new.php?post_type=page0.686 s0.823 s+0.137 s5.92 MiB5.97 MiB+ 49.34 KiB
/wp-admin/options-discussion.php0.294 s0.293 s-0.001 s3.48 MiB3.47 MiB- 4.33 KiB
/wp-admin/edit-comments.php0.226 s0.225 s-0.001 s3.5 MiB3.49 MiB- 4.83 KiB
/0.322 s0.250 s-0.072 s3.48 MiB3.42 MiB- 61.66 KiB
Average 0.394 s0.385 s-0.009 s3.93 MiB3.94 MiB+ 7.02 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.

PHP
CSS
JavaScript
SVG
Language % Lines of code Comment lines Files
PHP52.7%2,59928715
CSS22.5%1,1115038
JavaScript12.5%615966
SVG11.9%58503
HTML0.4%2035
Total 4,930 889 37

PHP Code Analysis | More results »

Lines of code 2,014
Total complexity 412
Median class complexity 31.0
Median method complexity 2.0
Most complex class OneSignal_Admin
Most complex function OneSignal_Public::onesignal_header()
Classes 5
Methods 46
Functions 25

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

Meta Boxes

{
    "post": {
        "onesignal_metabox": {
            "title": "OneSignal Push Notifications",
            "context": "advanced"
        }
    },
    "page": {
        "onesignal_metabox": {
            "title": "OneSignal Push Notifications",
            "context": "advanced"
        }
    }
}

PHP Error Log 18 lines

[14-Feb-2025 20:38:49 UTC] PHP Warning:  Trying to access array offset on value of type bool in /wp-content/plugins/onesignal-free-web-push-notifications/v3/onesignal-init.php on line 20
[14-Feb-2025 20:38:50 UTC] PHP Warning:  Trying to access array offset on value of type bool in /wp-content/plugins/onesignal-free-web-push-notifications/v3/onesignal-metabox/onesignal-metabox.php on line 23
[14-Feb-2025 20:38:50 UTC] PHP Warning:  Trying to access array offset on value of type bool in /wp-content/plugins/onesignal-free-web-push-notifications/v3/onesignal-metabox/onesignal-metabox.php on line 30
[14-Feb-2025 20:38:51 UTC] Unexpected API response: Missing or invalid key
[14-Feb-2025 20:38:51 UTC] PHP Warning:  Trying to access array offset on value of type bool in /wp-content/plugins/onesignal-free-web-push-notifications/v3/onesignal-metabox/onesignal-metabox.php on line 85
[14-Feb-2025 20:38:54 UTC] PHP Warning:  Trying to access array offset on value of type bool in /wp-content/plugins/onesignal-free-web-push-notifications/v3/onesignal-metabox/onesignal-metabox.php on line 23
[14-Feb-2025 20:38:54 UTC] PHP Warning:  Trying to access array offset on value of type bool in /wp-content/plugins/onesignal-free-web-push-notifications/v3/onesignal-metabox/onesignal-metabox.php on line 30
[14-Feb-2025 20:38:55 UTC] Unexpected API response: Missing or invalid key
[14-Feb-2025 20:38:55 UTC] PHP Warning:  Trying to access array offset on value of type bool in /wp-content/plugins/onesignal-free-web-push-notifications/v3/onesignal-metabox/onesignal-metabox.php on line 85
[14-Feb-2025 20:38:57 UTC] PHP Warning:  Trying to access array offset on value of type bool in /wp-content/plugins/onesignal-free-web-push-notifications/v3/onesignal-init.php on line 20
[14-Feb-2025 20:38:58 UTC] PHP Warning:  Trying to access array offset on value of type bool in /wp-content/plugins/onesignal-free-web-push-notifications/v3/onesignal-metabox/onesignal-metabox.php on line 23
[14-Feb-2025 20:38:58 UTC] PHP Warning:  Trying to access array offset on value of type bool in /wp-content/plugins/onesignal-free-web-push-notifications/v3/onesignal-metabox/onesignal-metabox.php on line 30
[14-Feb-2025 20:38:58 UTC] Unexpected API response: Missing or invalid key
[14-Feb-2025 20:38:58 UTC] PHP Warning:  Trying to access array offset on value of type bool in /wp-content/plugins/onesignal-free-web-push-notifications/v3/onesignal-metabox/onesignal-metabox.php on line 85
[14-Feb-2025 20:39:01 UTC] PHP Warning:  Trying to access array offset on value of type bool in /wp-content/plugins/onesignal-free-web-push-notifications/v3/onesignal-metabox/onesignal-metabox.php on line 23
[14-Feb-2025 20:39:01 UTC] PHP Warning:  Trying to access array offset on value of type bool in /wp-content/plugins/onesignal-free-web-push-notifications/v3/onesignal-metabox/onesignal-metabox.php on line 30
[14-Feb-2025 20:39:01 UTC] Unexpected API response: Missing or invalid key
[14-Feb-2025 20:39:01 UTC] PHP Warning:  Trying to access array offset on value of type bool in /wp-content/plugins/onesignal-free-web-push-notifications/v3/onesignal-metabox/onesignal-metabox.php on line 85
See also: All tests for this plugin, How to Hide OneSignal Push Notifications Admin Menus and Meta Boxes