83% telepress

Code Review | TelePress

WordPress plugin TelePress scored83%from 54 tests.

About plugin

  • Plugin page: telepress
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4-5.6
  • WordPress version: 6.3.1
  • First release: Mar 21, 2021
  • Latest release: Mar 21, 2021
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: siamakdal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /375 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.24ms] Passed 4 tests

This is a short check of server-side resources used by TelePress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0233.53 ▼5.79
Dashboard /wp-admin3.32 ▲0.0243.61 ▼3.27
Posts /wp-admin/edit.php3.37 ▲0.0148.97 ▼9.33
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.40 ▼14.58
Media Library /wp-admin/upload.php3.24 ▲0.0138.11 ▲5.37

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
wptp_admin_email

Browser metrics Passed 4 tests

Checking browser requirements for TelePress
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲9113.24 ▼1.231.70 ▼0.0443.66 ▼4.05
Dashboard /wp-admin2,244 ▲535.83 ▲0.91104.86 ▼2.0748.26 ▲2.95
Posts /wp-admin/edit.php2,126 ▲342.01 ▼0.0241.00 ▼3.0938.35 ▼1.33
Add New Post /wp-admin/post-new.php1,552 ▲2418.41 ▲0.05606.38 ▼8.9055.86 ▲0.11
Media Library /wp-admin/upload.php1,426 ▲414.23 ▲0.0197.68 ▲2.5045.00 ▲1.76

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/telepress/inc/Telegram.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Requires at least: Version format is invalid
  • Donate link: Please fix this invalid url: ""
  • Screenshots: Add images for these screenshots: #1 (داشبورد), #2 (مدیریت نظر در تلگرام)
The official readme.txt might help

telepress/index.php 85% from 13 tests

"TelePress" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Requires at least: Periods and digits should be used for the required version number (ex. "7.0" instead of "4")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("telepress.php" instead of "index.php")

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
Good job! No executable or dangerous file extensions detected1,096 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP112722,3801,096

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity39.50
▷ Minimum class complexity18.00
▷ Maximum class complexity61.00
Average method complexity1.78
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods99
▷ Static methods11.01%
▷ Public methods9696.97%
▷ Protected methods00.00%
▷ Private methods33.03%
Functions16
▷ Named functions1275.00%
▷ Anonymous functions425.00%
Constants20
▷ Global constants525.00%
▷ Class constants1575.00%
▷ Public constants15100.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
PNG images were not found in this plugin