GA Google Analytics 20250326

Does GA Google Analytics work with WordPress 6.8.1 and PHP 8.1.12? A smoke test was performed on .

Summary

Errors
No PHP errors, warnings or notices
No JavaScript exceptions
All test pages loaded successfully
No resource errors
Looks good! No problems were detected.
Performance

Memory usage: 18.42 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 version6.8.1
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs 500,000+
WordPress.org page https://wordpress.org/plugins/ga-google-analytics/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 3

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=ga-google-analytics%2Fga-google-analytics.php&plugin_status=all&paged=1&s&_wpnonce=606b1abc7e
Aspect after-activation
HTTP status 200
Load time 0.253 s
Memory usage 3.54 MiB
JS errors None
Resource errors None

Settings → Google Analytics

Page screenshot: Settings → Google Analytics
URL /wp-admin/options-general.php?page=ga-google-analytics
Aspect menu-item
HTTP status 200
Load time 0.312 s
Memory usage 3.58 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.176 s
Memory usage 3.45 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.332 s0.276 s-0.056 s3.51 MiB3.53 MiB+ 25.2 KiB
/wp-admin/edit.php0.198 s0.197 s-0.001 s3.57 MiB3.6 MiB+ 24.5 KiB
/wp-admin/post-new.php0.757 s0.623 s-0.134 s6.06 MiB6.09 MiB+ 28.09 KiB
/wp-admin/upload.php0.615 s0.480 s-0.135 s3.52 MiB3.53 MiB+ 7.09 KiB
/wp-admin/options-writing.php0.214 s0.201 s-0.013 s3.5 MiB3.51 MiB+ 11.09 KiB
/wp-admin/media-new.php0.258 s0.233 s-0.025 s3.49 MiB3.51 MiB+ 19.28 KiB
/wp-admin/edit-tags.php?taxonomy=category0.193 s0.213 s+0.020 s3.5 MiB3.53 MiB+ 29.95 KiB
/wp-admin/post-new.php?post_type=page0.608 s0.553 s-0.055 s6.05 MiB6.07 MiB+ 23.62 KiB
/wp-admin/options-discussion.php0.449 s0.416 s-0.033 s3.5 MiB3.51 MiB+ 7.59 KiB
/wp-admin/edit-comments.php0.249 s0.206 s-0.043 s3.52 MiB3.53 MiB+ 7.09 KiB
/0.295 s0.389 s+0.094 s3.43 MiB3.45 MiB+ 19.11 KiB
Average 0.379 s0.344 s-0.035 s3.97 MiB3.99 MiB+ 18.42 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
PHP91.5%811555
CSS6.3%5611
JavaScript2.1%1911
Total 886 57 7

PHP Code Analysis | More results »

Lines of code 613
Total complexity 170
Median class complexity 109.0
Median method complexity 2.0
Most complex class GA_Google_Analytics
Most complex function GA_Google_Analytics::validate_settings()
Classes 1
Methods 30
Functions 9

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.

No new entries found.

PHP Error Log

The log file is empty.

See also: All tests for this plugin, How to Hide the "Google Analytics" Admin Menu