Google Analytics for WordPress by MonsterInsights 9.4.0

Does "Google Analytics for WordPress by MonsterInsights" work with WordPress 6.7.2 and PHP 8.1.12? A smoke test was performed on .

Summary

Errors
2PHP deprecation warnings
No JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

Memory usage: 718.95 KiB
The average PHP memory usage increased by this amount after activating by the plugin.

Page speed impact: 0.235 seconds
The average page load time increased by this amount after activating the plugin.

Environment
WordPress version6.7.2
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs 2,000,000+
WordPress.org page https://wordpress.org/plugins/google-analytics-for-wordpress/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 6

Welcome to MonsterInsights ‹ Test site — WordPress

Page screenshot: Welcome to MonsterInsights ‹ Test site — WordPress
URL /wp-admin/index.php?page=monsterinsights-getting-started&monsterinsights-redirect=1#/
Requested URL /wp-admin/plugins.php?action=activate&plugin=google-analytics-for-wordpress%2Fgoogleanalytics.php&plugin_status=all&paged=1&s&_wpnonce=21f862d260
Aspect after-activation
HTTP status 200
Load time 1.181 s
Memory usage 4.21 MiB
JS errors None
Resource errors None

Dashboard → Insights

Page screenshot: Dashboard → Insights
URL /wp-admin/admin.php?page=monsterinsights_reports#/
Requested URL /wp-admin/admin.php?page=monsterinsights_reports
Aspect menu-item
HTTP status 200
Load time 1.277 s
Memory usage 4.2 MiB
JS errors None
Resource errors None

Insights

Page screenshot: Insights
URL /wp-admin/admin.php?page=monsterinsights_settings#/
Requested URL /wp-admin/admin.php?page=monsterinsights_settings
Aspect menu-item
HTTP status 200
Load time 0.965 s
Memory usage 4.21 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.308 s
Memory usage 3.8 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.416 s
Memory usage 4.28 MiB
JS errors None
Resource errors None

Widgets ‹ Test site — WordPress

Page screenshot: Widgets ‹ Test site — WordPress
URL /wp-admin/widgets.php
Aspect new-sidebar-widgets
HTTP status 200
Load time 1.710 s
Memory usage 6.52 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.302 s0.600 s+0.298 s3.48 MiB4.28 MiB+ 817.45 KiB
/wp-admin/edit.php0.179 s0.851 s+0.672 s3.54 MiB4.3 MiB+ 770.52 KiB
/wp-admin/post-new.php0.699 s1.123 s+0.424 s5.93 MiB6.72 MiB+ 814.27 KiB
/wp-admin/upload.php0.515 s0.442 s-0.073 s3.5 MiB4.2 MiB+ 721.65 KiB
/wp-admin/options-writing.php0.188 s0.319 s+0.131 s3.47 MiB4.18 MiB+ 726.05 KiB
/wp-admin/media-new.php0.266 s0.493 s+0.227 s3.46 MiB4.18 MiB+ 734.24 KiB
/wp-admin/edit-tags.php?taxonomy=category0.180 s0.408 s+0.228 s3.48 MiB4.2 MiB+ 739.51 KiB
/wp-admin/post-new.php?post_type=page0.527 s0.732 s+0.205 s5.92 MiB6.71 MiB+ 806.91 KiB
/wp-admin/options-discussion.php0.274 s0.364 s+0.090 s3.48 MiB4.18 MiB+ 722.86 KiB
/wp-admin/edit-comments.php0.181 s0.351 s+0.170 s3.5 MiB4.2 MiB+ 722.2 KiB
/0.272 s0.487 s+0.215 s3.47 MiB3.8 MiB+ 332.8 KiB
Average 0.326 s0.561 s+0.235 s3.93 MiB4.63 MiB+ 718.95 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
JavaScript
Language % Lines of code Comment lines Files
PHP67.2%32,74620,402169
JavaScript16.6%8,1061,26510
CSS7.6%3,7253817
SVG5.4%2,6503110
JSON3.1%1,51702
Markdown0.0%1902
Total 48,763 21,708 310

PHP Code Analysis | More results »

Lines of code 21,321
Total complexity 4,221
Median class complexity 9.0
Median method complexity 2.0
Most complex class MonsterInsights_Rest_Routes
Most complex function MonsterInsights_Report::get_data()
Classes 124
Methods 812
Functions 195

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 9

Custom Post Types 1

ID Name
monsterinsights_notePosts

Sidebar Widgets 1

ID Name
monsterinsights-popular-posts-widgetPopular Posts - MonsterInsights

Meta Boxes

{
    "dashboard": {
        "monsterinsights_reports_widget": {
            "title": "MonsterInsights",
            "context": "normal"
        }
    }
}

PHP Error Log 2 lines

[25-Mar-2025 14:59:01 UTC] PHP Deprecated:  Optional parameter $name declared before required parameter $url is implicitly treated as a required parameter in /wp-content/plugins/google-analytics-for-wordpress/includes/admin/class-monsterinsights-am-deactivation-survey.php on line 58
[25-Mar-2025 14:59:01 UTC] PHP Deprecated:  Optional parameter $plugin declared before required parameter $url is implicitly treated as a required parameter in /wp-content/plugins/google-analytics-for-wordpress/includes/admin/class-monsterinsights-am-deactivation-survey.php on line 58
See also: All tests for this plugin, How to Hide Google Analytics for WordPress by MonsterInsights Admin Menus and Widgets