52% teligro

Code Review | Teligro

WordPress plugin Teligro scored52%from 54 tests.

About plugin

  • Plugin page: teligro
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-5.5
  • WordPress version: 6.3.1
  • First release: Oct 25, 2020
  • Latest release: Oct 25, 2020
  • Number of updates: 8
  • Update frequency: every 4.5 days
  • Top authors: parselearn (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

100+ active /3,656 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲1.78MB] [CPU: ▼0.48ms] Passed 4 tests

A check of server-side resources used by Teligro
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /5.27 ▲1.8046.10 ▲3.91
Dashboard /wp-admin5.13 ▲1.7854.90 ▼6.37
Posts /wp-admin/edit.php5.18 ▲1.8257.74 ▲14.88
Add New Post /wp-admin/post-new.php7.67 ▲1.7891.02 ▼13.77
Media Library /wp-admin/upload.php4.99 ▲1.7650.13 ▲14.32
Helps /wp-admin/admin.php?page=teligro-helps4.9640.57
Teligro /wp-admin/admin.php?page=teligro4.9342.64
Debugs /wp-admin/admin.php?page=teligro-debugs4.96118.42

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 59 new files
Database: 1 new table, 6 new options
New tables
wp_teligro_users
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Teligro
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,899 ▲16413.78 ▼0.521.62 ▼0.3139.56 ▼4.00
Dashboard /wp-admin2,305 ▲1175.03 ▼0.83113.16 ▼6.0643.70 ▼0.30
Posts /wp-admin/edit.php2,191 ▲1022.17 ▲0.1142.86 ▲0.5536.17 ▼0.42
Add New Post /wp-admin/post-new.php1,554 ▲4023.33 ▲5.61681.42 ▲11.5036.59 ▼22.10
Media Library /wp-admin/upload.php1,490 ▲994.35 ▲0.15100.53 ▼5.0241.77 ▼0.54
Helps /wp-admin/admin.php?page=teligro-helps1,0321.9328.8030.09
Teligro /wp-admin/admin.php?page=teligro21,3219.41242.3436.12
Debugs /wp-admin/admin.php?page=teligro-debugs9782.2127.3227.80

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_teligro_users
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/admin.php?page=teligro
    • > Notice in wp-content/plugins/teligro/modules/Channel.php+696
    Trying to access array offset on value of type bool
    • > GET request to /wp-admin/admin.php?page=teligro
    • > Warning in wp-content/plugins/teligro/modules/Channel.php+696
    Invalid argument supplied for foreach()

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
Please fix the following
  • 6× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'teligro\\Teligro' not found in wp-content/plugins/teligro/inc/WordPress.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'teligro\\Teligro' not found in wp-content/plugins/teligro/modules/Debugs.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'HM\\BackUpWordPress\\Service' not found in wp-content/plugins/teligro/plugins/BackUpWordPressService.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Scripts' not found in wp-content/plugins/teligro/inc/FilterableScripts.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'teligro\\Teligro' not found in wp-content/plugins/teligro/modules/Proxy.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'teligro\\Teligro' not found in wp-content/plugins/teligro/inc/Helps.php:4

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
    • > GET request to /wp-admin/admin.php?page=teligro-debugs
    • > Network (severe)
    https://www.countryflags.io/-/flat/16.png - Failed to load resource: net::ERR_NAME_NOT_RESOLVED

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: telegram, robot, bot, woocommerce, channel...

teligro/Teligro.php 85% from 13 tests

The entry point to "Teligro" version 1.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Requires at least: Required version does not match the one declared in readme.txt ("5.0" instead of "3.0.0")
  • Main file name: Name the main plugin file the same as the plugin slug ("teligro.php" instead of "Teligro.php")

Code Analysis 5% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Please make sure to remedy the following
  • Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
    • .bin - Binary Executable in Windows, macOS, Linux
      • wp-content/plugins/teligro/modules/inc/IP2LOCATION-LITE-DB1.BIN
11,135 lines of code in 54 files:
LanguageFilesBlank linesComment linesLines of code
PHP441,5492,03810,039
JavaScript58250644
CSS4984441
SVG10011

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity35.57
▷ Minimum class complexity1.00
▷ Maximum class complexity246.00
Average method complexity4.30
▷ Minimum method complexity1.00
▷ Maximum method complexity67.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes44
▷ Abstract classes12.27%
▷ Concrete classes4397.73%
▷ Final classes00.00%
Methods451
▷ Static methods8518.85%
▷ Public methods39687.80%
▷ Protected methods81.77%
▷ Private methods4710.42%
Functions5
▷ Named functions00.00%
▷ Anonymous functions5100.00%
Constants65
▷ Global constants1726.15%
▷ Class constants4873.85%
▷ Public constants48100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin