74% channeller-telegram-channel-administrator

Code Review | Channeller - Telegram Channel Administrator

WordPress plugin Channeller - Telegram Channel Administrator scored74%from 54 tests.

About plugin

  • Plugin page: channeller-telegr...
  • Plugin version: 1.5.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7
  • WordPress version: 6.3.1
  • First release: Dec 5, 2015
  • Latest release: Feb 4, 2017
  • Number of updates: 29
  • Update frequency: every 14.9 days
  • Top authors: websima (100%)

Code review

54 tests

User reviews

18 reviews

Install metrics

90+ active /20,393 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.79MB] [CPU: ▼31.89ms] Passed 4 tests

An overview of server-side resources used by Channeller - Telegram Channel Administrator
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1644.37 ▲2.36
Dashboard /wp-admin3.16 ▼0.1526.04 ▼25.50
Posts /wp-admin/edit.php3.16 ▼0.2026.40 ▼23.95
Add New Post /wp-admin/post-new.php3.16 ▼2.7325.84 ▼66.90
Media Library /wp-admin/upload.php3.16 ▼0.0825.47 ▼11.22

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Channeller - Telegram Channel Administrator
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7113.17 ▼1.204.73 ▲2.8145.97 ▲6.61
Dashboard /wp-admin2,209 ▲185.79 ▼0.0799.21 ▼5.0581.52 ▲39.37
Posts /wp-admin/edit.php2,109 ▲172.30 ▲0.2941.08 ▲0.3734.83 ▼2.10
Add New Post /wp-admin/post-new.php1,520 ▲117.44 ▼5.91656.54 ▼44.0534.59 ▼36.37
Media Library /wp-admin/upload.php1,398 ▲74.13 ▼0.0798.57 ▲0.9376.44 ▲31.11

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/channeller-telegram-channel-administrator/channeller.php+24
    Trying to access array offset on value of type bool
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

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
Even though everything seems fine, this is not an exhaustive test

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
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/channeller-telegram-channel-administrator/channeller.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/channeller-telegram-channel-administrator/includes/ch-publishsend.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/channeller-telegram-channel-administrator/includes/ch-notification-metabox.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/channeller-telegram-channel-administrator/includes/ch-api-settings.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots require images: #1 (Channeller Settings Page), #2 (Channeller Meta Box on posts, pages or custom post types), #3 (Log Archive)
The official readme.txt might help

channeller-telegram-channel-administrator/channeller.php 92% from 13 tests

The entry point to "Channeller - Telegram Channel Administrator" version 1.5.4 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("channeller-telegram-channel-administrator.php" instead of "channeller.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,059 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP56740846
PO File161126134
JavaScript1247679

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions29
▷ Named functions29100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.07MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png21.33KB17.66KB▼ 17.21%
includes/dashicon.png0.58KB0.74KB0.00%
includes/channeller.png13.32KB12.18KB▼ 8.61%
screenshot-2.png15.81KB7.72KB▼ 51.17%
screenshot-1.png22.25KB16.31KB▼ 26.72%