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
Install script ran successfully
Server metrics [RAM: ▲1.21MB] [CPU: ▲3.50ms] Passed 4 tests
Server-side resources used by Chat Support for Telegram - Bubble & Button with Gutenberg, Elementor and Shortcode
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.00 ▲1.53 | 54.44 ▲12.77 |
Dashboard /wp-admin | 4.80 ▲1.49 | 64.20 ▲16.01 |
Posts /wp-admin/edit.php | 4.85 ▲1.49 | 54.01 ▲12.45 |
Add New Post /wp-admin/post-new.php | 6.31 ▲0.42 | 63.95 ▼26.95 |
Media Library /wp-admin/upload.php | 4.66 ▲1.43 | 48.33 ▲15.71 |
Server storage [IO: ▲3.59MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 161 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
cts-opt |
Browser metrics Passed 4 tests
Checking browser requirements for Chat Support for Telegram - Bubble & Button with Gutenberg, Elementor and Shortcode
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,054 ▲292 | 15.80 ▲1.17 | 24.07 ▲22.32 | 78.77 ▲35.90 |
Dashboard /wp-admin | 2,250 ▲76 | 5.54 ▼0.09 | 95.72 ▼5.04 | 44.32 ▲1.06 |
Posts /wp-admin/edit.php | 2,156 ▲53 | 2.15 ▲0.14 | 36.05 ▼5.05 | 36.32 ▼1.69 |
Add New Post /wp-admin/post-new.php | 1,706 ▲166 | 22.87 ▼0.14 | 611.53 ▼85.56 | 59.02 ▲6.31 |
Media Library /wp-admin/upload.php | 1,455 ▲55 | 4.17 ▼0.01 | 103.76 ▼6.20 | 46.83 ▲2.18 |
Buttons shortcodes /wp-admin/admin.php?page=cts#tab=buttons-shortcodes | 4,079 | 3.65 | 80.43 | 86.29 |
Backup /wp-admin/admin.php?page=cts#tab=backup | 4,090 | 3.39 | 56.72 | 72.66 |
CTS settings /wp-admin/admin.php?page=cts#tab=cts-settings | 4,212 | 4.03 | 75.04 | 92.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- cts-opt
- can_compress_scripts
- db_upgraded
Smoke tests 50% 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 0% 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
Almost there! Just fix the following items
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/chat-telegram/telegram-chat.php
- > /wp-content/plugins/chat-telegram/inc/class-enqueue.php
- > /wp-content/plugins/chat-telegram/inc/functions.php
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/chat-telegram/view/shortcodes/custom-shortcode.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chat-telegram/view/chat-bubbles/chat-bubbles.php:3
- > PHP Warning
Use of undefined constant CTS_ALERT_MSG - assumed 'CTS_ALERT_MSG' (this will throw an Error in a future version of PHP) in wp-content/plugins/chat-telegram/inc/class-enqueue.php on line 11
- > PHP Warning
Use of undefined constant CTS_ALERT_MSG - assumed 'CTS_ALERT_MSG' (this will throw an Error in a future version of PHP) in wp-content/plugins/chat-telegram/inc/functions.php on line 11
- > 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 90% 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:
- Screenshots: Please add images for these screenshots: #1 (Settings option for bubble), #2 (Shortcode in settings panel), #3 (Chat bubble frontend), #4 (Elementor widget), #5 (Gutenberg button block)
chat-telegram/telegram-chat.php 85% from 13 tests
Analyzing the main PHP file in "Chat Support for Telegram - Bubble & Button with Gutenberg, Elementor and Shortcode" version 1.0.6
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("chat-telegram.php" instead of "telegram-chat.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin21,444 lines of code in 106 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 71 | 2,107 | 1,430 | 9,189 |
PO File | 20 | 3,198 | 3,591 | 6,500 |
JavaScript | 5 | 86 | 139 | 2,873 |
Sass | 1 | 19 | 4 | 1,397 |
CSS | 6 | 80 | 19 | 1,335 |
JSON | 1 | 2 | 0 | 148 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 20.58 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 151.00 |
Average method complexity | 5.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 59 | |
▷ Abstract classes | 2 | 3.39% |
▷ Concrete classes | 57 | 96.61% |
▷ Final classes | 1 | 1.75% |
Methods | 246 | |
▷ Static methods | 30 | 12.20% |
▷ Public methods | 224 | 91.06% |
▷ Protected methods | 7 | 2.85% |
▷ Private methods | 15 | 6.10% |
Functions | 32 | |
▷ Named functions | 31 | 96.88% |
▷ Anonymous functions | 1 | 3.12% |
Constants | 8 | |
▷ Global constants | 5 | 62.50% |
▷ Class constants | 3 | 37.50% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
12 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/image/bubble-9.png | 6.58KB | 2.97KB | ▼ 54.88% |
assets/image/button-with-info.png | 13.58KB | 5.36KB | ▼ 60.53% |
assets/image/bubble-8.png | 4.32KB | 2.18KB | ▼ 49.64% |
assets/image/bubble-4.png | 7.59KB | 3.43KB | ▼ 54.86% |
assets/image/button2.png | 5.55KB | 2.39KB | ▼ 56.93% |