Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▲1.28ms] Passed 4 tests
This is a short check of server-side resources used by Mihdan: Dialogs For Yandex
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 39.48 ▲0.96 |
Dashboard /wp-admin | 3.54 ▲0.23 | 49.37 ▲0.41 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 50.74 ▲3.83 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 92.41 ▲7.78 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 35.74 ▼0.08 |
Yandex Dialogs /wp-admin/options-general.php?page=mihdan_yandex_dialogs_settings | 3.37 | 34.24 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
mihdan_yandex_dialog_basic |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Mihdan: Dialogs For Yandex: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,130 ▲395 | 15.30 ▲0.95 | 15.41 ▲13.69 | 47.23 ▲2.88 |
Dashboard /wp-admin | 2,362 ▲174 | 6.61 ▲1.73 | 137.76 ▲26.95 | 45.89 ▼0.44 |
Posts /wp-admin/edit.php | 2,271 ▲179 | 3.52 ▲1.55 | 56.36 ▲14.18 | 35.48 ▼2.29 |
Add New Post /wp-admin/post-new.php | 1,527 ▲10 | 23.36 ▲5.70 | 710.60 ▲65.14 | 40.12 ▼18.52 |
Media Library /wp-admin/upload.php | 1,401 ▲13 | 4.34 ▲0.12 | 81.90 ▼25.40 | 42.13 ▼1.09 |
Yandex Dialogs /wp-admin/options-general.php?page=mihdan_yandex_dialogs_settings | 1,115 | 3.53 | 49.33 | 33.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- mihdan_yandex_dialog_basic
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
Please fix the following
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
require_once(): Failed opening required 'MIHDAN_YANDEX_DIALOGS_DIR/includes/class-osa.php' (include_path='.:/usr/share/php') in wp-content/plugins/mihdan-yandex-dialogs/includes/class-main.php on line 40
- > PHP Warning
require_once(MIHDAN_YANDEX_DIALOGS_DIR/includes/class-osa.php): failed to open stream: No such file or directory in wp-content/plugins/mihdan-yandex-dialogs/includes/class-main.php on line 40
- > PHP Warning
Use of undefined constant MIHDAN_YANDEX_DIALOGS_DIR - assumed 'MIHDAN_YANDEX_DIALOGS_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/mihdan-yandex-dialogs/includes/class-main.php on line 40
- > 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
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: widget, dialogs, yandex, mihdan
mihdan-yandex-dialogs/mihdan-yandex-dialogs.php 92% from 13 tests
The main PHP script in "Mihdan: Dialogs For Yandex" version 1.0.1 is automatically included on every request by WordPress
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 245 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin647 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 45 | 396 | 647 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 61.00 |
Average method complexity | 2.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 1 | 20.00% |
Methods | 44 | |
▷ Static methods | 1 | 2.27% |
▷ Public methods | 44 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 4 | |
▷ Global constants | 3 | 75.00% |
▷ Class constants | 1 | 25.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected