Yandex Metrica 1.2.0

Does Yandex Metrica work with WordPress 6.5.3 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: 54.26 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.3
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=3139a23e27
Aspect after-activation
HTTP status 200
Load time 0.510 s
Memory usage 3.44 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.241 s
Memory usage 3.46 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.266 s
Memory usage 3.4 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.359 s0.363 s+0.004 s3.44 MiB3.5 MiB+ 65.2 KiB
/wp-admin/edit.php0.217 s0.220 s+0.003 s3.46 MiB3.52 MiB+ 65.56 KiB
/wp-admin/post-new.php0.989 s0.633 s-0.356 s5.59 MiB5.68 MiB+ 89.45 KiB
/wp-admin/upload.php0.607 s0.521 s-0.086 s3.38 MiB3.43 MiB+ 48.52 KiB
/wp-admin/options-writing.php0.213 s0.249 s+0.036 s3.37 MiB3.41 MiB+ 40.88 KiB
/wp-admin/media-new.php0.309 s0.248 s-0.061 s3.35 MiB3.41 MiB+ 61.8 KiB
/wp-admin/edit-tags.php?taxonomy=category0.201 s0.216 s+0.015 s3.37 MiB3.43 MiB+ 65.51 KiB
/wp-admin/post-new.php?post_type=page0.579 s0.598 s+0.019 s5.59 MiB5.66 MiB+ 81.03 KiB
/wp-admin/options-discussion.php0.365 s0.358 s-0.007 s3.36 MiB3.41 MiB+ 51.29 KiB
/wp-admin/edit-comments.php0.257 s0.265 s+0.008 s3.39 MiB3.44 MiB+ 48.15 KiB
/0.325 s0.211 s-0.114 s3.42 MiB3.4 MiB- 20.52 KiB
Average 0.402 s0.353 s-0.049 s3.79 MiB3.84 MiB+ 54.26 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.7%1,8987121
JavaScript20.1%7513916
CSS19.1%715262
PO File6.2%231961
SVG3.2%121011
Markdown0.6%2201
JSON0.1%201
Total 3,740 232 53

PHP Code Analysis | More results »

Lines of code 1,788
Total complexity 363
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

[08-May-2024 02:03:43 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
[08-May-2024 02:03:44 UTC] PHP Warning:  Undefined array key "flex-wrap" in /wp-content/plugins/wp-yandex-metrika/includes/class.ya-metrika-backend.php on line 440
[08-May-2024 02:03:44 UTC] PHP Warning:  Undefined array key "flex-wrap" in /wp-content/plugins/wp-yandex-metrika/includes/class.ya-metrika-backend.php on line 440
[08-May-2024 02:03:44 UTC] PHP Warning:  Undefined array key "flex-wrap" in /wp-content/plugins/wp-yandex-metrika/includes/class.ya-metrika-backend.php on line 478
[08-May-2024 02:03:44 UTC] PHP Warning:  Undefined array key "flex-wrap" in /wp-content/plugins/wp-yandex-metrika/includes/class.ya-metrika-backend.php on line 478
[08-May-2024 02:03:44 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