77% oggchat-live-chat-software

Code Review | OggChat Live Chat

WordPress plugin OggChat Live Chat scored 77% from 54 tests.

About plugin

  • Plugin page: oggchat-live-chat...
  • Plugin version: 1.4.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.4.2
  • WordPress version: 6.3.1
  • First release: Jun 10, 2010
  • Latest release: Feb 26, 2016
  • Number of updates: 66
  • Update frequency: every 32.6 days
  • Top authors: oggchat (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 15,694 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.10ms] Passed 4 tests

A check of server-side resources used by OggChat Live Chat
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.37 ▲2.85
Dashboard /wp-admin3.35 ▲0.0545.73 ▼1.83
Posts /wp-admin/edit.php3.40 ▲0.0448.35 ▼1.02
Add New Post /wp-admin/post-new.php5.93 ▲0.0484.91 ▼18.06
Media Library /wp-admin/upload.php3.27 ▲0.0437.28 ▲0.51
OggChat Settings /wp-admin/options-general.php?page=oggchat-live-chat3.2129.59

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for OggChat Live Chat
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,852 ▲11713.31 ▼1.071.78 ▲0.0838.79 ▼0.48
Dashboard /wp-admin2,233 ▲455.80 ▼0.0197.62 ▼3.2278.06 ▲30.53
Posts /wp-admin/edit.php2,118 ▲291.97 ▼0.0237.95 ▼3.9234.82 ▼1.84
Add New Post /wp-admin/post-new.php1,691 ▲15722.15 ▼0.97760.01 ▲141.8650.17 ▼4.18
Media Library /wp-admin/upload.php1,412 ▲274.24 ▲0.0299.20 ▲0.3580.37 ▲37.21
OggChat Settings /wp-admin/options-general.php?page=oggchat-live-chat1,0172.1625.2832.20

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=oggchat-live-chat
    • > 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=oggchat-live-chat
    • > 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/oggchat-live-chat-software/oggchat-live-chat.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 26 tag instead of maximum 10
  • Screenshots: These screenshots do not have images: #1 (OggChat Settings Page), #2 (Example Chat Tab on your website), #3 (Chat Window), #4 (Visitor Monitor)
The official readme.txt is a good inspiration

oggchat-live-chat-software/oggchat-live-chat.php 85% from 13 tests

The main PHP file in "OggChat Live Chat" ver. 1.4.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 260 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("oggchat-live-chat-software.php" instead of "oggchat-live-chat.php")

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
Everything looks great! No dangerous files found in this plugin144 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1179144

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
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
7 PNG files occupy 1.11MB with 0.70MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-5.png371.24KB133.18KB▼ 64.13%
screenshot-4.png284.26KB108.53KB▼ 61.82%
ocsq.png3.14KB0.48KB▼ 84.76%
oggchat.png4.47KB2.92KB▼ 34.66%
screenshot-2.png175.62KB49.28KB▼ 71.94%