Go Night Pro 1.0.4

Does Go Night Pro work with WordPress 5.7 and PHP 7.4.8? A smoke test was performed on .

Summary

Errors
26PHP notices
1JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

Memory usage: 35.71 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 version5.7
PHP version7.4.8
MySQL version8.0.21
PHP memory limit256M
Plugin Info
Last updated
Active installs 60+
WordPress.org page https://wordpress.org/plugins/go-night-pro/
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=go-night-pro%2Fgo-night-pro.php&plugin_status=all&paged=1&s&_wpnonce=c5e4dd9a7b
Aspect after-activation
HTTP status 200
Load time 0.338 s
Memory usage 2.86 MiB
JS errors None
Resource errors None

Go Night Pro

Page screenshot: Go Night Pro
URL /wp-admin/admin.php?page=go-night-pro
Aspect menu-item
HTTP status 200
Load time 0.935 s
Memory usage 2.79 MiB
JS errors
[
    {
        "message": "TypeError: Cannot read property 'length' of null\n    at HTMLDocument.<anonymous> (/wp-content/plugins/go-night-pro/admin/js/go-night-admin.js?ver=1.0.4:308:51)\n    at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.7:2:30005)\n    at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.7:2:30307)",
        "trace": null,
        "code": null
    }
]
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.229 s
Memory usage 2.69 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.277 s0.252 s-0.025 s2.82 MiB2.86 MiB+ 40.14 KiB
/wp-admin/edit.php0.180 s0.212 s+0.032 s2.86 MiB2.9 MiB+ 40.14 KiB
/wp-admin/post-new.php0.907 s0.950 s+0.043 s5.02 MiB5.07 MiB+ 52.27 KiB
/wp-admin/upload.php0.509 s0.247 s-0.262 s2.7 MiB2.73 MiB+ 35.24 KiB
/wp-admin/options-writing.php0.255 s0.147 s-0.108 s2.71 MiB2.71 MiB+ 3.52 KiB
/wp-admin/media-new.php0.217 s0.300 s+0.083 s2.67 MiB2.71 MiB+ 35.78 KiB
/wp-admin/edit-tags.php?taxonomy=category0.178 s0.198 s+0.020 s2.77 MiB2.81 MiB+ 36.69 KiB
/wp-admin/post-new.php?post_type=page1.757 s1.000 s-0.757 s5.01 MiB5.05 MiB+ 43.86 KiB
/wp-admin/options-discussion.php0.299 s0.302 s+0.003 s2.67 MiB2.71 MiB+ 36.03 KiB
/wp-admin/edit-comments.php0.233 s0.238 s+0.005 s2.78 MiB2.81 MiB+ 35.03 KiB
/0.256 s0.235 s-0.021 s2.65 MiB2.69 MiB+ 34.14 KiB
Average 0.461 s0.371 s-0.090 s3.15 MiB3.19 MiB+ 35.71 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.

SVG
CSS
LESS
Language % Lines of code Comment lines Files
SVG68.1%18,202174
CSS9.7%2,5851013
LESS8.6%2,305101
PHP7.0%1,87143218
Sass4.3%1,15402
JavaScript1.8%490973
PO File0.5%140711
Total 26,747 728 32

PHP Code Analysis | More results »

Lines of code 1,974
Total complexity 272
Median class complexity 7.0
Median method complexity 1.0
Most complex class Go_Night_Public
Most complex function show_floating_switch_render()
Classes 7
Methods 35
Functions 18

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.

No new entries found.

PHP Error Log 26 lines

[22-Mar-2021 11:35:04 UTC] PHP Notice:  Trying to access array offset on value of type bool in /wp-content/plugins/go-night-pro/admin/class-go-night-admin.php on line 85
[22-Mar-2021 11:35:05 UTC] PHP Notice:  Trying to access array offset on value of type bool in /wp-content/plugins/go-night-pro/admin/class-go-night-admin.php on line 85
[22-Mar-2021 11:35:05 UTC] PHP Notice:  Trying to access array offset on value of type bool in /wp-content/plugins/go-night-pro/admin/class-go-night-admin.php on line 85
[22-Mar-2021 11:35:05 UTC] PHP Notice:  WP_Scripts::localize was called <strong>incorrectly</strong>. The <code>$l10n</code> parameter must be an array. To pass arbitrary data to scripts, use the <code>wp_add_inline_script()</code> function instead. Please see <a href="https://wordpress.org/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 5.7.0.) in /wp-includes/functions.php on line 5313
[22-Mar-2021 11:35:06 UTC] PHP Notice:  WP_Scripts::localize was called <strong>incorrectly</strong>. The <code>$l10n</code> parameter must be an array. To pass arbitrary data to scripts, use the <code>wp_add_inline_script()</code> function instead. Please see <a href="https://wordpress.org/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 5.7.0.) in /wp-includes/functions.php on line 5313
[22-Mar-2021 11:35:06 UTC] PHP Notice:  WP_Scripts::localize was called <strong>incorrectly</strong>. The <code>$l10n</code> parameter must be an array. To pass arbitrary data to scripts, use the <code>wp_add_inline_script()</code> function instead. Please see <a href="https://wordpress.org/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 5.7.0.) in /wp-includes/functions.php on line 5313
[22-Mar-2021 11:35:06 UTC] PHP Notice:  Trying to access array offset on value of type bool in /wp-content/plugins/go-night-pro/public/class-go-night-public.php on line 236
[22-Mar-2021 11:35:06 UTC] PHP Notice:  Trying to access array offset on value of type bool in /wp-content/plugins/go-night-pro/public/class-go-night-public.php on line 239
[22-Mar-2021 11:35:06 UTC] PHP Notice:  Trying to access array offset on value of type bool in /wp-content/plugins/go-night-pro/public/class-go-night-public.php on line 249
[22-Mar-2021 11:35:07 UTC] PHP Notice:  Trying to access array offset on value of type bool in /wp-content/plugins/go-night-pro/admin/class-go-night-admin.php on line 85
[22-Mar-2021 11:35:07 UTC] PHP Notice:  Trying to access array offset on value of type bool in /wp-content/plugins/go-night-pro/admin/class-go-night-admin.php on line 85
[22-Mar-2021 11:35:08 UTC] PHP Notice:  Trying to access array offset on value of type bool in /wp-content/plugins/go-night-pro/admin/class-go-night-admin.php on line 85
[22-Mar-2021 11:35:10 UTC] PHP Notice:  Trying to access array offset on value of type bool in /wp-content/plugins/go-night-pro/admin/class-go-night-admin.php on line 85
[22-Mar-2021 11:35:10 UTC] PHP Notice:  Trying to access array offset on value of type bool in /wp-content/plugins/go-night-pro/admin/class-go-night-admin.php on line 85
[22-Mar-2021 11:35:10 UTC] PHP Notice:  Trying to access array offset on value of type bool in /wp-content/plugins/go-night-pro/admin/class-go-night-admin.php on line 85
[22-Mar-2021 11:35:11 UTC] PHP Notice:  Trying to access array offset on value of type bool in /wp-content/plugins/go-night-pro/admin/class-go-night-admin.php on line 85
[22-Mar-2021 11:35:11 UTC] PHP Notice:  Trying to access array offset on value of type bool in /wp-content/plugins/go-night-pro/admin/class-go-night-admin.php on line 85
[22-Mar-2021 11:35:13 UTC] PHP Notice:  Trying to access array offset on value of type bool in /wp-content/plugins/go-night-pro/admin/class-go-night-admin.php on line 85
[22-Mar-2021 11:35:13 UTC] PHP Notice:  Trying to access array offset on value of type bool in /wp-content/plugins/go-night-pro/admin/class-go-night-admin.php on line 85
[22-Mar-2021 11:35:13 UTC] PHP Notice:  WP_Scripts::localize was called <strong>incorrectly</strong>. The <code>$l10n</code> parameter must be an array. To pass arbitrary data to scripts, use the <code>wp_add_inline_script()</code> function instead. Please see <a href="https://wordpress.org/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 5.7.0.) in /wp-includes/functions.php on line 5313
[22-Mar-2021 11:35:13 UTC] PHP Notice:  WP_Scripts::localize was called <strong>incorrectly</strong>. The <code>$l10n</code> parameter must be an array. To pass arbitrary data to scripts, use the <code>wp_add_inline_script()</code> function instead. Please see <a href="https://wordpress.org/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 5.7.0.) in /wp-includes/functions.php on line 5313
[22-Mar-2021 11:35:13 UTC] PHP Notice:  Trying to access array offset on value of type bool in /wp-content/plugins/go-night-pro/public/class-go-night-public.php on line 236
[22-Mar-2021 11:35:13 UTC] PHP Notice:  Trying to access array offset on value of type bool in /wp-content/plugins/go-night-pro/public/class-go-night-public.php on line 239
[22-Mar-2021 11:35:13 UTC] PHP Notice:  Trying to access array offset on value of type bool in /wp-content/plugins/go-night-pro/public/class-go-night-public.php on line 249
[22-Mar-2021 11:35:14 UTC] PHP Notice:  Trying to access array offset on value of type bool in /wp-content/plugins/go-night-pro/admin/class-go-night-admin.php on line 85
[22-Mar-2021 11:35:14 UTC] PHP Notice:  Trying to access array offset on value of type bool in /wp-content/plugins/go-night-pro/admin/class-go-night-admin.php on line 85
See also: All tests for this plugin, How to Hide the "Go Night Pro" Admin Menu