Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.50MB] [CPU: ▼1.72ms] Passed 4 tests
An overview of server-side resources used by WP Telegram (Auto Post and Notifications)
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.98 ▲0.51 | 44.42 ▲6.02 |
Dashboard /wp-admin | 3.83 ▲0.48 | 50.06 ▼15.69 |
Posts /wp-admin/edit.php | 3.88 ▲0.51 | 54.20 ▲6.06 |
Add New Post /wp-admin/post-new.php | 6.64 ▲0.75 | 93.79 ▼3.26 |
Media Library /wp-admin/upload.php | 3.75 ▲0.51 | 41.04 ▲7.91 |
Server storage [IO: ▲4.50MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 127 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
wptelegram_ver |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Telegram (Auto Post and Notifications)
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲42 | 14.54 ▲0.26 | 1.59 ▼0.15 | 37.86 ▼7.82 |
Dashboard /wp-admin | 2,212 ▲35 | 5.60 ▼0.08 | 93.52 ▼7.41 | 41.94 ▼5.64 |
Posts /wp-admin/edit.php | 2,114 ▲14 | 2.03 ▲0.02 | 39.89 ▲1.88 | 33.43 ▼0.55 |
Add New Post /wp-admin/post-new.php | 1,538 ▲12 | 23.31 ▲0.31 | 692.61 ▲42.86 | 55.37 ▲6.18 |
Media Library /wp-admin/upload.php | 1,417 ▲14 | 4.14 ▼0.05 | 96.29 ▼4.33 | 40.67 ▼1.18 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
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
The following issues need your attention
- 36× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WPTelegram\\FormatText\\Converter\\BaseConverter' not found in wp-content/plugins/wptelegram/includes/format-text/src/Converter/TableConverter.php:15
- > PHP Fatal error
Uncaught Error: Class 'WPTelegram\\FormatText\\Converter\\BaseConverter' not found in wp-content/plugins/wptelegram/includes/format-text/src/Converter/ImageConverter.php:15
- > PHP Fatal error
Uncaught Error: Class 'WPTelegram\\FormatText\\Converter\\BaseConverter' not found in wp-content/plugins/wptelegram/includes/format-text/src/Converter/BlockquoteConverter.php:15
- > PHP Fatal error
Uncaught Error: Class 'WPTelegram\\Core\\includes\\restApi\\RESTController' not found in wp-content/plugins/wptelegram/includes/restApi/SettingsController.php:28
- > PHP Fatal error
Uncaught Error: Class 'WPTelegram\\FormatText\\Converter\\BaseConverter' not found in wp-content/plugins/wptelegram/includes/format-text/src/Converter/ListItemConverter.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function status_header() in wp-content/plugins/wptelegram/uninstall.php:14
- > PHP Fatal error
Uncaught Error: Class 'WPTelegram\\Core\\modules\\BaseModule' not found in wp-content/plugins/wptelegram/modules/notify/Main.php:26
- > PHP Fatal error
Uncaught Error: Class 'WPTelegram\\FormatText\\Converter\\BaseConverter' not found in wp-content/plugins/wptelegram/includes/format-text/src/Converter/ListBlockConverter.php:15
- > PHP Fatal error
Uncaught Error: Class 'WPTelegram\\FormatText\\Converter\\BaseConverter' not found in wp-content/plugins/wptelegram/includes/format-text/src/Converter/PreformattedConverter.php:15
- > PHP Fatal error
Uncaught Error: Class 'WPTelegram\\FormatText\\Converter\\BaseConverter' not found in wp-content/plugins/wptelegram/includes/format-text/src/Converter/SpoilerConverter.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: posts, channel, telegram, notifications, group
wptelegram/wptelegram.php 92% from 13 tests
The main file in "WP Telegram (Auto Post and Notifications)" v. 4.0.14 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 236 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin13,347 lines of code in 96 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 12 | 2,941 | 3,239 | 6,574 |
PHP | 73 | 2,502 | 5,633 | 6,033 |
Markdown | 1 | 369 | 0 | 516 |
SVG | 1 | 0 | 1 | 108 |
YAML | 2 | 23 | 0 | 64 |
JSON | 1 | 0 | 0 | 30 |
CSS | 3 | 0 | 1 | 20 |
JavaScript | 3 | 0 | 6 | 2 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 14.28 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 155.00 |
Average method complexity | 2.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 13 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 61 | |
▷ Abstract classes | 6 | 9.84% |
▷ Concrete classes | 55 | 90.16% |
▷ Final classes | 2 | 3.64% |
Methods | 471 | |
▷ Static methods | 88 | 18.68% |
▷ Public methods | 380 | 80.68% |
▷ Protected methods | 33 | 7.01% |
▷ Private methods | 58 | 12.31% |
Functions | 12 | |
▷ Named functions | 6 | 50.00% |
▷ Anonymous functions | 6 | 50.00% |
Constants | 69 | |
▷ Global constants | 15 | 21.74% |
▷ Class constants | 54 | 78.26% |
▷ Public constants | 54 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
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-36x34.png | 2.03KB | 1.88KB | ▼ 7.13% |
assets/icons/icon-128x128.png | 6.67KB | 3.58KB | ▼ 46.27% |