Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼5.19ms] Passed 4 tests
Server-side resources used by TeleAdmin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 42.65 ▲1.38 |
Dashboard /wp-admin | 3.36 ▲0.05 | 46.29 ▼4.29 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 45.36 ▼1.18 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 95.86 ▼16.65 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 39.62 ▲8.28 |
Chats /wp-admin/admin.php?page=teleadmin-chats | 3.67 | 37.44 |
Bots /wp-admin/admin.php?page=teleadmin-bots | 3.24 | 34.43 |
Server storage [IO: ▲2.13MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 548 new files
Database: 3 new tables, 7 new options
New tables |
---|
teleadmin_messages |
teleadmin_chats |
teleadmin_bots |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
teleadmin_version |
theysaidso_admin_options |
Browser metrics Passed 4 tests
TeleAdmin: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,854 ▲119 | 13.23 ▼1.21 | 1.93 ▲0.26 | 43.12 ▼6.73 |
Dashboard /wp-admin | 2,235 ▲50 | 4.87 ▼1.03 | 108.55 ▲6.63 | 42.38 ▲3.78 |
Posts /wp-admin/edit.php | 2,121 ▲35 | 2.17 ▲0.16 | 40.07 ▲4.04 | 36.23 ▲3.74 |
Add New Post /wp-admin/post-new.php | 1,552 ▲19 | 23.09 ▲0.01 | 654.16 ▲32.88 | 49.37 ▼3.41 |
Media Library /wp-admin/upload.php | 1,417 ▲26 | 4.23 ▼0.01 | 95.30 ▼3.30 | 43.80 ▲1.85 |
Chats /wp-admin/admin.php?page=teleadmin-chats | 1,002 | 2.09 | 24.49 | 27.46 |
Bots /wp-admin/admin.php?page=teleadmin-bots | 952 | 2.05 | 23.37 | 31.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% 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
Please fix the following items
- 382× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/teleadmin/vendor/monolog/monolog/src/Monolog/Handler/SlackWebhookHandler.php:24
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\TestCase' not found in wp-content/plugins/teleadmin/vendor/monolog/monolog/tests/Monolog/Handler/DoctrineCouchDBHandlerTest.php:17
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/teleadmin/vendor/monolog/monolog/src/Monolog/Handler/SocketHandler.php:22
- > PHP Fatal error
Uncaught Error: Class 'Longman\\TelegramBot\\Tests\\Unit\\TestCase' not found in wp-content/plugins/teleadmin/vendor/longman/telegram-bot/tests/unit/Entities/AudioTest.php:22
- > PHP Fatal error
Uncaught Error: Class 'Longman\\TelegramBot\\Entities\\Entity' not found in wp-content/plugins/teleadmin/vendor/longman/telegram-bot/src/Entities/ChosenInlineResult.php:24
- > PHP Fatal error
Uncaught Error: Class 'Longman\\TelegramBot\\DB' not found in wp-content/plugins/teleadmin/vendor/longman/telegram-bot/src/BotanDB.php:19
- > PHP Fatal error
Uncaught Error: Class 'Longman\\TelegramBot\\Tests\\Unit\\TestCase' not found in wp-content/plugins/teleadmin/vendor/longman/telegram-bot/tests/unit/Entities/ServerResponseTest.php:26
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractHandler' not found in wp-content/plugins/teleadmin/vendor/monolog/monolog/src/Monolog/Handler/PsrHandler.php:22
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/teleadmin/vendor/guzzlehttp/guzzle/src/Exception/SeekException.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\UriInterface' not found in wp-content/plugins/teleadmin/vendor/guzzlehttp/psr7/src/Uri.php:13
- > PHP Fatal error
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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: telegram, notifications, posts, admin
teleadmin/teleadmin.php Passed 13 tests
The main PHP script in "TeleAdmin" version 1.0.0 is automatically included on every request by WordPress
61 characters long description:
Administrate your WordPress website on the way using Telegram
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin38,011 lines of code in 528 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 476 | 7,163 | 18,896 | 31,854 |
Markdown | 25 | 1,460 | 0 | 4,841 |
JSON | 9 | 0 | 0 | 821 |
SQL | 7 | 32 | 0 | 206 |
XML | 4 | 27 | 15 | 160 |
YAML | 3 | 16 | 0 | 74 |
JavaScript | 2 | 8 | 0 | 43 |
make | 1 | 4 | 0 | 9 |
CSS | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 7.15 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 126.00 |
Average method complexity | 2.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 80.00 |
Code structure | ||
---|---|---|
Namespaces | 39 | |
Interfaces | 25 | |
Traits | 4 | |
Classes | 447 | |
▷ Abstract classes | 14 | 3.13% |
▷ Concrete classes | 433 | 96.87% |
▷ Final classes | 8 | 1.85% |
Methods | 2,414 | |
▷ Static methods | 166 | 6.88% |
▷ Public methods | 1,916 | 79.37% |
▷ Protected methods | 284 | 11.76% |
▷ Private methods | 214 | 8.86% |
Functions | 241 | |
▷ Named functions | 69 | 28.63% |
▷ Anonymous functions | 172 | 71.37% |
Constants | 120 | |
▷ Global constants | 6 | 5.00% |
▷ Class constants | 114 | 95.00% |
▷ Public constants | 114 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin