74% bigsociety-live-chat

Code Review | Bigsociety Live Chat

WordPress plugin Bigsociety Live Chat scored74%from 54 tests.

About plugin

  • Plugin page: bigsociety-live-chat
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.6.1
  • WordPress version: 6.3.1
  • First release: Oct 15, 2016
  • Latest release: Oct 20, 2016
  • Number of updates: 10
  • Update frequency: every 0.6 days
  • Top authors: bigsociety (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /875 total downloads


Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼1.70MB] [CPU: ▼46.74ms] Passed 4 tests

An overview of server-side resources used by Bigsociety Live Chat
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.30 ▼1.179.77 ▼32.57
Dashboard /wp-admin2.31 ▼0.9911.86 ▼40.28
Posts /wp-admin/edit.php2.31 ▼1.0511.62 ▼36.84
Add New Post /wp-admin/post-new.php2.31 ▼3.5810.67 ▼77.25
Media Library /wp-admin/upload.php2.31 ▼0.9210.87 ▼23.13

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

Bigsociety Live Chat: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲4513.31 ▼1.085.26 ▲2.9943.63 ▲0.64
Dashboard /wp-admin2,222 ▲314.91 ▼0.99101.70 ▼2.8739.77 ▼1.65
Posts /wp-admin/edit.php2,105 ▲132.01 ▼0.0535.97 ▼2.2331.88 ▼2.97
Add New Post /wp-admin/post-new.php1,527 ▲717.83 ▼5.22645.64 ▼47.3859.87 ▲1.38
Media Library /wp-admin/upload.php1,401 ▲104.18 ▼0.0494.77 ▼14.9742.04 ▼1.88

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin cannot be uninstalled
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in Live_Chat is deprecated since version 4.3.0! Use __construct() instead.
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_live_chat
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bigsociety-live-chat/live-chat.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found


Plugin configuration 96% 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
3 plugin tags: communication, chat, live

bigsociety-live-chat/live-chat.php 92% from 13 tests

The principal PHP file in "Bigsociety Live Chat" v. 1.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bigsociety-live-chat.php" instead of "live-chat.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin99 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.05
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions8100.00%
▷ Anonymous functions00.00%
▷ Global constants00.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 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/close.png1.22KB0.78KB▼ 36.44%