Analytics for WordPress — by Segment 1.0.13

Does "Analytics for WordPress — by Segment.io" work with WordPress 6.5.2 and PHP 8.1.12? A smoke test was performed on .

Summary

Errors
No PHP errors, warnings or notices
4JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

Memory usage: 34.37 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.5.2
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs 2,000+
WordPress.org page https://wordpress.org/plugins/segmentio/
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=segmentio%2Fanalytics-wordpress.php&plugin_status=all&paged=1&s&_wpnonce=4acef84807
Aspect after-activation
HTTP status 200
Load time 0.238 s
Memory usage 3.44 MiB
JS errors
[
    {
        "message": "ReferenceError: analytics is not defined\n    at /wp-admin/plugins.php?plugin_status=all&paged=1&s:362:2",
        "trace": null,
        "code": null
    }
]
Resource errors None

Settings → Analytics

Page screenshot: Settings → Analytics
URL /wp-admin/options-general.php?page=analytics
Aspect menu-item
HTTP status 200
Load time 0.166 s
Memory usage 3.42 MiB
JS errors
[
    {
        "message": "ReferenceError: analytics is not defined\n    at /wp-admin/options-general.php?page=analytics:209:2",
        "trace": null,
        "code": null
    }
]
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.173 s
Memory usage 3.45 MiB
JS errors
[
    {
        "message": "ReferenceError: analytics is not defined\n    at /:225:2",
        "trace": null,
        "code": null
    },
    {
        "message": "ReferenceError: analytics is not defined\n    at /:227:3",
        "trace": null,
        "code": null
    }
]
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.337 s0.291 s-0.046 s3.44 MiB3.48 MiB+ 42.87 KiB
/wp-admin/edit.php0.198 s0.195 s-0.003 s3.46 MiB3.5 MiB+ 42.41 KiB
/wp-admin/post-new.php0.861 s0.575 s-0.286 s5.59 MiB5.64 MiB+ 46.34 KiB
/wp-admin/upload.php0.646 s0.386 s-0.260 s3.38 MiB3.41 MiB+ 26.37 KiB
/wp-admin/options-writing.php0.213 s0.201 s-0.012 s3.37 MiB3.39 MiB+ 17.73 KiB
/wp-admin/media-new.php0.289 s0.238 s-0.051 s3.35 MiB3.39 MiB+ 37.18 KiB
/wp-admin/edit-tags.php?taxonomy=category0.200 s0.187 s-0.013 s3.37 MiB3.41 MiB+ 43.19 KiB
/wp-admin/post-new.php?post_type=page0.523 s0.549 s+0.026 s5.59 MiB5.63 MiB+ 41.92 KiB
/wp-admin/options-discussion.php0.503 s0.297 s-0.206 s3.36 MiB3.38 MiB+ 26.26 KiB
/wp-admin/edit-comments.php0.238 s0.227 s-0.011 s3.39 MiB3.42 MiB+ 25.82 KiB
/0.295 s0.199 s-0.096 s3.37 MiB3.39 MiB+ 28.04 KiB
Average 0.391 s0.304 s-0.087 s3.79 MiB3.82 MiB+ 34.37 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
PHP88.7%1,42079422
Bourne Shell3.7%5941
Bourne Again Shell3.1%49131
XML2.0%3201
Markdown1.5%2401
YAML0.7%1201
make0.3%571
Total 1,601 818 28

PHP Code Analysis | More results »

Lines of code 1,351
Total complexity 223
Median class complexity 13.5
Median method complexity 1.0
Most complex class Segment_Analytics_WordPress
Most complex function Segment_Analytics_WordPress::get_current_page_track()
Classes 14
Methods 105
Functions 4

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 1

PHP Error Log

The log file is empty.

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