Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.30MB] [CPU: ▼0.67ms] Passed 4 tests
A check of server-side resources used by Telegram Bot & Channel
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.79 ▲0.33 | 38.29 ▼3.15 |
Dashboard /wp-admin | 3.62 ▲0.31 | 48.90 ▲4.63 |
Posts /wp-admin/edit.php | 3.73 ▲0.37 | 47.31 ▲2.73 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.27 | 82.37 ▼2.33 |
Media Library /wp-admin/upload.php | 3.54 ▲0.31 | 35.31 ▲0.07 |
Log /wp-admin/admin.php?page=telegram_log | 3.51 | 31.10 |
Telegram /wp-admin/admin.php?page=telegram_main | 3.51 | 33.59 |
Responders /wp-admin/edit.php?post_type=telegram_commands | 3.58 | 34.96 |
Groups /wp-admin/edit.php?post_type=telegram_groups | 3.58 | 35.61 |
Users /wp-admin/edit.php?post_type=telegram_subscribers | 3.59 | 34.11 |
Send a message /wp-admin/admin.php?page=telegram_send | 3.51 | 32.51 |
Settings /wp-admin/admin.php?page=telegram_settings | 3.56 | 30.98 |
Server storage [IO: ▲0.13MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 18 new files
Database: no new tables, 11 new options
New WordPress options |
---|
wp_telegram_dispatches |
can_compress_scripts |
wp_telegram_version |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
wp_telegram_apikey |
widget_telegram_widget |
wp_telegram |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Telegram Bot & Channel
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,845 ▲84 | 14.28 ▼0.09 | 1.69 ▲0.15 | 45.06 ▼0.27 |
Dashboard /wp-admin | 2,249 ▲69 | 5.56 ▼0.11 | 85.02 ▼6.24 | 39.01 ▼1.46 |
Posts /wp-admin/edit.php | 2,157 ▲54 | 2.01 ▼0.02 | 35.35 ▼6.04 | 31.42 ▼3.05 |
Add New Post /wp-admin/post-new.php | 1,728 ▲202 | 22.47 ▼1.04 | 666.44 ▼18.75 | 59.84 ▲6.41 |
Media Library /wp-admin/upload.php | 1,456 ▲56 | 4.27 ▲0.04 | 98.54 ▲0.68 | 41.34 ▼4.08 |
Log /wp-admin/admin.php?page=telegram_log | 843 | 2.03 | 24.63 | 24.56 |
Telegram /wp-admin/admin.php?page=telegram_main | 855 | 2.03 | 24.09 | 30.45 |
Responders /wp-admin/edit.php?post_type=telegram_commands | 1,142 | 1.97 | 31.14 | 36.59 |
Groups /wp-admin/edit.php?post_type=telegram_groups | 1,120 | 1.97 | 32.80 | 32.00 |
Users /wp-admin/edit.php?post_type=telegram_subscribers | 1,129 | 1.95 | 31.98 | 30.63 |
Send a message /wp-admin/admin.php?page=telegram_send | 884 | 2.00 | 23.90 | 25.75 |
Settings /wp-admin/admin.php?page=telegram_settings | 1,323 | 2.15 | 25.51 | 36.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 11 options in the database
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- wp_telegram_apikey
- wp_telegram_version
- wp_telegram
- widget_theysaidso_widget
- can_compress_scripts
- wp_telegram_dispatches
- widget_telegram_widget
- ...
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
Everything seems fine, however this is by no means an exhaustive test
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 fix the following items
- 9× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/telegram-bot/custom-post-types.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function telegram_log() in wp-content/plugins/telegram-bot/parse.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/telegram-bot/panel/settings.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/telegram-bot/columns.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/telegram-bot/panel/main.php:7
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/telegram-bot/widget.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/telegram-bot/columns.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/telegram-bot/defaults.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/telegram-bot/admin-messages.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
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
8 plugin tags: group, stream, channel, newsletter, telegram...
telegram-bot/telegram-bot.php 92% from 13 tests
Analyzing the main PHP file in "Telegram Bot & Channel" version 3.7
Please take the time to fix the following:
- Domain Path: The domain path folder was not found ("/languages")
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 plugin1,713 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 199 | 22 | 1,523 |
JavaScript | 1 | 13 | 1 | 188 |
Markdown | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 58 | |
▷ Named functions | 33 | 56.90% |
▷ Anonymous functions | 25 | 43.10% |
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
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/telegramicon.png | 3.28KB | 2.18KB | ▼ 33.42% |
img/dashicon.png | 0.58KB | 0.74KB | 0.00% |
img/telegrambot.png | 25.19KB | 10.11KB | ▼ 59.86% |