Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Warning in wp-content/plugins/broadcast-to-telegram/notifcaster.class.php+328
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
Server metrics [RAM: ▼2.12MB] [CPU: ▼59.64ms] Passed 4 tests
Analyzing server-side resources used by Broadcast to Telegram
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.14 ▼1.59 | 5.86 ▼43.54 |
Dashboard /wp-admin | 2.16 ▼1.40 | 6.75 ▼49.93 |
Posts /wp-admin/edit.php | 2.16 ▼1.52 | 6.77 ▼47.39 |
Add New Post /wp-admin/post-new.php | 2.16 ▼3.98 | 7.41 ▼97.68 |
Media Library /wp-admin/upload.php | 2.16 ▼1.33 | 8.59 ▼30.28 |
Broadcast to Telegram /wp-admin/options-general.php?page=brtg_options_page | 2.16 | 6.20 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Broadcast to Telegram
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 14.27 ▼0.53 | 1.84 ▼0.12 | 39.14 ▼3.94 |
Dashboard /wp-admin | 2,196 ▲19 | 5.64 ▼0.07 | 87.35 ▼2.81 | 39.60 ▼8.23 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.02 ▲0.02 | 36.69 ▼1.19 | 33.71 ▼3.13 |
Add New Post /wp-admin/post-new.php | 1,529 ▼21 | 17.72 ▼5.67 | 659.05 ▼35.79 | 57.55 ▲1.62 |
Media Library /wp-admin/upload.php | 1,398 ▲1 | 4.27 ▲0.05 | 99.05 ▼15.91 | 43.02 ▼5.73 |
Broadcast to Telegram /wp-admin/options-general.php?page=brtg_options_page | 973 | 2.05 | 24.24 | 49.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin cannot be uninstalled
- > Warning in wp-content/plugins/broadcast-to-telegram/notifcaster.class.php+328
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=brtg_options_page
- > Warning in wp-content/plugins/broadcast-to-telegram/notifcaster.class.php+328
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
- > GET request to /wp-admin/options-general.php?page=brtg_options_page
- > Notice in wp-content/plugins/broadcast-to-telegram/admin-page.php+92
Undefined variable: chd
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/broadcast-to-telegram/broadcast-to-telegram.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/broadcast-to-telegram/notifcaster.class.php on line 328
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/broadcast-to-telegram/notifcaster.class.php on line 328
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Contributors: The plugin contributors field is not present
broadcast-to-telegram/broadcast-to-telegram.php Passed 13 tests
The main PHP script in "Broadcast to Telegram" version 1.2.0 is automatically included on every request by WordPress
135 characters long description:
Post notification system on one or more channels via Telegram Bot. The plugin allows to select the document type and Telegram channels.
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
There were no executable files found in this plugin707 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 79 | 116 | 622 |
PO File | 1 | 32 | 34 | 85 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 36.00 |
▷ Minimum class complexity | 36.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 3.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 84.62% |
▷ Protected methods | 2 | 15.38% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 11 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/telegram-icon.png | 2.86KB | 2.06KB | ▼ 27.91% |