Benchmarks
Plugin footprint 83% from 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: ▼0.19ms] Passed 4 tests
Analyzing server-side resources used by Fast Yandex Metrika
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 40.59 ▲6.35 |
Dashboard /wp-admin | 3.41 ▲0.10 | 49.55 ▲2.10 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 47.24 ▲5.12 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 79.52 ▼7.91 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 36.60 ▼0.08 |
Yandex.Metrica /wp-admin/options-general.php?page=fast_yandex_metrika | 3.27 | 30.87 |
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, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Fast Yandex Metrika
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.53 ▼0.06 | 1.78 ▼0.08 | 44.40 ▼0.01 |
Dashboard /wp-admin | 2,199 ▲22 | 5.57 ▲0.05 | 94.00 ▲5.27 | 44.11 ▲3.08 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 1.98 ▲0.02 | 33.19 ▼3.86 | 35.24 ▼0.45 |
Add New Post /wp-admin/post-new.php | 1,534 ▲5 | 23.04 ▼0.21 | 665.30 ▲38.15 | 48.16 ▼12.10 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.22 ▲0.02 | 96.32 ▲3.31 | 43.19 ▲1.61 |
Yandex.Metrica /wp-admin/options-general.php?page=fast_yandex_metrika | 1,131 | 2.00 | 22.50 | 44.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
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+585
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
Optimizations
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: metrica, metrik, metrika, statistics, yandex...
fast-yandex-metrika/fast-yandex-metrika.php Passed 13 tests
The entry point to "Fast Yandex Metrika" version 1.1.4 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 detected918 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 188 | 51 | 494 |
CSS | 1 | 0 | 0 | 176 |
PO File | 1 | 46 | 52 | 134 |
SVG | 2 | 0 | 1 | 72 |
JavaScript | 1 | 21 | 0 | 42 |
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 code | 0.55 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 12 | 70.59% |
▷ Anonymous functions | 5 | 29.41% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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