Google Analytics 1.1

Does Google Analytics work with WordPress 5.7 and PHP 7.4.8? A smoke test was performed on .

Summary

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

Memory usage: 12.86 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 300+
WordPress.org page https://wordpress.org/plugins/wp-ganalytics/
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=wp-ganalytics%2Fanalytics.php&plugin_status=all&paged=1&s&_wpnonce=d6acb8aea2
Aspect after-activation
HTTP status 200
Load time 0.213 s
Memory usage 2.73 MiB
JS errors None
Resource errors None

Settings → Google Analytics

Page screenshot: Settings → Google Analytics
URL /wp-admin/options-general.php?page=analytics
Aspect menu-item
HTTP status 200
Load time 0.146 s
Memory usage 2.69 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.161 s
Memory usage 2.67 MiB
JS errors
[
    {
        "message": "SyntaxError: Unexpected token ','",
        "trace": null,
        "code": null
    }
]
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.274 s0.259 s-0.015 s2.82 MiB2.84 MiB+ 16.71 KiB
/wp-admin/edit.php0.183 s0.198 s+0.015 s2.86 MiB2.88 MiB+ 16.71 KiB
/wp-admin/post-new.php0.913 s1.156 s+0.243 s5.02 MiB5.05 MiB+ 27.91 KiB
/wp-admin/upload.php0.505 s0.569 s+0.064 s2.7 MiB2.71 MiB+ 11.21 KiB
/wp-admin/options-writing.php0.250 s0.163 s-0.087 s2.71 MiB2.69 MiB- 20.51 KiB
/wp-admin/media-new.php0.212 s0.193 s-0.019 s2.67 MiB2.68 MiB+ 11.75 KiB
/wp-admin/edit-tags.php?taxonomy=category0.191 s0.198 s+0.007 s2.77 MiB2.78 MiB+ 12.66 KiB
/wp-admin/post-new.php?post_type=page1.268 s0.676 s-0.592 s5.01 MiB5.03 MiB+ 19.49 KiB
/wp-admin/options-discussion.php0.308 s0.204 s-0.104 s2.67 MiB2.69 MiB+ 12 KiB
/wp-admin/edit-comments.php0.218 s0.202 s-0.016 s2.78 MiB2.79 MiB+ 11.56 KiB
/0.260 s0.213 s-0.047 s2.65 MiB2.67 MiB+ 21.94 KiB
Average 0.417 s0.366 s-0.050 s3.15 MiB3.16 MiB+ 12.86 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
Language % Lines of code Comment lines Files
PHP100.0%94221
Total 94 22 1

PHP Code Analysis | More results »

Lines of code 96
Total complexity 8
Median class complexity 8.0
Median method complexity 1.0
Most complex class gogl_plugin_analytics
Most complex function gogl_plugin_analytics::gogl_add_analytics_code()
Classes 1
Methods 8
Functions 0

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

[14-Mar-2021 19:18:23 UTC] PHP Notice:  Trying to access array offset on value of type bool in /wp-content/plugins/wp-ganalytics/analytics.php on line 78
[14-Mar-2021 19:18:23 UTC] PHP Notice:  Trying to access array offset on value of type bool in /wp-content/plugins/wp-ganalytics/analytics.php on line 117
[14-Mar-2021 19:18:30 UTC] PHP Notice:  Trying to access array offset on value of type bool in /wp-content/plugins/wp-ganalytics/analytics.php on line 117
See also: All tests for this plugin, How to Hide the "Google Analytics" Admin Menu