84% load-smallchat

Code Review | Smallchat for Wordpress

WordPress plugin Smallchat for Wordpress scored84%from 54 tests.

About plugin

  • Plugin page: load-smallchat
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.1.1
  • WordPress version: 6.3.1
  • First release: Apr 6, 2018
  • Latest release: Jan 25, 2023
  • Number of updates: 8
  • Update frequency: every 219.5 days
  • Top authors: dotzak (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,120 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
Installer ran successfully

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

This is a short check of server-side resources used by Smallchat for Wordpress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.40 ▼0.0622.46 ▼17.80
Dashboard /wp-admin3.33 ▲0.0244.53 ▼4.21
Posts /wp-admin/edit.php3.38 ▲0.0246.24 ▲2.13
Add New Post /wp-admin/post-new.php5.91 ▲0.0281.52 ▼6.49
Media Library /wp-admin/upload.php3.25 ▲0.0236.52 ▲4.73
Smallchat /wp-admin/options-general.php?page=smallchat3.2030.51

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Smallchat for Wordpress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4714.48 ▲0.101.61 ▼0.5039.25 ▼9.67
Dashboard /wp-admin2,207 ▲164.80 ▼0.07100.32 ▼1.1341.99 ▼0.66
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0334.57 ▼2.7038.02 ▲4.85
Add New Post /wp-admin/post-new.php1,536 ▲123.34 ▲0.19684.28 ▲26.5064.43 ▲3.73
Media Library /wp-admin/upload.php1,395 ▲74.22 ▼0.0199.42 ▲4.1941.85 ▼0.87
Smallchat /wp-admin/options-general.php?page=smallchat8002.0223.4525.47

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=smallchat
    • > Notice in wp-content/plugins/load-smallchat/smallchat-for-wordpress.php+138
    Trying to access array offset on value of type bool

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: chat, slack, live-support, smallchat, live-help...

load-smallchat/smallchat-for-wordpress.php 85% from 13 tests

The main file in "Smallchat for Wordpress" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("load-smallchat.php" instead of "smallchat-for-wordpress.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin121 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1246192
PO File162129

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
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
1 PNG file occupies 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/embed-unique-id-location.png47.14KB14.44KB▼ 69.37%