Google Analytics 2.5.0

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

Summary

Errors
No PHP errors, warnings or notices
1JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

Memory usage: 36.32 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.1
PHP version7.4.8
MySQL version8.0.21
PHP memory limit256M
Plugin Info
Last updated
Active installs 100,000+
WordPress.org page https://wordpress.org/plugins/googleanalytics/
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=googleanalytics%2Fgoogleanalytics.php&plugin_status=all&paged=1&s&_wpnonce=3c3262ce83
Aspect after-activation
HTTP status 200
Load time 0.472 s
Memory usage 2.87 MiB
JS errors None
Resource errors None

Google Analytics

Page screenshot: Google Analytics
URL /wp-admin/admin.php?page=googleanalytics
Aspect menu-item
HTTP status 200
Load time 0.208 s
Memory usage 2.85 MiB
JS errors
[
    {
        "message": "TypeError: Cannot read property 'top' of undefined\n    at HTMLDocument.<anonymous> (/wp-content/plugins/googleanalytics/js/googleanalytics_page.js?ver=1618459524:519:39)\n    at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,underscore,wp-util&ver=5.7.1:2:30005)\n    at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,underscore,wp-util&ver=5.7.1:2:30307)",
        "trace": null,
        "code": null
    }
]
Resource errors None

Google Analytics → Settings

Page screenshot: Google Analytics → Settings
URL /wp-admin/admin.php?page=googleanalytics%2Fsettings
Requested URL /wp-admin/admin.php?page=googleanalytics/settings
Aspect menu-item
HTTP status 200
Load time 0.182 s
Memory usage 2.94 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.225 s
Memory usage 2.66 MiB
JS errors None
Resource errors None

Dashboard ‹ Test site — WordPress

Page screenshot: Dashboard ‹ Test site — WordPress
URL /wp-admin/index.php
Aspect new-meta-boxes
HTTP status 200
Load time 0.379 s
Memory usage 2.9 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.272 s0.295 s+0.023 s2.82 MiB2.9 MiB+ 81.59 KiB
/wp-admin/edit.php0.186 s0.210 s+0.024 s2.86 MiB2.9 MiB+ 42.21 KiB
/wp-admin/post-new.php0.912 s0.943 s+0.031 s5.02 MiB5.08 MiB+ 54.4 KiB
/wp-admin/upload.php0.477 s0.463 s-0.014 s2.7 MiB2.74 MiB+ 41.12 KiB
/wp-admin/options-writing.php0.165 s0.174 s+0.009 s2.71 MiB2.72 MiB+ 9.09 KiB
/wp-admin/media-new.php0.323 s0.214 s-0.109 s2.67 MiB2.71 MiB+ 41.29 KiB
/wp-admin/edit-tags.php?taxonomy=category0.224 s0.198 s-0.026 s2.77 MiB2.81 MiB+ 42.2 KiB
/wp-admin/post-new.php?post_type=page1.186 s0.647 s-0.539 s5.01 MiB5.06 MiB+ 49.98 KiB
/wp-admin/options-discussion.php0.280 s0.233 s-0.047 s2.67 MiB2.72 MiB+ 41.91 KiB
/wp-admin/edit-comments.php0.221 s0.219 s-0.002 s2.78 MiB2.82 MiB+ 41.14 KiB
/0.279 s0.219 s-0.060 s2.71 MiB2.66 MiB- 45.41 KiB
Average 0.411 s0.347 s-0.065 s3.16 MiB3.19 MiB+ 36.32 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
JavaScript
Language % Lines of code Comment lines Files
PHP71.2%4,1511,05943
CSS15.7%91554
JavaScript13.0%760504
Total 5,826 1,114 51

PHP Code Analysis | More results »

Lines of code 2,672
Total complexity 677
Median class complexity 8.0
Median method complexity 2.0
Most complex class Ga_Admin
Most complex function Ga_Lib_Api_Request::make_request()
Classes 30
Methods 232
Functions 1

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 13

Meta Boxes

{
    "dashboard": {
        "ga_dashboard_widget": {
            "title": "Google Analytics Dashboard",
            "context": "normal"
        }
    }
}

PHP Error Log

The log file is empty.

See also: All tests for this plugin, How to Hide ShareThis Dashboard for Google Analytics Admin Menus