Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.49MB] [CPU: ▼1.93ms] Passed 4 tests
Analyzing server-side resources used by WP Telegram Widget and Join Link
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.98 ▲0.52 | 42.41 ▲5.16 |
Dashboard /wp-admin | 3.82 ▲0.48 | 49.54 ▼10.89 |
Posts /wp-admin/edit.php | 3.88 ▲0.52 | 48.47 ▲2.15 |
Add New Post /wp-admin/post-new.php | 6.52 ▲0.63 | 96.75 ▲0.13 |
Media Library /wp-admin/upload.php | 3.69 ▲0.46 | 37.51 ▲0.91 |
Server storage [IO: ▲3.68MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 78 new files
Database: no new tables, 10 new options
New WordPress options |
---|
db_upgraded |
widget_wptelegram_widget_join_channel |
widget_theysaidso_widget |
can_compress_scripts |
widget_wptelegram_widget_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_wptelegram_widget_ajax_widget |
wptelegram_widget_ver |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for WP Telegram Widget and Join Link
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,900 ▲114 | 13.82 ▼0.53 | 9.39 ▲7.72 | 44.41 ▲3.34 |
Dashboard /wp-admin | 2,219 ▲42 | 5.58 ▼0.01 | 88.45 ▼1.19 | 40.37 ▼3.70 |
Posts /wp-admin/edit.php | 2,118 ▲18 | 2.02 ▲0.05 | 34.72 ▼1.67 | 33.27 ▲0.43 |
Add New Post /wp-admin/post-new.php | 6,231 ▲4,705 | 21.24 ▼1.86 | 874.05 ▲186.84 | 82.55 ▲12.57 |
Media Library /wp-admin/upload.php | 1,424 ▲24 | 4.12 ▼0.02 | 98.86 ▼17.54 | 40.12 ▼9.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The uninstall procedure has failed, leaving 9 options in the database
- widget_wptelegram_widget_ajax_widget
- widget_recent-comments
- widget_recent-posts
- widget_wptelegram_widget_widget
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_wptelegram_widget_join_channel
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Please fix the following items
- 10× PHP files output text when accessed directly:
- > /wp-content/plugins/wptelegram-widget/shared/widgets/Ajax.php
- > /wp-content/plugins/wptelegram-widget/shared/shortcodes/AjaxWidget.php
- > /wp-content/plugins/wptelegram-widget/shared/widgets/Legacy.php
- > /wp-content/plugins/wptelegram-widget/shared/embed/AjaxWidget.php
- > /wp-content/plugins/wptelegram-widget/shared/shortcodes/LegacyWidget.php
- > /wp-content/plugins/wptelegram-widget/shared/partials/v.php
- > /wp-content/plugins/wptelegram-widget/shared/partials/legacy-widget.php
- > /wp-content/plugins/wptelegram-widget/shared/embed/SingleMessage.php
- > /wp-content/plugins/wptelegram-widget/shared/shortcodes/JoinChannel.php
- > /wp-content/plugins/wptelegram-widget/shared/widgets/JoinChannel.php
- 16× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WPTelegram\\Widget\\includes\\BaseClass' not found in wp-content/plugins/wptelegram-widget/includes/AssetManager.php:28
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/wptelegram-widget/shared/partials/legacy-widget.php on line 22
- > PHP Fatal error
Uncaught Error: Class 'WPTelegram\\Widget\\includes\\BaseClass' not found in wp-content/plugins/wptelegram-widget/admin/Admin.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function get_query_var() in wp-content/plugins/wptelegram-widget/shared/partials/ajax-widget-embed.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wptelegram-widget/languages/wptelegram-widget-js-translations.php:6
- > PHP Fatal error
Uncaught Error: Class 'WPTelegram\\Widget\\includes\\restApi\\RESTController' not found in wp-content/plugins/wptelegram-widget/includes/restApi/SettingsController.php:28
- > PHP Fatal error
Uncaught Error: Class 'WPTelegram\\BotAPI\\restApi\\RESTBaseController' not found in wp-content/plugins/wptelegram-widget/includes/bot-api/src/restApi/RESTAPIController.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wptelegram-widget/shared/partials/ajax-widget.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wptelegram-widget/shared/partials/join-channel.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function status_header() in wp-content/plugins/wptelegram-widget/uninstall.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: feed, widget, telegram, channel, group
wptelegram-widget/wptelegram-widget.php Passed 13 tests
"WP Telegram Widget and Join Link" version 2.1.10's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
111 characters long description:
Display the Telegram Public Channel or Group Feed in a WordPress widget or anywhere you want using a shortcode.
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
Everything looks great! No dangerous files found in this plugin3,682 lines of code in 59 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 46 | 1,044 | 2,834 | 2,756 |
PO File | 2 | 241 | 294 | 585 |
Markdown | 1 | 142 | 0 | 172 |
SVG | 1 | 0 | 1 | 108 |
JSON | 1 | 0 | 0 | 36 |
CSS | 5 | 0 | 3 | 22 |
JavaScript | 3 | 0 | 5 | 3 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 9.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 2.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 30 | |
▷ Abstract classes | 3 | 10.00% |
▷ Concrete classes | 27 | 90.00% |
▷ Final classes | 0 | 0.00% |
Methods | 212 | |
▷ Static methods | 46 | 21.70% |
▷ Public methods | 182 | 85.85% |
▷ Protected methods | 2 | 0.94% |
▷ Private methods | 28 | 13.21% |
Functions | 11 | |
▷ Named functions | 7 | 63.64% |
▷ Anonymous functions | 4 | 36.36% |
Constants | 33 | |
▷ Global constants | 10 | 30.30% |
▷ Class constants | 23 | 69.70% |
▷ Public constants | 23 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icons/icon-128x128.png | 6.67KB | 3.58KB | ▼ 46.27% |
assets/icons/icon-36x34.png | 2.03KB | 1.88KB | ▼ 7.13% |