78% telelog

Code Review | TeleLog

WordPress plugin TeleLog scored78%from 54 tests.

About plugin

  • Plugin page: telelog
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.8
  • WordPress version: 6.3.1
  • First release: Aug 26, 2021
  • Latest release: Oct 7, 2021
  • Number of updates: 11
  • Update frequency: every 3.8 days
  • Top authors: mahdyarme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /469 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.09MB] [CPU: ▼2.95ms] Passed 4 tests

Analyzing server-side resources used by TeleLog
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0835.24 ▼4.48
Dashboard /wp-admin3.39 ▲0.0846.14 ▼2.92
Posts /wp-admin/edit.php3.50 ▲0.1450.95 ▼3.41
Add New Post /wp-admin/post-new.php5.99 ▲0.1099.79 ▼0.99
Media Library /wp-admin/upload.php3.31 ▲0.0841.13 ▲3.55

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 43 new files
Database: no new tables, 17 new options
New WordPress options
telelog_on_post_publish
widget_recent-posts
telelog_api_key
telelog_on_login_fail
can_compress_scripts
telelog_on_register_user
telelog_on_post_update
telelog_on_woocommerce_order_new
telelog_on_plugin_deactivate
widget_recent-comments
...

Browser metrics Passed 4 tests

Checking browser requirements for TeleLog
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲4814.26 ▼0.531.74 ▼0.0538.62 ▼6.54
Dashboard /wp-admin2,218 ▲415.66 ▲0.0993.19 ▼4.5141.43 ▼4.35
Posts /wp-admin/edit.php2,123 ▲232.01 ▲0.0339.14 ▼0.8736.06 ▼2.71
Add New Post /wp-admin/post-new.php1,543 ▲1523.12 ▼0.40671.82 ▲46.7668.81 ▲14.35
Media Library /wp-admin/upload.php1,420 ▲204.14 ▼0.07101.29 ▼11.6344.36 ▲0.62

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/telelog/telelog.php
    • > /wp-content/plugins/telelog/uninstall.php
  • 13× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Telelog\\Inc\\Base\\BaseController' not found in wp-content/plugins/telelog/inc/Base/SettingsLinks.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Telelog\\Inc\\Telegram\\Telegram' not found in wp-content/plugins/telelog/inc/Telegram/WooCommerce/WooCommerceOrderNew.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Telelog\\Inc\\Telegram\\Telegram' not found in wp-content/plugins/telelog/inc/Telegram/PluginDeactivate.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/telelog/templates/index.php:1
    • > PHP Fatal error
      Uncaught Error: Class 'Telelog\\Inc\\Telegram\\Telegram' not found in wp-content/plugins/telelog/inc/Telegram/LoginFail.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Telelog\\Inc\\Telegram\\Telegram' not found in wp-content/plugins/telelog/inc/Telegram/ThemeSwitch.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Telelog\\Inc\\Telegram\\Telegram' not found in wp-content/plugins/telelog/inc/Telegram/RegisterUser.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Telelog\\Inc\\Base\\BaseController' not found in wp-content/plugins/telelog/inc/Pages/Callbacks/AdminCallbacks.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Telelog\\Inc\\Base\\BaseController' not found in wp-content/plugins/telelog/inc/Base/Translation.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Telelog\\Inc\\Base\\BaseController' not found in wp-content/plugins/telelog/inc/Base/Enqueue.php:11

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 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:
  • Tags: There are too many tags (14 tag instead of maximum 10)
The official readme.txt might help

telelog/telelog.php Passed 13 tests

"TeleLog" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
65 characters long description:
Keep track of everything happening on your WordPress in Telegram.

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 plugin1,490 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
PHP313004021,310
PO File1404399
JSON20034
Markdown116033
JavaScript10010
CSS1004

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity7.05
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.30
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces8
Interfaces0
Traits0
Classes22
▷ Abstract classes00.00%
▷ Concrete classes22100.00%
▷ Final classes14.55%
Methods103
▷ Static methods2322.33%
▷ Public methods9491.26%
▷ Protected methods00.00%
▷ Private methods98.74%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected