OneSignal Push Notifications 3.0.3

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

Summary

Errors
4PHP fatal errors
6PHP warnings
No JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

Memory usage: 2.81 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=d697d7ae7c
Aspect after-activation
HTTP status 200
Load time 0.254 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.281 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.142 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.292 s0.272 s-0.020 s3.48 MiB3.49 MiB+ 10.85 KiB
/wp-admin/edit.php0.211 s0.184 s-0.027 s3.54 MiB3.55 MiB+ 10.85 KiB
/wp-admin/post-new.php0.735 s0.429 s-0.306 s5.92 MiB
/wp-admin/upload.php0.513 s0.273 s-0.240 s3.5 MiB3.49 MiB- 6.46 KiB
/wp-admin/options-writing.php0.201 s0.179 s-0.022 s3.47 MiB3.47 MiB- 2.47 KiB
/wp-admin/media-new.php0.250 s0.229 s-0.021 s3.46 MiB3.47 MiB+ 5.73 KiB
/wp-admin/edit-tags.php?taxonomy=category0.169 s0.190 s+0.021 s3.48 MiB3.49 MiB+ 16.4 KiB
/wp-admin/post-new.php?post_type=page0.508 s0.460 s-0.048 s5.92 MiB
/wp-admin/options-discussion.php0.292 s0.264 s-0.028 s3.47 MiB3.47 MiB- 5.97 KiB
/wp-admin/edit-comments.php0.209 s0.235 s+0.026 s3.49 MiB3.49 MiB- 6.47 KiB
/0.285 s0.131 s-0.154 s3.42 MiB
Average 0.333 s0.259 s-0.074 s3.92 MiB3.49 MiB+ 2.81 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.0%2,44227115
CSS23.6%1,1095038
SVG12.5%58503
JavaScript11.5%540806
HTML0.4%2035
Total 4,696 857 37

PHP Code Analysis | More results »

Lines of code 1,853
Total complexity 397
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 21

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

[21-Dec-2024 01:52:59 UTC] PHP Fatal error:  Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, bool given in /wp-content/plugins/onesignal-free-web-push-notifications/v3/onesignal-init.php:11
Stack trace:
#0 /wp-includes/class-wp-hook.php(324): onesignal_init()
#1 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#2 /wp-includes/plugin.php(517): WP_Hook->do_action()
#3 /wp-includes/general-template.php(3064): do_action()
#4 /wp-content/themes/twentyseventeen/header.php(22): wp_head()
#5 /wp-includes/template.php(810): require_once('...')
#6 /wp-includes/template.php(745): load_template()
#7 /wp-includes/general-template.php(48): locate_template()
#8 /wp-content/themes/twentyseventeen/index.php(18): get_header()
#9 /wp-includes/template-loader.php(106): include('...')
#10 /wp-blog-header.php(19): require_once('...')
#11 /index.php(17): require('...')
#12 {main}
  thrown in /wp-content/plugins/onesignal-free-web-push-notifications/v3/onesignal-init.php on line 11
[21-Dec-2024 01:53: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
[21-Dec-2024 01:53: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
[21-Dec-2024 01:53:01 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
[21-Dec-2024 01:53:01 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
[21-Dec-2024 01:53:02 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
[21-Dec-2024 01:53:02 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
[21-Dec-2024 01:53:03 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
[21-Dec-2024 01:53:03 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
[21-Dec-2024 01:53:03 UTC] PHP Fatal error:  Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, bool given in /wp-content/plugins/onesignal-free-web-push-notifications/v3/onesignal-init.php:11
Stack trace:
#0 /wp-includes/class-wp-hook.php(324): onesignal_init()
#1 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#2 /wp-includes/plugin.php(517): WP_Hook->do_action()
#3 /wp-includes/general-template.php(3064): do_action()
#4 /wp-content/themes/twentyseventeen/header.php(22): wp_head()
#5 /wp-includes/template.php(810): require_once('...')
#6 /wp-includes/template.php(745): load_template()
#7 /wp-includes/general-template.php(48): locate_template()
#8 /wp-content/themes/twentyseventeen/index.php(18): get_header()
#9 /wp-includes/template-loader.php(106): include('...')
#10 /wp-blog-header.php(19): require_once('...')
#11 /index.php(17): require('...')
#12 {main}
  thrown in /wp-content/plugins/onesignal-free-web-push-notifications/v3/onesignal-init.php on line 11
See also: All tests for this plugin, How to Hide OneSignal Push Notifications Admin Menus and Meta Boxes