Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▲4.07ms] Passed 4 tests
Server-side resources used by Yandex Metrica
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.17 | 51.19 ▲12.16 |
Dashboard /wp-admin | 3.46 ▲0.15 | 53.14 ▲6.39 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 53.00 ▲8.19 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 87.09 ▼10.48 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 42.30 ▲12.89 |
Yandex Metrica /wp-admin/options-general.php?page=yandex-metrica | 3.44 | 39.58 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
metrica_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Yandex Metrica
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.45 ▲0.10 | 1.58 ▲0.09 | 41.67 ▲2.26 |
Dashboard /wp-admin | 2,199 ▲22 | 5.50 ▼0.15 | 84.43 ▼2.18 | 38.78 ▼2.45 |
Posts /wp-admin/edit.php | 2,107 ▲10 | 1.99 ▼0.04 | 35.24 ▲0.23 | 33.74 ▼2.73 |
Add New Post /wp-admin/post-new.php | 1,538 ▲1 | 17.96 ▼0.28 | 618.14 ▼4.20 | 60.95 ▼8.68 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.21 ▲0.03 | 94.54 ▲0.19 | 44.05 ▲2.04 |
Yandex Metrica /wp-admin/options-general.php?page=yandex-metrica | 809 | 2.00 | 22.53 | 27.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: stats, tools, metrica, yandex, analytics...
yandex-metrica/yandex-metrica.php Passed 13 tests
The primary PHP file in "Yandex Metrica" version 2.0 is used by WordPress to initiate all plugin functionality
45 characters long description:
The best Yandex Metrica plugin for WordPress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,658 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 351 | 232 | 1,237 |
PO File | 2 | 162 | 177 | 419 |
JavaScript | 1 | 0 | 11 | 2 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 17.83 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 2.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 1 | 16.67% |
Methods | 51 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 44 | 86.27% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 13.73% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 8 | 100.00% |
▷ Public constants | 8 | 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
There were not PNG files found in your plugin