78% app-liberachat

Code Review | App LiberaChat

WordPress plugin App LiberaChat scored78%from 54 tests.

About plugin

  • Plugin page: app-liberachat
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0.0-6.1
  • WordPress version: 6.3.1
  • First release: Oct 24, 2022
  • Latest release: Nov 4, 2022
  • Number of updates: 5
  • Update frequency: every 2.8 days
  • Top authors: kiwichat (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /294 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼10.80ms] Passed 4 tests

Analyzing server-side resources used by App LiberaChat
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0145.63 ▲4.52
Dashboard /wp-admin3.32 ▼0.0245.91 ▼13.57
Posts /wp-admin/edit.php3.37 ▲0.0247.73 ▼9.95
Add New Post /wp-admin/post-new.php5.90 ▲0.0279.68 ▼23.44
Media Library /wp-admin/upload.php3.24 ▲0.0238.35 ▲3.78
Info /wp-admin/admin.php?page=liberachat_info3.2328.15
Settings /wp-admin/admin.php?page=libera-chat-settings3.2730.29

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 12 new options
New WordPress options
liberachat_chan
liberachat_server
widget_theysaidso_widget
liberachat_height
widget_recent-posts
liberachat_nick
db_upgraded
widget_recent-comments
can_compress_scripts
liberachat_style
...

Browser metrics Passed 4 tests

App LiberaChat: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲5113.54 ▼1.021.71 ▼0.4742.81 ▲0.34
Dashboard /wp-admin2,231 ▲434.94 ▲0.0599.73 ▼19.0383.82 ▲42.02
Posts /wp-admin/edit.php2,108 ▲192.00 ▲0.0139.41 ▼2.2738.01 ▲0.76
Add New Post /wp-admin/post-new.php1,687 ▲17322.01 ▲4.31796.94 ▲113.0654.19 ▼3.20
Media Library /wp-admin/upload.php1,407 ▲164.15 ▼0.08113.99 ▲18.0591.73 ▲47.12
Info /wp-admin/admin.php?page=liberachat_info8362.0125.4827.54
Settings /wp-admin/admin.php?page=libera-chat-settings9822.0325.0536.07

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 12 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • liberachat_style
    • widget_recent-comments
    • widget_recent-posts
    • liberachat_chan
    • liberachat_server
    • theysaidso_admin_options
    • liberachat_height
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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 take a closer look at the following
  • 3× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/app-liberachat/admin/info_app_liberachat.php
    • > /wp-content/plugins/app-liberachat/app-liberachat.php
    • > /wp-content/plugins/app-liberachat/public/index.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/app-liberachat/admin/kiwi_app_liberachat.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

app-liberachat/app-liberachat.php Passed 13 tests

"App LiberaChat" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
125 characters long description:
The App LiberaChat plugin for WordPress allows you to use the chat service of the Libera.Chat network on your WordPress site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected240 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP63635240

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/liberachat.png0.55KB0.58KB0.00%