72% link-to-telegram

Code Review | Link To Telegram

WordPress plugin Link To Telegram scored 72% from 53 tests.

About plugin

  • Plugin page: link-to-telegram
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9.8
  • WordPress version: 5.8.1
  • First release: Mar 25, 2017
  • Latest release: Oct 14, 2018
  • Number of updates: 14
  • Update frequency: every 40.5 days
  • Top authors: barfaraz (100%)

Code review

53 tests

User reviews

1 review

Install metrics

400+ active / 10,096 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.18MB] [CPU: ▼292.44ms] Passed 4 tests

A check of server-side resources used by Link To Telegram
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.93 ▲0.2128.61 ▲9.32
Dashboard /wp-admin3.21 ▲0.1633.73 ▼8.01
Posts /wp-admin/edit.php3.30 ▲0.2037.96 ▼0.23
Add New Post /wp-admin/post-new.php5.80 ▲0.3781.01 ▼1,147.68
Media Library /wp-admin/upload.php3.17 ▲0.1625.18 ▼13.84
Modal Settings /wp-admin/admin.php?page=ltteleg-modal-settings3.1729.85
About /wp-admin/admin.php?page=ltteleg-about-us3.0928.23
General Settings /wp-admin/admin.php?page=ltteleg-general-settings3.0927.96

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 2 new options
New WordPress options
ltteleg_general
ltteleg_modal

Browser metrics Passed 4 tests

This is an overview of browser requirements for Link To Telegram
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,824 ▲24216.26 ▲0.7412.12 ▲2.5547.18 ▼1.35
Dashboard /wp-admin2,961 ▲1115.95 ▲0.11139.39 ▲7.24129.86 ▲24.18
Posts /wp-admin/edit.php2,759 ▲562.70 ▲0.0166.91 ▼1.7286.77 ▼4.85
Add New Post /wp-admin/post-new.php1,878 ▲2519.13 ▼0.14363.63 ▼12.43112.31 ▲4.64
Media Library /wp-admin/upload.php1,754 ▼215.03 ▲0.03131.38 ▼24.00124.74 ▲11.98
Modal Settings /wp-admin/admin.php?page=ltteleg-modal-settings1,4104.3287.4991.23
About /wp-admin/admin.php?page=ltteleg-about-us1,0382.0952.8362.68
General Settings /wp-admin/admin.php?page=ltteleg-general-settings1,1602.1052.8081.23

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 2 options in the database
    • ltteleg_modal
    • ltteleg_general

Smoke tests 25% 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 no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 3× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/link-to-telegram/skins/modal-skin-3.php
    • > /wp-content/plugins/link-to-telegram/skins/modal-skin-2.php
    • > /wp-content/plugins/link-to-telegram/skins/modal-skin-1.php
  • 19× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Notice
      Undefined variable: close_text in wp-content/plugins/link-to-telegram/skins/modal-skin-1.php on line 8
    • > PHP Notice
      Undefined variable: close_text in wp-content/plugins/link-to-telegram/skins/modal-skin-3.php on line 9
    • > PHP Notice
      Undefined variable: button_text in wp-content/plugins/link-to-telegram/skins/modal-skin-2.php on line 6
    • > PHP Notice
      Undefined variable: description in wp-content/plugins/link-to-telegram/skins/modal-skin-2.php on line 5
    • > PHP Notice
      Undefined variable: button_text in wp-content/plugins/link-to-telegram/skins/modal-skin-1.php on line 6
    • > PHP Notice
      Undefined variable: link in wp-content/plugins/link-to-telegram/skins/modal-skin-3.php on line 10
    • > PHP Notice
      Undefined variable: title in wp-content/plugins/link-to-telegram/skins/modal-skin-1.php on line 4
    • > PHP Notice
      Undefined variable: button_text in wp-content/plugins/link-to-telegram/skins/modal-skin-3.php on line 10
    • > PHP Notice
      Undefined variable: title in wp-content/plugins/link-to-telegram/skins/modal-skin-3.php on line 5
    • > PHP Notice
      Undefined variable: description in wp-content/plugins/link-to-telegram/skins/modal-skin-3.php on line 6

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=ltteleg-modal-settings
    • > Javascript (severe) in unknown
    /wp-content/plugins/link-to-telegram/assets/js/wp-color-picker-alpha.js?ver=5.8.1 23:16 Uncaught ReferenceError: wpColorPickerL10n is not defined

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (General Settings), #2 (Modal Settings), #3 (Modal Sample - Skin 1), #4 (Modal Sample - Skin 2), #5 (Direct Sample), #6 (Modal Sample - Skin 3)
You can take inspiration from this readme.txt

link-to-telegram/link-to-telegram.php Passed 13 tests

"Link To Telegram" version 1.0.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
31 characters long description:
Popup For Your Telegram Channel

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected1,932 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
SVG100855
PHP4728475
JavaScript370150336
CSS2323193
PO File1374673

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.22
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%
Functions33
▷ Named functions33100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/skins/2-bg.png0.10KB0.09KB▼ 4.04%
assets/images/icon.png1.34KB0.54KB▼ 59.90%