OneSignal Push Notifications 3.0.1

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

Summary

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

Memory usage: 3.31 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 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 3

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=b794051081
Aspect after-activation
HTTP status 200
Load time 0.286 s
Memory usage 3.5 MiB
JS errors
[
    {
        "message": "TypeError: Cannot read properties of null (reading 'addEventListener')\n    at /wp-content/plugins/onesignal-free-web-push-notifications/v3/onesignal-admin/onesignal-admin.js?ver=6.7.1:5:12",
        "trace": null,
        "code": null
    },
    {
        "message": "TypeError: Cannot read properties of null (reading 'addEventListener')\n    at /wp-content/plugins/onesignal-free-web-push-notifications/v3/onesignal-admin/onesignal-admin.js?ver=6.7.1:40:14",
        "trace": null,
        "code": null
    }
]
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.351 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.398 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

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.302 s0.299 s-0.003 s3.48 MiB3.49 MiB+ 10.73 KiB
/wp-admin/edit.php0.212 s0.200 s-0.012 s3.54 MiB3.55 MiB+ 10.73 KiB
/wp-admin/post-new.php0.812 s0.445 s-0.367 s5.92 MiB
/wp-admin/upload.php0.606 s0.290 s-0.316 s3.49 MiB3.49 MiB- 6.59 KiB
/wp-admin/options-writing.php0.231 s0.205 s-0.026 s3.47 MiB3.47 MiB- 2.59 KiB
/wp-admin/media-new.php0.350 s0.364 s+0.014 s3.46 MiB3.47 MiB+ 5.6 KiB
/wp-admin/edit-tags.php?taxonomy=category0.204 s0.309 s+0.105 s3.48 MiB3.49 MiB+ 16.27 KiB
/wp-admin/post-new.php?post_type=page0.575 s0.465 s-0.110 s5.92 MiB
/wp-admin/options-discussion.php0.288 s0.222 s-0.066 s3.47 MiB3.47 MiB- 6.09 KiB
/wp-admin/edit-comments.php0.448 s0.276 s-0.172 s3.49 MiB3.49 MiB- 6.59 KiB
/0.322 s0.274 s-0.048 s3.41 MiB3.42 MiB+ 8.31 KiB
Average 0.395 s0.304 s-0.091 s3.92 MiB3.48 MiB+ 3.31 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
PHP51.9%2,40526214
CSS23.9%1,1095038
SVG12.6%58503
JavaScript11.5%531805
HTML0.0%111
Total 4,631 846 31

PHP Code Analysis | More results »

Lines of code 1,791
Total complexity 391
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 20

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

PHP Error Log 24 lines

[20-Dec-2024 04:11:25 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 17
[20-Dec-2024 04:11:27 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
[20-Dec-2024 04:11:27 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
[20-Dec-2024 04:11:27 UTC] PHP Warning:  Undefined property: stdClass::$segments in /wp-content/plugins/onesignal-free-web-push-notifications/v3/onesignal-metabox/onesignal-metabox.php on line 45
[20-Dec-2024 04:11:27 UTC] PHP Fatal error:  Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /wp-content/plugins/onesignal-free-web-push-notifications/v3/onesignal-metabox/onesignal-metabox.php:45
Stack trace:
#0 /wp-admin/includes/template.php(1456): onesignal_metabox()
#1 /wp-admin/includes/post.php(2383): do_meta_boxes()
#2 /wp-admin/edit-form-blocks.php(346): the_block_editor_meta_boxes()
#3 /wp-admin/post-new.php(72): require('...')
#4 {main}
  thrown in /wp-content/plugins/onesignal-free-web-push-notifications/v3/onesignal-metabox/onesignal-metabox.php on line 45
[20-Dec-2024 04:11:29 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
[20-Dec-2024 04:11:29 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
[20-Dec-2024 04:11:29 UTC] PHP Warning:  Undefined property: stdClass::$segments in /wp-content/plugins/onesignal-free-web-push-notifications/v3/onesignal-metabox/onesignal-metabox.php on line 45
[20-Dec-2024 04:11:29 UTC] PHP Fatal error:  Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /wp-content/plugins/onesignal-free-web-push-notifications/v3/onesignal-metabox/onesignal-metabox.php:45
Stack trace:
#0 /wp-admin/includes/template.php(1456): onesignal_metabox()
#1 /wp-admin/includes/post.php(2383): do_meta_boxes()
#2 /wp-admin/edit-form-blocks.php(346): the_block_editor_meta_boxes()
#3 /wp-admin/post-new.php(72): require('...')
#4 {main}
  thrown in /wp-content/plugins/onesignal-free-web-push-notifications/v3/onesignal-metabox/onesignal-metabox.php on line 45
[20-Dec-2024 04:11:30 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 17
See also: All tests for this plugin, How to Hide OneSignal Push Notifications Admin Menus and Meta Boxes