Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/wp-yandex-translate/classes/common.class.php+1134
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▼1.57MB] [CPU: ▼57.22ms] Passed 4 tests
This is a short check of server-side resources used by Prisna YT - Яндекс Переводчик
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.42 ▼1.05 | 5.22 ▼34.71 |
Dashboard /wp-admin | 2.44 ▼0.87 | 7.08 ▼51.04 |
Posts /wp-admin/edit.php | 2.44 ▼0.92 | 10.03 ▼40.61 |
Add New Post /wp-admin/post-new.php | 2.44 ▼3.45 | 6.28 ▼102.53 |
Media Library /wp-admin/upload.php | 2.44 ▼0.79 | 5.84 ▼28.28 |
Prisna YT - Yandex Translator /wp-admin/plugins.php?page=prisna-yandex-website-translator-settings | 2.45 | 6.10 |
Server storage [IO: ▲0.57MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 161 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_prisna-yandex-website-translator |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Prisna YT - Яндекс Переводчик
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲36 | 14.34 ▲0.00 | 1.71 ▼0.33 | 40.30 ▲0.23 |
Dashboard /wp-admin | 2,206 ▲35 | 5.62 ▼0.03 | 92.17 ▼5.04 | 43.32 ▲4.66 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.98 ▼0.04 | 43.12 ▼1.54 | 37.45 ▼1.05 |
Add New Post /wp-admin/post-new.php | 1,529 ▼8 | 23.22 ▲5.09 | 626.03 ▼5.48 | 52.80 ▼21.59 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.22 ▲0.07 | 97.94 ▼6.60 | 42.97 ▼6.24 |
Prisna YT - Yandex Translator /wp-admin/plugins.php?page=prisna-yandex-website-translator-settings | 5,564 | 2.69 | 60.99 | 162.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/wp-yandex-translate/classes/common.class.php+1134
Array and string offset access syntax with curly braces is deprecated
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_prisna-yandex-website-translator
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- 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
- 7 occurences, only the last one shown
- > GET request to /wp-admin/plugins.php?page=prisna-yandex-website-translator-settings
- > Deprecated in wp-content/plugins/wp-yandex-translate/classes/common.class.php+1220
Array and string offset access syntax with curly braces is deprecated
- > GET request to /wp-admin/plugins.php?page=prisna-yandex-website-translator-settings
- > Warning in wp-content/plugins/wp-yandex-translate/classes/admin.class.php+345
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-yandex-translate/wp-yandex-translate.php:18
- > PHP Fatal error
Uncaught Error: Class 'PrisnaYWTItem' not found in wp-content/plugins/wp-yandex-translate/classes/main.class.php:102
- > PHP Fatal error
Uncaught Error: Class 'PrisnaYWTItem' not found in wp-content/plugins/wp-yandex-translate/classes/admin.class.php:157
- > PHP Fatal error
Uncaught Error: Call to undefined function status_header() in wp-content/plugins/wp-yandex-translate/uninstall.php:4
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/wp-yandex-translate/classes/admin.class.php on line 345
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-yandex-translate/classes/common.class.php:790
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: yandex translator, -, automatic translation, translation plugin, yandex translate...
wp-yandex-translate/wp-yandex-translate.php 92% from 13 tests
The primary PHP file in "Prisna YT - Яндекс Переводчик" version 1.0.6 is used by WordPress to initiate all plugin functionality
Please take the time 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
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 plugin7,166 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 1,268 | 72 | 2,792 |
SVG | 2 | 3 | 1 | 2,082 |
JavaScript | 2 | 267 | 14 | 1,056 |
CSS | 1 | 205 | 1 | 1,038 |
PO File | 1 | 68 | 68 | 198 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 8.98 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 90.00 |
Average method complexity | 2.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 47 | |
▷ Abstract classes | 2 | 4.26% |
▷ Concrete classes | 45 | 95.74% |
▷ Final classes | 0 | 0.00% |
Methods | 224 | |
▷ Static methods | 109 | 48.66% |
▷ Public methods | 159 | 70.98% |
▷ Protected methods | 65 | 29.02% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 16 | |
▷ Global constants | 9 | 56.25% |
▷ Class constants | 7 | 43.75% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
14 PNG files occupy 0.08MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/style_dark.png | 4.15KB | 2.35KB | ▼ 43.51% |
images/style_light.png | 3.73KB | 2.35KB | ▼ 37.15% |
images/fb.png | 1.30KB | 1.60KB | 0.00% |
images/tooltip.png | 0.35KB | 0.32KB | ▼ 8.19% |
images/tabbed_3.png | 0.21KB | 0.14KB | ▼ 31.13% |