10% aus-telegram-channel

Code Review | AUS Telegram Channel

WordPress plugin AUS Telegram Channel scored10%from 54 tests.

About plugin

  • Plugin page: aus-telegram-channel
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.6
  • WordPress version: 6.3.1
  • First release: Nov 26, 2015
  • Latest release: Sep 15, 2016
  • Number of updates: 14
  • Update frequency: every 21.1 days
  • Top authors: Ulugov (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

20+ active /3,719 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/aus-telegram-channel/aus-telegram-channel.php+200
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼1.96MB] [CPU: ▼52.82ms] Passed 4 tests

Analyzing server-side resources used by AUS Telegram Channel
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.445.29 ▼35.38
Dashboard /wp-admin2.05 ▼1.256.58 ▼42.71
Posts /wp-admin/edit.php2.05 ▼1.317.21 ▼41.16
Add New Post /wp-admin/post-new.php2.05 ▼3.846.78 ▼92.02
Media Library /wp-admin/upload.php2.05 ▼1.186.46 ▼32.39
AUS Telegram Bot /wp-admin/options-general.php?page=aus-telegram-bot_plugin_options2.055.98

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for AUS Telegram Channel
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.21 ▼0.572.08 ▲0.2344.54 ▲1.21
Dashboard /wp-admin2,202 ▲255.61 ▼0.0493.55 ▲3.9342.57 ▼1.47
Posts /wp-admin/edit.php2,104 ▲41.98 ▼0.0135.21 ▼2.0833.30 ▼4.39
Add New Post /wp-admin/post-new.php1,529 ▼323.34 ▲0.31678.54 ▲10.7655.48 ▼13.99
Media Library /wp-admin/upload.php1,398 ▼54.19 ▲0.0199.22 ▼7.9748.30 ▲0.38
AUS Telegram Bot /wp-admin/options-general.php?page=aus-telegram-bot_plugin_options1,1652.2930.8851.90

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/aus-telegram-channel/aus-telegram-channel.php+200
    Trying to access array offset on value of type bool
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=aus-telegram-bot_plugin_options
    • > Notice in wp-content/plugins/aus-telegram-channel/aus-telegram-channel.php+200
    Trying to access array offset on value of type bool

SRP 50% 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× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/aus-telegram-channel/aus-telegram-channel.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: telegram, newsletter, channel, bot

aus-telegram-channel/aus-telegram-channel.php Passed 13 tests

This is the main PHP file of "AUS Telegram Channel" version 1.0.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
58 characters long description:
Sends Wordpress Posts to Telegram channel via Telegram Bot

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
Good job! No executable or dangerous file extensions detected588 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP210254588

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity38.50
▷ Minimum class complexity20.00
▷ Maximum class complexity57.00
Average method complexity5.41
▷ Minimum method complexity1.00
▷ Maximum method complexity45.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods1588.24%
▷ Protected methods00.00%
▷ Private methods211.76%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin