Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/telegram-chat/lib/browser.lib.php+134
Methods with the same name as their class will not be constructors in a future version of PHP; Browser_telegram_chat has a deprecated constructor
Server metrics [RAM: ▼1.53MB] [CPU: ▼60.53ms] Passed 4 tests
A check of server-side resources used by Telegram-chat
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.47 ▼1.00 | 7.45 ▼39.47 |
Dashboard /wp-admin | 2.49 ▼0.86 | 7.14 ▼57.26 |
Posts /wp-admin/edit.php | 2.50 ▼0.86 | 6.79 ▼47.22 |
Add New Post /wp-admin/post-new.php | 2.49 ▼3.40 | 8.00 ▼98.17 |
Media Library /wp-admin/upload.php | 2.50 ▼0.73 | 7.59 ▼29.68 |
Telegram Chat /wp-admin/themes.php?page=telegram-chat-plugin | 2.50 | 7.64 |
Server storage [IO: ▲1.67MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 112 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_telegram_chat_history |
wp_telegram_chat_info |
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
telegramChat_db_version |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Telegram-chat
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,878 ▲132 | 13.81 ▼0.11 | 9.25 ▲7.42 | 39.64 ▲0.35 |
Dashboard /wp-admin | 2,200 ▲20 | 5.60 ▼0.08 | 84.33 ▼9.51 | 68.21 ▲25.10 |
Posts /wp-admin/edit.php | 2,120 ▲20 | 1.99 ▼0.00 | 36.28 ▼3.40 | 31.92 ▼5.18 |
Add New Post /wp-admin/post-new.php | 1,541 ▲15 | 23.17 ▼0.24 | 696.95 ▼15.20 | 53.45 ▲1.98 |
Media Library /wp-admin/upload.php | 1,414 ▲14 | 4.28 ▲0.09 | 102.53 ▼9.40 | 70.77 ▲24.45 |
Telegram Chat /wp-admin/themes.php?page=telegram-chat-plugin | 863 | 2.00 | 26.66 | 29.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/telegram-chat/lib/browser.lib.php+134
Methods with the same name as their class will not be constructors in a future version of PHP; Browser_telegram_chat has a deprecated constructor
- Zombie tables were found after uninstall: 2 tables
- wp_telegram_chat_info
- wp_telegram_chat_history
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- telegramChat_db_version
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/themes.php?page=telegram-chat-plugin
- > Deprecated in wp-content/plugins/telegram-chat/lib/browser.lib.php+134
Methods with the same name as their class will not be constructors in a future version of PHP; Browser_telegram_chat has a deprecated constructor
- 2 occurences, only the last one shown
- > GET request to /wp-admin/themes.php?page=telegram-chat-plugin
- > Notice in wp-content/plugins/telegram-chat/lib/hash.php+40
Undefined index: accion
- 3 occurences, only the last one shown
- > GET request to /wp-admin/themes.php?page=telegram-chat-plugin
- > Notice in wp-content/plugins/telegram-chat/telegram-chat.php+262
Undefined offset: 0
- 3 occurences, only the last one shown
- > GET request to /wp-admin/themes.php?page=telegram-chat-plugin
- > Notice in wp-content/plugins/telegram-chat/telegram-chat.php+262
Trying to access array offset on value of type null
- > GET request to /wp-admin/themes.php?page=telegram-chat-plugin
- > Notice in wp-content/plugins/telegram-chat/telegram-chat.php+159
Undefined index: valor2
- > GET request to /wp-admin/themes.php?page=telegram-chat-plugin
- > Notice in wp-content/plugins/telegram-chat/telegram-chat.php+162
Undefined index: valor3
- > GET request to /wp-admin/themes.php?page=telegram-chat-plugin
- > Notice in wp-content/plugins/telegram-chat/telegram-chat.php+253
Undefined index: nombre
- > GET request to /wp-admin/themes.php?page=telegram-chat-plugin
- > Notice in wp-content/plugins/telegram-chat/telegram-chat.php+254
Undefined index: email
- > GET request to /wp-admin/themes.php?page=telegram-chat-plugin
- > Notice in wp-content/plugins/telegram-chat/telegram-chat.php+255
Undefined index: telefono
- 6 occurences, only the last one shown
- > GET request to /wp-admin/themes.php?page=telegram-chat-plugin
- > Notice in wp-content/plugins/telegram-chat/telegram-chat.php+795
Undefined variable: active_tab
- > GET request to /wp-admin/themes.php?page=telegram-chat-plugin
- > Notice in wp-content/plugins/telegram-chat/menu/display.php+51
Undefined index: HTTP_CLIENT_IP
- > GET request to /wp-admin/themes.php?page=telegram-chat-plugin
- > Notice in wp-content/plugins/telegram-chat/menu/display.php+52
Undefined index: HTTP_X_FORWARDED_FOR
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
The following issues need your attention
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Undefined index: accion in wp-content/plugins/telegram-chat/lib/hash.php on line 40
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/telegram-chat/menu/config.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/telegram-chat/menu/display.php:46
- > PHP Notice
Undefined index: accion in wp-content/plugins/telegram-chat/lib/hash.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/telegram-chat/menu/active.php:19
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 33 tag instead of maximum 10
telegram-chat/telegram-chat.php Passed 13 tests
"Telegram-chat" version 3.0.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
98 characters long description:
Take all your conversations to your phone by Telegram. Just configure your phone number and ready!
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin12,717 lines of code in 83 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 108 | 28 | 3,255 |
JavaScript | 13 | 378 | 154 | 2,008 |
PHP | 6 | 317 | 524 | 1,833 |
Sass | 14 | 34 | 34 | 1,656 |
LESS | 14 | 34 | 44 | 1,646 |
PO File | 4 | 288 | 300 | 1,098 |
SVG | 2 | 0 | 1 | 721 |
Markdown | 3 | 156 | 0 | 318 |
HTML | 5 | 2 | 0 | 90 |
JSON | 2 | 0 | 0 | 62 |
XML | 15 | 0 | 0 | 15 |
YAML | 1 | 0 | 3 | 9 |
Bourne Shell | 1 | 0 | 0 | 6 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 118.00 |
▷ Minimum class complexity | 118.00 |
▷ Maximum class complexity | 118.00 |
Average method complexity | 3.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.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 | 55 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 34.55% |
▷ Protected methods | 36 | 65.45% |
▷ Private methods | 0 | 0.00% |
Functions | 20 | |
▷ Named functions | 19 | 95.00% |
▷ Anonymous functions | 1 | 5.00% |
Constants | 55 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 55 | 100.00% |
▷ Public constants | 55 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.17MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/diagrama.png | 50.02KB | 16.76KB | ▼ 66.50% |
images/ayudaInfo.png | 46.64KB | 14.90KB | ▼ 68.06% |
images/mensaje_telegram.png | 18.32KB | 7.50KB | ▼ 59.08% |
images/chat_icon.png | 4.13KB | 1.65KB | ▼ 60.14% |
images/telegram.png | 31.04KB | 14.60KB | ▼ 52.98% |