Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼147.29ms] Passed 4 tests
Analyzing server-side resources used by JSON-LD Schema for Yandex Metrica
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 34.49 ▲9.94 |
Dashboard /wp-admin | 3.07 ▲0.01 | 52.45 ▼1.16 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 45.60 ▼8.71 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 101.56 ▼576.58 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 38.11 ▼2.71 |
JSON-LD Schema for Yandex Metrica /wp-admin/options-general.php?page=ymschema-settings-page | 2.98 | 35.90 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
JSON-LD Schema for Yandex Metrica: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,707 ▲135 | 16.27 ▲0.68 | 10.67 ▼0.65 | 49.47 ▼1.11 |
Dashboard /wp-admin | 2,972 ▲41 | 5.91 ▼0.13 | 151.33 ▼12.77 | 132.48 ▲0.82 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.71 ▼0.01 | 77.68 ▲2.92 | 98.31 ▼4.17 |
Add New Post /wp-admin/post-new.php | 1,607 ▼76 | 18.62 ▲1.40 | 385.90 ▼35.22 | 119.76 ▲2.25 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.02 ▼0.02 | 166.59 ▲9.10 | 126.04 ▼2.52 |
JSON-LD Schema for Yandex Metrica /wp-admin/options-general.php?page=ymschema-settings-page | 1,107 | 2.09 | 66.70 | 97.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/antoniolite-yandex-metrica-json-ld-schema/yandex-metrica-json-ld-schema.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: yandex metrica, metrica, analytics, content reports, yandex...
antoniolite-yandex-metrica-json-ld-schema/yandex-metrica-json-ld-schema.php 77% from 13 tests
The entry point to "JSON-LD Schema for Yandex Metrica" version 1.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("antoniolite-yandex-metrica-json-ld-schema.php" instead of "yandex-metrica-json-ld-schema.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected251 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 19 | 35 | 251 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
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 | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 are no PNG files in this plugin