OneSignal Push Notifications 3.0.5

Does OneSignal Push Notifications work with WordPress 6.7.1 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: 11.62 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.1
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs 70,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=445f35ff19
Aspect after-activation
HTTP status 200
Load time 0.263 s
Memory usage 3.5 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.364 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.391 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=160205:1:23832)\n    at Generator.next (<anonymous>)\n    at https://cdn.onesignal.com/sdks/web/v16/OneSignalSDK.page.es6.js?v=160205:1:268350\n    at new Promise (<anonymous>)\n    at o (https://cdn.onesignal.com/sdks/web/v16/OneSignalSDK.page.es6.js?v=160205:1:268095)\n    at Function.getAppConfig (https://cdn.onesignal.com/sdks/web/v16/OneSignalSDK.page.es6.js?v=160205:1:23746)\n    at se.<anonymous> (https://cdn.onesignal.com/sdks/web/v16/OneSignalSDK.page.es6.js?v=160205:1:35601)\n    at Generator.next (<anonymous>)\n    at https://cdn.onesignal.com/sdks/web/v16/OneSignalSDK.page.es6.js?v=160205:1:268350\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.960 s
Memory usage 5.97 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.867 s
Memory usage 5.96 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.337 s0.324 s-0.013 s3.48 MiB3.49 MiB+ 10.73 KiB
/wp-admin/edit.php0.199 s0.219 s+0.020 s3.54 MiB3.55 MiB+ 10.73 KiB
/wp-admin/post-new.php0.874 s0.792 s-0.082 s5.92 MiB5.97 MiB+ 51.59 KiB
/wp-admin/upload.php0.759 s0.334 s-0.425 s3.49 MiB3.49 MiB- 6.68 KiB
/wp-admin/options-writing.php0.217 s0.189 s-0.028 s3.47 MiB3.47 MiB- 2.69 KiB
/wp-admin/media-new.php0.298 s0.225 s-0.073 s3.46 MiB3.47 MiB+ 5.51 KiB
/wp-admin/edit-tags.php?taxonomy=category0.179 s0.418 s+0.239 s3.48 MiB3.49 MiB+ 16.18 KiB
/wp-admin/post-new.php?post_type=page0.719 s0.810 s+0.091 s5.92 MiB5.96 MiB+ 47.12 KiB
/wp-admin/options-discussion.php0.283 s0.270 s-0.013 s3.47 MiB3.47 MiB- 6.19 KiB
/wp-admin/edit-comments.php0.200 s0.215 s+0.015 s3.49 MiB3.49 MiB- 6.69 KiB
/0.309 s0.243 s-0.066 s3.41 MiB3.42 MiB+ 8.22 KiB
Average 0.398 s0.367 s-0.030 s3.92 MiB3.93 MiB+ 11.62 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
SVG
JavaScript
Language % Lines of code Comment lines Files
PHP52.4%2,52027815
CSS23.1%1,1115038
SVG12.2%58503
JavaScript11.9%571826
HTML0.4%2035
Total 4,807 866 37

PHP Code Analysis | More results »

Lines of code 1,934
Total complexity 407
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 23

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

[06-Jan-2025 23:24:34 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
[06-Jan-2025 23:24:36 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
[06-Jan-2025 23:24:36 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
[06-Jan-2025 23:24:36 UTC] Unexpected API response: Missing or invalid key
[06-Jan-2025 23:24:36 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
[06-Jan-2025 23:24:40 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
[06-Jan-2025 23:24:40 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
[06-Jan-2025 23:24:40 UTC] Unexpected API response: Missing or invalid key
[06-Jan-2025 23:24:40 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
[06-Jan-2025 23:24:42 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
[06-Jan-2025 23:24:43 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
[06-Jan-2025 23:24:43 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
[06-Jan-2025 23:24:43 UTC] Unexpected API response: Missing or invalid key
[06-Jan-2025 23:24:43 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
[06-Jan-2025 23:24:46 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
[06-Jan-2025 23:24:46 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
[06-Jan-2025 23:24:46 UTC] Unexpected API response: Missing or invalid key
[06-Jan-2025 23:24:46 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