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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.13MB] [CPU: ▼138.95ms] Passed 4 tests
A check of server-side resources used by Connect With Telegram
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.95 ▲0.23 | 38.78 ▲15.51 |
Dashboard /wp-admin | 3.17 ▲0.12 | 55.62 ▼0.25 |
Posts /wp-admin/edit.php | 3.28 ▲0.18 | 53.42 ▲2.66 |
Add New Post /wp-admin/post-new.php | 5.53 ▲0.10 | 102.31 ▼569.25 |
Media Library /wp-admin/upload.php | 3.12 ▲0.12 | 48.71 ▲11.05 |
Connect With Telegram /wp-admin/options-general.php?page=dimwwt-menu | 3.07 | 38.90 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: 1 new table, no new options
New tables |
---|
wp_dimwwt_requests |
Browser metrics Passed 4 tests
Connect With Telegram: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,715 ▲143 | 16.01 ▲0.66 | 14.34 ▲3.47 | 50.03 ▼3.14 |
Dashboard /wp-admin | 2,979 ▲45 | 5.93 ▼0.03 | 154.15 ▼11.81 | 131.76 ▲7.33 |
Posts /wp-admin/edit.php | 2,751 ▲12 | 2.74 ▲0.03 | 73.30 ▼1.79 | 94.97 ▼9.37 |
Add New Post /wp-admin/post-new.php | 1,625 ▼58 | 21.65 ▲3.26 | 337.22 ▼94.76 | 115.07 ▼6.11 |
Media Library /wp-admin/upload.php | 1,819 ▲71 | 5.07 ▲0.04 | 157.96 ▼13.68 | 125.21 ▼10.06 |
Connect With Telegram /wp-admin/options-general.php?page=dimwwt-menu | 1,190 | 2.33 | 75.50 | 93.90 |
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 plugin did not uninstall successfully, leaving 1 table in the database
- wp_dimwwt_requests
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
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=dimwwt-menu
- > Notice in wp-content/plugins/connect-with-telegram/inc/class-dimwwt-admin-menu.php+183
Undefined index: bot-token
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 8× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
Use of undefined constant __dimwwt_dir - assumed '__dimwwt_dir' (this will throw an Error in a future version of PHP) in wp-content/plugins/connect-with-telegram/inc/class-dimwwt-botsaz-listener.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/connect-with-telegram/inc/class-auto-loader.php:21
- > PHP Warning
require_once(__dimwwt_dirinc/class-dimwwt-listener.php): failed to open stream: No such file or directory in wp-content/plugins/connect-with-telegram/inc/class-dimwwt-botsaz-listener.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/connect-with-telegram/index.php:47
- > PHP Fatal error
require_once(): Failed opening required '__dimwwt_dirinc/class-dimwwt-listener.php' (include_path='.:/usr/share/php') in wp-content/plugins/connect-with-telegram/inc/class-dimwwt-telegram-listener.php on line 2
- > PHP Fatal error
require_once(): Failed opening required '__dimwwt_dirinc/class-dimwwt-listener.php' (include_path='.:/usr/share/php') in wp-content/plugins/connect-with-telegram/inc/class-dimwwt-botsaz-listener.php on line 2
- > PHP Warning
require_once(__dimwwt_dirinc/class-dimwwt-listener.php): failed to open stream: No such file or directory in wp-content/plugins/connect-with-telegram/inc/class-dimwwt-telegram-listener.php on line 2
- > PHP Warning
Use of undefined constant __dimwwt_dir - assumed '__dimwwt_dir' (this will throw an Error in a future version of PHP) in wp-content/plugins/connect-with-telegram/inc/class-dimwwt-telegram-listener.php on line 2
- > PHP Warning
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 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: bot, telegram, wordpress
connect-with-telegram/index.php 85% from 13 tests
The principal PHP file in "Connect With Telegram" v. 1.1 is loaded by WordPress automatically on each request
It is important to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("connect-with-telegram.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected1,134 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 151 | 147 | 1,023 |
PO File | 1 | 247 | 478 | 83 |
CSS | 1 | 1 | 0 | 16 |
JavaScript | 2 | 1 | 0 | 12 |
PHP code Passed 2 tests
A short 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.25 |
Average class complexity | 17.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 3.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 47 | |
▷ Static methods | 2 | 4.26% |
▷ Public methods | 42 | 89.36% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 10.64% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin