84% wptelegram

Code Review | WP Telegram (Auto Post and Notifications)

WordPress plugin WP Telegram (Auto Post and Notifications) scored84%from 54 tests.

About plugin

  • Plugin page: wptelegram
  • Plugin version: 4.0.14
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Feb 17, 2017
  • Latest release: Nov 22, 2023
  • Number of updates: 295
  • Update frequency: every 8.4 days
  • Top authors: manzoorwani.jk (90.85%)wpsocio (9.49%)

Code review

54 tests

User reviews

386 reviews

Install metrics

30,000+ active /761,706 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.98 ▲0.5144.42 ▲6.02
Dashboard /wp-admin3.83 ▲0.4850.06 ▼15.69
Posts /wp-admin/edit.php3.88 ▲0.5154.20 ▲6.06
Add New Post /wp-admin/post-new.php6.64 ▲0.7593.79 ▼3.26
Media Library /wp-admin/upload.php3.75 ▲0.5141.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4214.54 ▲0.261.59 ▼0.1537.86 ▼7.82
Dashboard /wp-admin2,212 ▲355.60 ▼0.0893.52 ▼7.4141.94 ▼5.64
Posts /wp-admin/edit.php2,114 ▲142.03 ▲0.0239.89 ▲1.8833.43 ▼0.55
Add New Post /wp-admin/post-new.php1,538 ▲1223.31 ▲0.31692.61 ▲42.8655.37 ▲6.18
Media Library /wp-admin/upload.php1,417 ▲144.14 ▼0.0596.29 ▼4.3340.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

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:
LanguageFilesBlank linesComment linesLines of code
PO File122,9413,2396,574
PHP732,5025,6336,033
Markdown13690516
SVG101108
YAML223064
JSON10030
CSS30120
JavaScript3062

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 code0.39
Average class complexity14.28
▷ Minimum class complexity1.00
▷ Maximum class complexity155.00
Average method complexity2.85
▷ Minimum method complexity1.00
▷ Maximum method complexity44.00
Code structure
Namespaces13
Interfaces3
Traits0
Classes61
▷ Abstract classes69.84%
▷ Concrete classes5590.16%
▷ Final classes23.64%
Methods471
▷ Static methods8818.68%
▷ Public methods38080.68%
▷ Protected methods337.01%
▷ Private methods5812.31%
Functions12
▷ Named functions650.00%
▷ Anonymous functions650.00%
Constants69
▷ Global constants1521.74%
▷ Class constants5478.26%
▷ Public constants54100.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
FileSize - originalSize - compressedSavings
assets/icons/icon-36x34.png2.03KB1.88KB▼ 7.13%
assets/icons/icon-128x128.png6.67KB3.58KB▼ 46.27%