Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.36MB] [CPU: ▼12.06ms] Passed 4 tests
Server-side resources used by Telegram Bot Master
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.24 | 45.15 ▲6.64 |
Dashboard /wp-admin | 3.65 ▲0.35 | 45.83 ▲0.69 |
Posts /wp-admin/edit.php | 3.70 ▲0.35 | 49.16 ▲4.58 |
Add New Post /wp-admin/post-new.php | 3.51 ▼2.38 | 38.05 ▼54.94 |
Media Library /wp-admin/upload.php | 3.57 ▲0.35 | 36.74 ▲1.43 |
⚙️ Bot Settings /wp-admin/admin.php?page=bots-master | 3.52 | 33.15 |
📢 Channels /wp-admin/admin.php?page=bots-master-channels-list | 3.84 | 35.74 |
🚀 Send Message /wp-admin/admin.php?page=bots-master-send-message | 3.52 | 34.71 |
Server storage [IO: ▲2.59MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 396 new files
Database: 1 new table, 8 new options
New tables |
---|
wx_bot_users |
New WordPress options |
---|
welcome_message |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
unknown_message |
Browser metrics Passed 4 tests
An overview of browser requirements for Telegram Bot Master
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲77 | 14.41 ▲0.05 | 1.77 ▼0.06 | 43.65 ▲6.12 |
Dashboard /wp-admin | 2,247 ▲69 | 5.64 ▼0.02 | 108.75 ▲9.08 | 92.43 ▲45.54 |
Posts /wp-admin/edit.php | 2,152 ▲52 | 1.99 ▼0.03 | 37.54 ▲2.71 | 37.52 ▼3.17 |
Add New Post /wp-admin/post-new.php | 1,568 ▲33 | 23.11 ▲4.70 | 679.84 ▲56.16 | 165.78 ▲101.28 |
Media Library /wp-admin/upload.php | 1,449 ▲52 | 4.23 ▼0.02 | 96.06 ▼3.19 | 77.26 ▲33.89 |
⚙️ Bot Settings /wp-admin/admin.php?page=bots-master | 1,422 | 9.41 | 184.51 | 80.84 |
📢 Channels /wp-admin/admin.php?page=bots-master-channels-list | 1,327 | 9.01 | 162.59 | 72.95 |
🚀 Send Message /wp-admin/admin.php?page=bots-master-send-message | 1,590 | 10.72 | 89.55 | 47.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The uninstall procedure failed, leaving 1 table in the database
- wx_bot_users
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_recent-posts
- welcome_message
- unknown_message
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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 take a closer look at the following
- 208× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Longman\\TelegramBot\\Commands\\SystemCommand' not found in wp-content/plugins/bots-master/vendor/longman/telegram-bot/src/Commands/SystemCommands/CallbackqueryCommand.php:20
- > PHP Fatal error
Uncaught Error: Class 'Longman\\TelegramBot\\Entities\\Entity' not found in wp-content/plugins/bots-master/vendor/longman/telegram-bot/src/Entities/TelegramPassport/PassportElementError/PassportElementErrorFiles.php:28
- > PHP Fatal error
Uncaught Error: Class 'Longman\\TelegramBot\\Entities\\Entity' not found in wp-content/plugins/bots-master/vendor/longman/telegram-bot/src/Entities/Animation.php:31
- > PHP Fatal error
Uncaught Error: Class 'WebXID\\EDMo\\AbstractClass\\BasicEntity' not found in wp-content/plugins/bots-master/vendor/webxid/edmo/src/AbstractClass/MultiKeyModel.php:17
- > PHP Fatal error
Uncaught Error: Class 'Longman\\TelegramBot\\Entities\\Entity' not found in wp-content/plugins/bots-master/vendor/longman/telegram-bot/src/Entities/Video.php:28
- > PHP Fatal error
Uncaught Error: Class 'Longman\\TelegramBot\\Entities\\Entity' not found in wp-content/plugins/bots-master/vendor/longman/telegram-bot/src/Entities/User.php:29
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/bots-master/vendor/psr/log/Psr/Log/Test/LoggerInterfaceTest.php:15
- > PHP Fatal error
Uncaught Error: Class 'WebXID\\EDMo\\AbstractClass\\BasicDataContainer' not found in wp-content/plugins/bots-master/vendor/webxid/edmo/src/Rules/Type.php:19
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Handler\\CurlFactoryInterface' not found in wp-content/plugins/bots-master/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:20
- > PHP Fatal error
Uncaught Error: Class 'WebXID\\EDMo\\AbstractClass\\BasicDataContainer' not found in wp-content/plugins/bots-master/app/BotsMaster.php:14
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=bots-master-channels-list
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=bots-master-channels-list 265:0 Uncaught ReferenceError: ClassicEditor is not defined
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== bots-master ===
)
bots-master/bots-master.php Passed 13 tests
"Telegram Bot Master" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
64 characters long description:
The plugin helps to send a message to a Telegram Bot subscribers
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
Good job! No executable or dangerous file extensions detected26,817 lines of code in 376 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 320 | 4,968 | 13,924 | 19,809 |
Markdown | 22 | 1,591 | 0 | 5,214 |
JSON | 12 | 0 | 0 | 1,339 |
SQL | 12 | 59 | 0 | 375 |
CSS | 2 | 2 | 6 | 25 |
XML | 1 | 0 | 0 | 18 |
SVG | 2 | 0 | 0 | 16 |
make | 1 | 4 | 0 | 9 |
YAML | 1 | 0 | 0 | 7 |
JavaScript | 3 | 2 | 8 | 5 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 9.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 146.00 |
Average method complexity | 2.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 66.00 |
Code structure | ||
---|---|---|
Namespaces | 42 | |
Interfaces | 34 | |
Traits | 5 | |
Classes | 259 | |
▷ Abstract classes | 18 | 6.95% |
▷ Concrete classes | 241 | 93.05% |
▷ Final classes | 34 | 14.11% |
Methods | 1,427 | |
▷ Static methods | 325 | 22.78% |
▷ Public methods | 1,180 | 82.69% |
▷ Protected methods | 106 | 7.43% |
▷ Private methods | 141 | 9.88% |
Functions | 143 | |
▷ Named functions | 40 | 27.97% |
▷ Anonymous functions | 103 | 72.03% |
Constants | 163 | |
▷ Global constants | 5 | 3.07% |
▷ Class constants | 158 | 96.93% |
▷ Public constants | 147 | 93.04% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo.png | 6.64KB | 4.08KB | ▼ 38.54% |