Unfortunately, if the problem with the Yandex metric is not solved – maybe it’s worth using another service – google analytics? Although any scripts that are not on your site – can not be optimized.
According to the general optimization of the site, you can try the appropriate plug-ins:
https://wordpress.org/plugins/wp-super-cache/
or
https://wordpress.org/plugins/w3-total-cache/
And for if hosting allows you to use additional Apache modules, you can add a .htaccess file to the www or html directory
<ifModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript
<IfModule mod_filter.c>
AddOutputFilterByType DEFLATE text/plain text/html
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/javascript application/javascript application/x-javascript
AddOutputFilterByType DEFLATE text/xml application/xml application/xhtml+xml application/rss+xml
AddOutputFilterByType DEFLATE application/json
AddOutputFilterByType DEFLATE application/vnd.ms-fontobject application/x-font-ttf font/opentype image/svg+xml image/x-icon
</ifModule>
</ifModule>
<ifModule mod_headers.c>
# 43200 – день, 604800 – неделя, 2592000 – месяц
<FilesMatch “\.(html|js|css)$”>
Header set Cache-Control “max-age=2592000”
#Header unset Last-Modified
</FilesMatch>
<Files *.txt>
Header add Cache-Control “max-age=43200”
</Files>
<FilesMatch “\.(flv|swf|ico|gif|jpg|jpeg|png)$”>
Header set Cache-Control “max-age=2592000”
</FilesMatch>
<FilesMatch “\.(pl|php|cgi|spl|scgi|fcgi)$”>
# отключить кэширование
Header unset Cache-Control
</FilesMatch>
</IfModule>
<IfModule mod_expires.c>
# Enable expires
ExpiresActive On
# Default a cache expiration
ExpiresDefault “access plus 10 month”
# Images
ExpiresByType image/gif “access plus 1 month”
ExpiresByType image/png “access plus 1 month”
ExpiresByType image/jpg “access plus 1 month”
ExpiresByType image/jpeg “access plus 1 month”
# CSS, JavaScript
ExpiresByType text/css “access plus 1 year”
ExpiresByType application/javascript “access plus 1 year”
ExpiresByType text/javascript “access plus 1 year”
</IfModule>
<IfModule mod_headers.c>
Header unset ETag
</IfModule>
FileETag None
<IfModule pagespeed_module>
# Disable broken and conflicting features.
ModPagespeedDisableFilters add_head,rewrite_css,inline_css,rewrite_javascript,inline_javascript
</IfModule>
<IfModule pagespeed_module>
# Turning the mod_pagespeed module off
ModPagespeed on
</IfModule>