Google Analytics for WordPress by MonsterInsights 8.20.1

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: 437.56 KiB
The average PHP memory usage increased by this amount after activating by the plugin.

Page speed impact: 0.121 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=978802cae4
Aspect after-activation
HTTP status 200
Load time 1.187 s
Memory usage 3.76 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.574 s
Memory usage 3.76 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 1.038 s
Memory usage 3.76 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.254 s
Memory usage 3.45 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.614 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 2.514 s
Memory usage 5.9 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.379 s0.867 s+0.488 s3.38 MiB3.84 MiB+ 467.23 KiB
/wp-admin/edit.php0.218 s0.690 s+0.472 s3.41 MiB3.92 MiB+ 521.98 KiB
/wp-admin/post-new.php1.016 s1.250 s+0.234 s5.46 MiB5.96 MiB+ 509.45 KiB
/wp-admin/upload.php0.728 s0.503 s-0.225 s3.32 MiB3.75 MiB+ 440.82 KiB
/wp-admin/options-writing.php0.223 s0.264 s+0.041 s3.32 MiB3.74 MiB+ 433.66 KiB
/wp-admin/media-new.php0.307 s0.543 s+0.236 s3.29 MiB3.74 MiB+ 452.84 KiB
/wp-admin/edit-tags.php?taxonomy=category0.227 s0.273 s+0.046 s3.31 MiB3.78 MiB+ 478.18 KiB
/wp-admin/post-new.php?post_type=page0.651 s0.684 s+0.033 s5.45 MiB5.95 MiB+ 510.14 KiB
/wp-admin/options-discussion.php0.303 s0.338 s+0.035 s3.3 MiB3.73 MiB+ 443.13 KiB
/wp-admin/edit-comments.php0.254 s0.277 s+0.023 s3.34 MiB3.78 MiB+ 459.41 KiB
/0.283 s0.227 s-0.056 s3.36 MiB3.45 MiB+ 96.27 KiB
Average 0.417 s0.538 s+0.121 s3.72 MiB4.15 MiB+ 437.56 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.7%31,72221,145144
JavaScript4.1%1,44628916
CSS3.5%1,2092421
SVG1.6%547060
JSON0.1%2601
Markdown0.1%1902
Total 34,969 21,458 244

PHP Code Analysis | More results »

Lines of code 18,250
Total complexity 3,720
Median class complexity 12.0
Median method complexity 2.0
Most complex class MonsterInsights_Rest_Routes
Most complex function monsterinsights_admin_setup_notices()
Classes 96
Methods 685
Functions 184

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

[09-Nov-2023 02:14:26 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