Google Analytics for WordPress by MonsterInsights 8.22.0

Does "Google Analytics for WordPress by MonsterInsights" work with WordPress 6.4.2 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: 438.72 KiB
The average PHP memory usage increased by this amount after activating by the plugin.

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

Environment
WordPress version6.4.2
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=ea88ba0599
Aspect after-activation
HTTP status 200
Load time 1.312 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.617 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.936 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.273 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.391 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.482 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.382 s0.612 s+0.230 s3.38 MiB3.84 MiB+ 468.14 KiB
/wp-admin/edit.php0.226 s0.591 s+0.365 s3.41 MiB3.92 MiB+ 522.88 KiB
/wp-admin/post-new.php1.116 s1.572 s+0.456 s5.46 MiB5.96 MiB+ 510.36 KiB
/wp-admin/upload.php0.714 s0.477 s-0.237 s3.32 MiB3.75 MiB+ 441.73 KiB
/wp-admin/options-writing.php0.219 s0.239 s+0.020 s3.32 MiB3.74 MiB+ 434.57 KiB
/wp-admin/media-new.php0.330 s0.286 s-0.044 s3.29 MiB3.74 MiB+ 453.75 KiB
/wp-admin/edit-tags.php?taxonomy=category0.198 s0.241 s+0.043 s3.31 MiB3.78 MiB+ 479.09 KiB
/wp-admin/post-new.php?post_type=page0.615 s0.922 s+0.307 s5.45 MiB5.95 MiB+ 511.05 KiB
/wp-admin/options-discussion.php0.227 s0.318 s+0.091 s3.3 MiB3.74 MiB+ 444.04 KiB
/wp-admin/edit-comments.php0.220 s0.268 s+0.048 s3.34 MiB3.78 MiB+ 460.31 KiB
/0.310 s0.268 s-0.042 s3.36 MiB3.45 MiB+ 99.98 KiB
Average 0.414 s0.527 s+0.112 s3.72 MiB4.15 MiB+ 438.72 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,87121,215145
JavaScript4.1%1,44828916
CSS3.4%1,2092421
SVG1.6%547060
JSON0.1%2601
Markdown0.1%1902
Total 35,120 21,528 245

PHP Code Analysis | More results »

Lines of code 18,380
Total complexity 3,749
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 689
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

[06-Dec-2023 17:41:24 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