77% live-chat-by-oggflow

Code Review | Live Chat by OggFlow

WordPress plugin Live Chat by OggFlow scored77%from 54 tests.

About plugin

  • Plugin page: live-chat-by-oggflow
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.8
  • WordPress version: 6.3.1
  • First release: Oct 17, 2013
  • Latest release: Jul 16, 2017
  • Number of updates: 18
  • Update frequency: every 76.0 days
  • Top authors: oggchat (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /10,168 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.01MB] [CPU: ▼2.34ms] Passed 4 tests

Server-side resources used by Live Chat by OggFlow
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.14 ▼10.88
Dashboard /wp-admin3.31 ▲0.0145.06 ▼5.88
Posts /wp-admin/edit.php3.36 ▲0.0149.00 ▲3.97
Add New Post /wp-admin/post-new.php5.89 ▲0.0192.92 ▲4.29
Media Library /wp-admin/upload.php3.24 ▲0.0137.83 ▲3.44
OggFlow Settings /wp-admin/options-general.php?page=live-chat-by-oggflow3.1827.77

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Live Chat by OggFlow: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9413.24 ▼1.164.63 ▲2.8042.48 ▼6.20
Dashboard /wp-admin2,235 ▲565.79 ▲0.83104.50 ▼12.1369.74 ▲23.80
Posts /wp-admin/edit.php2,120 ▲281.97 ▼0.0638.66 ▼1.0137.12 ▲4.82
Add New Post /wp-admin/post-new.php1,541 ▼223.12 ▲4.93748.48 ▲100.9763.91 ▲1.97
Media Library /wp-admin/upload.php1,420 ▲354.16 ▼0.0594.59 ▼3.5970.39 ▲26.67
OggFlow Settings /wp-admin/options-general.php?page=live-chat-by-oggflow9222.0526.1932.17

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=live-chat-by-oggflow
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=live-chat-by-oggflow
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% 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 items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/live-chat-by-oggflow/live-chat-by-oggflow.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 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
These attributes need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (OggFlow Chat Widget Settings), #2 (OggFlow Live Feed), #3 (OggFlow Tasks and Actions)
  • Tags: Please delete some tags, you are using 47 tag instead of maximum 10
You can look at the official readme.txt

live-chat-by-oggflow/live-chat-by-oggflow.php 92% from 13 tests

The main PHP file in "Live Chat by OggFlow" ver. 1.1.3 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 157 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected161 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1369161

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.84MB with 0.53MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png258.60KB77.66KB▼ 69.97%
screenshot-1.png42.04KB24.19KB▼ 42.47%
screenshot-2.png397.60KB129.79KB▼ 67.36%
screenshot-4.png153.98KB47.08KB▼ 69.43%
oggflow.png8.55KB3.14KB▼ 63.32%