Google Analytics for WordPress by MonsterInsights 8.21.0

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

Summary

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

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

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

Environment
WordPress version6.4.1
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs 3,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=cb8cffcca8
Aspect after-activation
HTTP status 200
Load time 1.498 s
Memory usage 3.77 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.743 s
Memory usage 3.77 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.961 s
Memory usage 3.77 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.263 s
Memory usage 3.46 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.781 s
Memory usage 3.84 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 3.083 s
Memory usage 5.91 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.438 s1.019 s+0.581 s3.38 MiB3.84 MiB+ 470.95 KiB
/wp-admin/edit.php0.355 s0.733 s+0.378 s3.41 MiB3.92 MiB+ 525.69 KiB
/wp-admin/post-new.php1.025 s1.808 s+0.783 s5.46 MiB5.96 MiB+ 513.16 KiB
/wp-admin/upload.php0.642 s0.606 s-0.036 s3.32 MiB3.76 MiB+ 444.53 KiB
/wp-admin/options-writing.php0.218 s0.323 s+0.105 s3.32 MiB3.74 MiB+ 437.38 KiB
/wp-admin/media-new.php0.326 s0.635 s+0.309 s3.29 MiB3.74 MiB+ 456.55 KiB
/wp-admin/edit-tags.php?taxonomy=category0.212 s0.290 s+0.078 s3.31 MiB3.78 MiB+ 481.89 KiB
/wp-admin/post-new.php?post_type=page0.631 s0.797 s+0.166 s5.45 MiB5.95 MiB+ 513.85 KiB
/wp-admin/options-discussion.php0.337 s0.428 s+0.091 s3.3 MiB3.74 MiB+ 446.84 KiB
/wp-admin/edit-comments.php0.264 s0.330 s+0.066 s3.34 MiB3.79 MiB+ 463.12 KiB
/0.306 s0.313 s+0.007 s3.36 MiB3.45 MiB+ 99.98 KiB
Average 0.432 s0.662 s+0.230 s3.72 MiB4.15 MiB+ 441.27 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
PHP90.8%31,88021,213145
JavaScript4.1%1,44828916
CSS3.4%1,2092421
SVG1.6%547060
JSON0.1%2601
Markdown0.1%1902
Total 35,129 21,526 245

PHP Code Analysis | More results »

Lines of code 18,390
Total complexity 3,751
Median class complexity 12.0
Median method complexity 2.0
Most complex class MonsterInsights_Rest_Routes
Most complex function monsterinsights_admin_setup_notices()
Classes 97
Methods 690
Functions 187

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

[29-Nov-2023 15:37:36 UTC] PHP Deprecated:  Automatic conversion of false to array is deprecated in /wp-content/plugins/google-analytics-for-wordpress/includes/admin/notification-event-runner.php on line 94
See also: All tests for this plugin, How to Hide Google Analytics for WordPress by MonsterInsights Admin Menus and Widgets