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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼1.45ms] Passed 4 tests
A check of server-side resources used by WP Telegram Comments
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.13 | 42.46 ▼1.12 |
Dashboard /wp-admin | 3.45 ▲0.14 | 46.53 ▼1.83 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 50.28 ▲2.97 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 87.33 ▼5.80 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 42.45 ▲8.82 |
Telegram Comments /wp-admin/admin.php?page=wptelegram_comments | 3.39 | 33.07 |
Server storage [IO: ▲3.38MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 57 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by WP Telegram Comments
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲64 | 13.54 ▼0.86 | 1.67 ▼0.53 | 40.52 ▲0.43 |
Dashboard /wp-admin | 2,224 ▲42 | 5.81 ▼0.04 | 102.56 ▼1.49 | 38.52 ▼3.11 |
Posts /wp-admin/edit.php | 2,110 ▲21 | 2.06 ▲0.06 | 40.44 ▲2.77 | 34.85 ▲2.36 |
Add New Post /wp-admin/post-new.php | 1,546 ▲32 | 23.12 ▲5.59 | 639.60 ▼43.70 | 69.76 ▲8.65 |
Media Library /wp-admin/upload.php | 1,409 ▲21 | 4.24 ▼0.02 | 92.73 ▼11.99 | 39.14 ▼5.13 |
Telegram Comments /wp-admin/admin.php?page=wptelegram_comments | 1,459 | 8.63 | 304.17 | 138.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/wptelegram-comments/includes/restApi/RESTController.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function status_header() in wp-content/plugins/wptelegram-comments/uninstall.php:13
- > PHP Fatal error
Uncaught Error: Class 'WPTelegram\\Comments\\includes\\BaseClass' not found in wp-content/plugins/wptelegram-comments/admin/Admin.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wptelegram-comments/languages/wptelegram-comments-js-translations.php:5
- > PHP Fatal error
Uncaught Error: Class 'WPTelegram\\Comments\\includes\\BaseClass' not found in wp-content/plugins/wptelegram-comments/shared/Shared.php:27
- > PHP Fatal error
Uncaught Error: Class 'WPTelegram\\Comments\\includes\\restApi\\RESTController' not found in wp-content/plugins/wptelegram-comments/includes/restApi/SettingsController.php:26
- > PHP Fatal error
Uncaught Error: Class 'WPTelegram\\Comments\\includes\\BaseClass' not found in wp-content/plugins/wptelegram-comments/includes/AssetManager.php:26
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: widget, social, discuss, telegram, comments
wptelegram-comments/wptelegram-comments.php Passed 13 tests
The principal PHP file in "WP Telegram Comments" v. 1.1.8 is loaded by WordPress automatically on each request
88 characters long description:
Add comments to posts/pages on your WordPress website by using Telegram Comments Widget.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin2,530 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 9 | 540 | 621 | 1,399 |
PHP | 21 | 356 | 1,230 | 941 |
SVG | 1 | 0 | 1 | 108 |
Markdown | 1 | 42 | 0 | 45 |
CSS | 3 | 0 | 1 | 20 |
JSON | 1 | 0 | 0 | 16 |
JavaScript | 1 | 0 | 2 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 7.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 1.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 2 | 14.29% |
▷ Concrete classes | 12 | 85.71% |
▷ Final classes | 0 | 0.00% |
Methods | 94 | |
▷ Static methods | 15 | 15.96% |
▷ Public methods | 82 | 87.23% |
▷ Protected methods | 1 | 1.06% |
▷ Private methods | 11 | 11.70% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 19 | |
▷ Global constants | 6 | 31.58% |
▷ Class constants | 13 | 68.42% |
▷ Public constants | 13 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
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% |