89% tel-publish

Code Review | Tel-Publish - Плагин отправляет записи в телеграм instantview

WordPress plugin Tel-Publish - Плагин отправляет записи в телеграм instantview scored89%from 54 tests.

About plugin

  • Plugin page: tel-publish
  • Plugin version: 0.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.5
  • WordPress version: 6.3.1
  • First release: Oct 9, 2020
  • Latest release: Oct 9, 2020
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: pechenki (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /410 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.07MB] [CPU: ▼11.64ms] Passed 4 tests

Analyzing server-side resources used by Tel-Publish - Плагин отправляет записи в телеграм instantview
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0634.94 ▼2.14
Dashboard /wp-admin3.35 ▲0.0146.82 ▼11.30
Posts /wp-admin/edit.php3.41 ▲0.0543.35 ▼5.35
Add New Post /wp-admin/post-new.php5.49 ▼0.4072.67 ▼27.78
Media Library /wp-admin/upload.php3.28 ▲0.0536.45 ▲3.53

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

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

Browser metrics Passed 4 tests

Tel-Publish - Плагин отправляет записи в телеграм instantview: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲8414.70 ▲0.352.08 ▲0.4538.16 ▼1.38
Dashboard /wp-admin2,211 ▲335.57 ▼0.0582.17 ▼23.4039.90 ▼0.81
Posts /wp-admin/edit.php2,113 ▲132.00 ▲0.0135.77 ▼3.1334.53 ▼21.80
Add New Post /wp-admin/post-new.php6,240 ▲4,71426.08 ▲2.75888.11 ▲278.8667.70 ▲7.36
Media Library /wp-admin/upload.php1,413 ▲104.18 ▼0.0896.96 ▼3.2244.80 ▲2.97

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes: You can take inspiration from this readme.txt

tel-publish/index.php 92% from 13 tests

Analyzing the main PHP file in "Tel-Publish - Плагин отправляет записи в телеграм instantview" version 0.0.1
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("tel-publish.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected185 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP25630185

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity1.62
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods16.25%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
No PNG files were detected