Yandex Metrica 1.1.9

Does Yandex Metrica work with WordPress 6.3.1 and PHP 8.1.12? A smoke test was performed on .

Summary

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

Memory usage: 56.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.3.1
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs 40,000+
WordPress.org page https://wordpress.org/plugins/wp-yandex-metrika/
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=wp-yandex-metrika%2Fwp-yandex-metrika.php&plugin_status=all&paged=1&s&_wpnonce=f4ebfc924a
Aspect after-activation
HTTP status 200
Load time 0.369 s
Memory usage 2.82 MiB
JS errors None
Resource errors None

Settings → Yandex.Metrica

Page screenshot: Settings → Yandex.Metrica
URL /wp-admin/options-general.php?page=yam_settings
Aspect menu-item
HTTP status 200
Load time 0.263 s
Memory usage 2.84 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.182 s
Memory usage 3.15 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.418 s0.335 s-0.083 s2.82 MiB2.88 MiB+ 62.44 KiB
/wp-admin/edit.php0.227 s0.227 s+0.000 s2.85 MiB2.91 MiB+ 62.44 KiB
/wp-admin/post-new.php0.856 s0.605 s-0.251 s5.21 MiB5.3 MiB+ 86.06 KiB
/wp-admin/upload.php0.777 s0.525 s-0.252 s2.77 MiB2.81 MiB+ 46.23 KiB
/wp-admin/options-writing.php0.245 s0.246 s+0.001 s2.76 MiB2.8 MiB+ 37.76 KiB
/wp-admin/media-new.php0.310 s0.303 s-0.007 s2.74 MiB2.8 MiB+ 58.67 KiB
/wp-admin/edit-tags.php?taxonomy=category0.231 s0.224 s-0.007 s2.76 MiB2.82 MiB+ 62.39 KiB
/wp-admin/post-new.php?post_type=page0.784 s0.593 s-0.191 s5.21 MiB5.29 MiB+ 81.65 KiB
/wp-admin/options-discussion.php0.247 s0.475 s+0.228 s2.75 MiB2.79 MiB+ 48.16 KiB
/wp-admin/edit-comments.php0.451 s0.295 s-0.156 s2.78 MiB2.82 MiB+ 45.02 KiB
/0.306 s0.223 s-0.083 s3.13 MiB3.15 MiB+ 29.29 KiB
Average 0.441 s0.368 s-0.073 s3.25 MiB3.31 MiB+ 56.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
JavaScript
CSS
Language % Lines of code Comment lines Files
PHP50.8%1,8987121
JavaScript20.0%7493916
CSS19.1%715262
PO File6.2%231961
SVG3.2%121011
Markdown0.6%2201
JSON0.1%201
Total 3,738 232 53

PHP Code Analysis | More results »

Lines of code 1,788
Total complexity 362
Median class complexity 4.0
Median method complexity 2.0
Most complex class YaMetrikaWoocommerce
Most complex function YaMetrikaBackend::displayRepeaterField()
Classes 18
Methods 132
Functions 0

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 2

PHP Error Log 6 lines

[30-Aug-2023 12:51:31 UTC] PHP Deprecated:  Optional parameter $webvisor declared before required parameter $dataLayer is implicitly treated as a required parameter in /wp-content/plugins/wp-yandex-metrika/includes/class.ya-metrika-frontend.php on line 75
[30-Aug-2023 12:51:33 UTC] PHP Warning:  Undefined array key "flex-wrap" in /wp-content/plugins/wp-yandex-metrika/includes/class.ya-metrika-backend.php on line 440
[30-Aug-2023 12:51:33 UTC] PHP Warning:  Undefined array key "flex-wrap" in /wp-content/plugins/wp-yandex-metrika/includes/class.ya-metrika-backend.php on line 440
[30-Aug-2023 12:51:33 UTC] PHP Warning:  Undefined array key "flex-wrap" in /wp-content/plugins/wp-yandex-metrika/includes/class.ya-metrika-backend.php on line 478
[30-Aug-2023 12:51:33 UTC] PHP Warning:  Undefined array key "flex-wrap" in /wp-content/plugins/wp-yandex-metrika/includes/class.ya-metrika-backend.php on line 478
[30-Aug-2023 12:51:33 UTC] PHP Warning:  Undefined array key "brand" in /wp-content/plugins/wp-yandex-metrika/includes/class.ya-metrika-backend.php on line 503
See also: All tests for this plugin, How to Hide the "Yandex.Metrica" Admin Menu