89% telegramschanneltowp

Code Review | TelegramsChannelToWP

WordPress plugin TelegramsChannelToWP scored89%from 54 tests.

About plugin

  • Plugin page: telegramschanneltowp
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.7
  • WordPress version: 6.3.1
  • First release: Oct 27, 2017
  • Latest release: Dec 14, 2017
  • Number of updates: 24
  • Update frequency: every 2.0 days
  • Top authors: sokotebipayan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,788 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.65ms] Passed 4 tests

This is a short check of server-side resources used by TelegramsChannelToWP
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0343.88 ▲1.76
Dashboard /wp-admin3.35 ▲0.0447.57 ▼4.40
Posts /wp-admin/edit.php3.40 ▲0.0452.29 ▼3.55
Add New Post /wp-admin/post-new.php5.93 ▲0.0486.83 ▼16.41
Media Library /wp-admin/upload.php3.27 ▲0.0439.17 ▲5.05

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_telegramschanneltowp_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for TelegramsChannelToWP
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲2214.25 ▼0.032.33 ▼0.1153.17 ▲1.07
Dashboard /wp-admin2,195 ▲155.74 ▲0.0995.14 ▲3.6277.91 ▲36.63
Posts /wp-admin/edit.php2,118 ▲181.98 ▼0.0339.03 ▼1.6934.12 ▼4.22
Add New Post /wp-admin/post-new.php1,554 ▲2522.98 ▼0.19762.90 ▲118.6161.98 ▲7.40
Media Library /wp-admin/upload.php1,418 ▲214.21 ▲0.05108.03 ▼2.3667.94 ▲24.62

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_telegramschanneltowp_widget
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === telegramschanneltowp === )
The official readme.txt is a good inspiration

telegramschanneltowp/TelegramsChannelToWP.php 85% from 13 tests

"TelegramsChannelToWP" version 0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("telegramschanneltowp.php" instead of "TelegramsChannelToWP.php")
  • Git Repository: A Git repository was detected inside this plugin

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
There were no executable files found in this plugin239 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP33426170
JavaScript18036
CSS13019
Markdown111014

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/logo.png1.46KB0.91KB▼ 37.68%