83% firmao-livechat

Code Review | Firmao LiveChat

WordPress plugin Firmao LiveChat scored83%from 54 tests.

About plugin

  • Plugin page: firmao-livechat
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-6.3.1
  • WordPress version: 6.3.1
  • First release: Jul 27, 2017
  • Latest release: Oct 9, 2023
  • Number of updates: 33
  • Update frequency: every 68.8 days
  • Top authors: firmao (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,502 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.81ms] Passed 4 tests

This is a short check of server-side resources used by Firmao LiveChat
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0343.95 ▲7.95
Dashboard /wp-admin3.33 ▼0.0156.62 ▼1.63
Posts /wp-admin/edit.php3.38 ▲0.0352.94 ▲1.80
Add New Post /wp-admin/post-new.php5.91 ▲0.0281.22 ▼13.05
Media Library /wp-admin/upload.php3.25 ▲0.0337.96 ▲1.63
Firmao LiveChat Settings /wp-admin/options-general.php?page=firmao_live_chat_settings_page3.2229.19

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Firmao LiveChat
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲6614.07 ▼0.292.08 ▼0.0050.72 ▲11.40
Dashboard /wp-admin2,199 ▲225.62 ▼0.0497.92 ▲8.9743.63 ▲2.94
Posts /wp-admin/edit.php2,104 ▲11.99 ▼0.0236.68 ▼3.4230.47 ▼8.25
Add New Post /wp-admin/post-new.php1,529 ▲323.16 ▼0.53642.97 ▼34.2963.39 ▲5.69
Media Library /wp-admin/upload.php1,404 ▲44.21 ▲0.0495.99 ▼5.9443.40 ▼0.07
Firmao LiveChat Settings /wp-admin/options-general.php?page=firmao_live_chat_settings_page8072.0022.6925.66

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/firmao-livechat/firmoalivechat.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Screenshots: These screenshots do not have images: #2 (Minimized big chat), #3 (Maximized chat), #4 (Firamo LiveChat settings)
  • Tags: Please reduce the number of tags, currently 41 tag instead of maximum 10
The official readme.txt might help

firmao-livechat/firmoalivechat.php 92% from 13 tests

This is the main PHP file of "Firmao LiveChat" version 1.0.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("firmao-livechat.php" instead of "firmoalivechat.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 plugin125 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1171368
PO File214857

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions6
▷ Named functions6100.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
PNG images were not found in this plugin