Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼8.53ms] Passed 4 tests
A check of server-side resources used by Yandex.Metrica
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 42.71 ▲1.14 |
Dashboard /wp-admin | 3.37 ▲0.02 | 48.83 ▼14.68 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 46.41 ▲2.45 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 90.78 ▼21.34 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 35.85 ▲0.75 |
Yandex.Metrica /wp-admin/options-general.php?page=yam_settings | 3.29 | 31.07 |
Server storage [IO: ▲1.63MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 111 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
yam_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
yam_messages |
Browser metrics Passed 4 tests
Checking browser requirements for Yandex.Metrica
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲63 | 14.67 ▲0.40 | 1.60 ▼0.08 | 42.78 ▼0.99 |
Dashboard /wp-admin | 2,226 ▲49 | 4.91 ▼0.86 | 95.42 ▲11.82 | 40.90 ▲5.99 |
Posts /wp-admin/edit.php | 2,138 ▲38 | 2.34 ▲0.35 | 40.45 ▲1.21 | 35.11 ▼5.25 |
Add New Post /wp-admin/post-new.php | 1,564 ▲26 | 18.43 ▼0.02 | 598.46 ▼30.03 | 48.36 ▼17.62 |
Media Library /wp-admin/upload.php | 1,437 ▲40 | 4.44 ▲0.29 | 96.44 ▼2.29 | 43.40 ▲2.59 |
Yandex.Metrica /wp-admin/options-general.php?page=yam_settings | 1,615 | 2.29 | 40.12 | 50.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=yam_settings
- > Notice in wp-content/plugins/wp-yandex-metrika/includes/class.ya-metrika-backend.php+478
Undefined index: flex-wrap
- > GET request to /wp-admin/options-general.php?page=yam_settings
- > Notice in wp-content/plugins/wp-yandex-metrika/includes/class.ya-metrika-backend.php+503
Undefined index: brand
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-yandex-metrika/view/index.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Tags: There are too many tags (14 tag instead of maximum 10)
wp-yandex-metrika/wp-yandex-metrika.php 92% from 13 tests
The principal PHP file in "Yandex.Metrica" v. 1.2.0 is loaded by WordPress automatically on each request
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 258 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin3,770 lines of code in 71 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 407 | 71 | 1,898 |
JavaScript | 32 | 196 | 39 | 779 |
CSS | 4 | 140 | 26 | 717 |
PO File | 1 | 84 | 96 | 231 |
SVG | 11 | 0 | 0 | 121 |
Markdown | 1 | 13 | 0 | 22 |
JSON | 1 | 1 | 0 | 2 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 13.83 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 85.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 18 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 132 | |
▷ Static methods | 29 | 21.97% |
▷ Public methods | 112 | 84.85% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 20 | 15.15% |
Functions | 6 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 6 | 100.00% |
Constants | 14 | |
▷ Global constants | 7 | 50.00% |
▷ Class constants | 7 | 50.00% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/logo.png | 17.56KB | 8.69KB | ▼ 50.53% |