94% fast-yandex-metrika

Code Review | Fast Yandex Metrika

WordPress plugin Fast Yandex Metrika scored 94% from 54 tests.

About plugin

  • Plugin page: fast-yandex-metrika
  • Plugin version: 1.1.3
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-5.8
  • WordPress version: 5.8.1
  • First release: Mar 9, 2021
  • Latest release: Sep 4, 2021
  • Number of updates: 21
  • Update frequency: every 8.5 days
  • Top authors: pss777 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active / 450 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼144.89ms] Passed 4 tests

Analyzing server-side resources used by Fast Yandex Metrika
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.94 ▲0.1136.86 ▲3.85
Dashboard /wp-admin3.16 ▲0.1146.26 ▲0.31
Posts /wp-admin/edit.php3.22 ▲0.1147.47 ▲1.57
Add New Post /wp-admin/post-new.php5.52 ▲0.0989.80 ▼573.85
Media Library /wp-admin/upload.php3.11 ▲0.1134.98 ▼7.58
Yandex.Metrica /wp-admin/options-general.php?page=fast_yandex_metrika3.0531.01

Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Fast Yandex Metrika
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,694 ▲10015.96 ▲0.028.32 ▼2.4546.31 ▼0.62
Dashboard /wp-admin2,972 ▲386.10 ▲0.15141.84 ▼10.80110.91 ▲3.33
Posts /wp-admin/edit.php2,744 ▲52.72 ▲0.0077.31 ▲0.6884.57 ▲6.05
Add New Post /wp-admin/post-new.php1,686 ▲8218.55 ▼0.26380.27 ▼15.95111.89 ▲2.18
Media Library /wp-admin/upload.php1,812 ▲645.08 ▲0.09146.52 ▼16.13112.52 ▼3.27
Yandex.Metrica /wp-admin/options-general.php?page=fast_yandex_metrika1,4772.1154.14114.93

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=fast_yandex_metrika
    • > Notice in wp-content/plugins/fast-yandex-metrika/fast-yandex-metrika.php+587
    Trying to access array offset on value of type null

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: analytics tool, stats, tools, yandex, metrica...

fast-yandex-metrika/fast-yandex-metrika.php Passed 13 tests

The entry point to "Fast Yandex Metrika" version 1.1.3 is a PHP file that has certain tags in its header comment area
60 characters long description:
Plugin for configuring the counter and Yandex Metrica goals.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected917 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PO File14551131

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.68
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1168.75%
▷ Anonymous functions531.25%
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin