72% subiz-live-chat

Code Review | Subiz - Live chat plugin on Wordpress

WordPress plugin Subiz - Live chat plugin on Wordpress scored72%from 54 tests.

About plugin

  • Plugin page: subiz-live-chat
  • Plugin version: 4.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-5.0.2
  • WordPress version: 6.3.1
  • First release: Apr 22, 2013
  • Latest release: Feb 1, 2019
  • Number of updates: 74
  • Update frequency: every 28.6 days
  • Top authors: mrsubiz (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

100+ active /16,768 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

An overview of server-side resources used by Subiz - Live chat plugin on Wordpress
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0439.52 ▼4.31
Dashboard /wp-admin3.39 ▲0.0146.09 ▼21.29
Posts /wp-admin/edit.php3.44 ▲0.0545.54 ▼1.57
Add New Post /wp-admin/post-new.php5.97 ▲0.0593.41 ▼0.27
Media Library /wp-admin/upload.php3.31 ▲0.0537.43 ▼0.48
Subiz /wp-admin/options-general.php?page=subiz_plugin3.3931.70

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: no files
Database: no new tables, 8 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
subiz_licence_id
subiz-visibility-options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Subiz - Live chat plugin on Wordpress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲6513.65 ▼0.782.37 ▲0.6342.66 ▲0.13
Dashboard /wp-admin2,210 ▲245.84 ▲0.91110.81 ▼8.2556.11 ▲13.86
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0338.03 ▲0.8631.77 ▼1.49
Add New Post /wp-admin/post-new.php1,541 ▲2223.06 ▼0.04646.59 ▼27.6848.72 ▼8.90
Media Library /wp-admin/upload.php1,392 ▲74.23 ▲0.0296.64 ▼8.8144.62 ▲0.23
Subiz /wp-admin/options-general.php?page=subiz_plugin2,1593.8455.87105.38

Uninstaller [IO: ✅] [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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=subiz_plugin
    • > 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=subiz_plugin
    • > 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× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/subiz-live-chat/subiz.php:256

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
    • > GET request to /wp-admin/options-general.php?page=subiz_plugin
    • > Network (severe)
    wp-content/plugins/subiz-live-chat/templates/subiz-logo.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/options-general.php?page=subiz_plugin
    • > Network (severe)
    https://vcdn.subiz-cdn.com/file/bubble_lib_chat_box_10.png - Failed to load resource: the server responded with a status of 404 ()
    • > GET request to /wp-admin/options-general.php?page=subiz_plugin
    • > Network (severe)
    https://vcdn.subiz-cdn.com/file/bubble_lib_chat_box_11.png - Failed to load resource: the server responded with a status of 404 ()
    • > GET request to /wp-admin/options-general.php?page=subiz_plugin
    • > Network (severe)
    https://vcdn.subiz-cdn.com/file/bubble_event_a_new_year_03.png - Failed to load resource: the server responded with a status of 404 ()
    • > GET request to /wp-admin/options-general.php?page=subiz_plugin
    • > Network (severe)
    https://vcdn.subiz-cdn.com/file/bubble_lib_chat_box_17.png - Failed to load resource: the server responded with a status of 404 ()
    • > GET request to /wp-admin/options-general.php?page=subiz_plugin
    • > Network (severe)
    https://vcdn.subiz-cdn.com/file/bubble_lib_chat_box_04.png - Failed to load resource: the server responded with a status of 404 ()
    • > GET request to /wp-admin/options-general.php?page=subiz_plugin
    • > Network (severe)
    https://vcdn.subiz-cdn.com/file/bubble_lib_11.svg - Failed to load resource: the server responded with a status of 404 ()
    • > GET request to /wp-admin/options-general.php?page=subiz_plugin
    • > Network (severe)
    https://vcdn.subiz-cdn.com/file/bubble_lib_chat_box_07.png - Failed to load resource: the server responded with a status of 404 ()
    • > GET request to /wp-admin/options-general.php?page=subiz_plugin
    • > Network (severe)
    https://vcdn.subiz-cdn.com/file/bubble_lib_chat_box_03.png - Failed to load resource: the server responded with a status of 404 ()
    • > GET request to /wp-admin/options-general.php?page=subiz_plugin
    • > Network (severe)
    https://vcdn.subiz-cdn.com/file/bubble_lib_chat_box_05.png - Failed to load resource: the server responded with a status of 404 ()
    • > GET request to /wp-admin/options-general.php?page=subiz_plugin
    • > Network (severe)
    https://vcdn.subiz-cdn.com/file/bubble_lib_chat_box_13.png - Failed to load resource: the server responded with a status of 404 ()
    • > GET request to /wp-admin/options-general.php?page=subiz_plugin
    • > Network (severe)
    https://vcdn.subiz-cdn.com/file/bubble_lib_chat_box_02.png - Failed to load resource: the server responded with a status of 404 ()
    • > GET request to /wp-admin/options-general.php?page=subiz_plugin
    • > Network (severe)
    https://vcdn.subiz-cdn.com/file/bubble_lib_chat_box_15.png - Failed to load resource: the server responded with a status of 404 ()
    • > GET request to /wp-admin/options-general.php?page=subiz_plugin
    • > Network (severe)
    https://vcdn.subiz-cdn.com/file/bubble_lib_06.svg - Failed to load resource: the server responded with a status of 404 ()
    • > GET request to /wp-admin/options-general.php?page=subiz_plugin
    • > Network (severe)
    https://vcdn.subiz-cdn.com/file/bubble_lib_chat_box_08.png - Failed to load resource: the server responded with a status of 404 ()
    • > GET request to /wp-admin/options-general.php?page=subiz_plugin
    • > Network (severe)
    https://vcdn.subiz-cdn.com/file/bubble_lib_10.svg - Failed to load resource: the server responded with a status of 404 ()
    • > GET request to /wp-admin/options-general.php?page=subiz_plugin
    • > Network (severe)
    https://vcdn.subiz-cdn.com/file/bubble_07.svg - Failed to load resource: the server responded with a status of 404 ()
    • > GET request to /wp-admin/options-general.php?page=subiz_plugin
    • > Network (severe)
    https://vcdn.subiz-cdn.com/file/bubble_event_a_new_year_01.png - Failed to load resource: the server responded with a status of 404 ()
    • > GET request to /wp-admin/options-general.php?page=subiz_plugin
    • > Network (severe)
    https://vcdn.subiz-cdn.com/file/bubble_lib_chat_box_18.png - Failed to load resource: the server responded with a status of 404 ()
    • > GET request to /wp-admin/options-general.php?page=subiz_plugin
    • > Network (severe)
    https://vcdn.subiz-cdn.com/file/bubble_event_a_new_year_02.png - Failed to load resource: the server responded with a status of 404 ()
    • > GET request to /wp-admin/options-general.php?page=subiz_plugin
    • > Network (severe)
    https://vcdn.subiz-cdn.com/file/bubble_event_a_new_year_04.png - Failed to load resource: the server responded with a status of 404 ()
    • > GET request to /wp-admin/options-general.php?page=subiz_plugin
    • > Network (severe)
    https://vcdn.subiz-cdn.com/file/bubble_lib_08.svg - Failed to load resource: the server responded with a status of 404 ()
    • > GET request to /wp-admin/options-general.php?page=subiz_plugin
    • > Network (severe)
    https://vcdn.subiz-cdn.com/file/bubble_lib_13.svg - Failed to load resource: the server responded with a status of 404 ()
    • > GET request to /wp-admin/options-general.php?page=subiz_plugin
    • > Network (severe)
    https://vcdn.subiz-cdn.com/file/bubble_lib_chat_box_16.png - Failed to load resource: the server responded with a status of 404 ()
    • > GET request to /wp-admin/options-general.php?page=subiz_plugin
    • > Network (severe)
    https://vcdn.subiz-cdn.com/file/bubble_lib_chat_box_01.png - Failed to load resource: the server responded with a status of 404 ()

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Donate link: Please fix this invalid url: ""
You can look at the official readme.txt

subiz-live-chat/subiz.php 85% from 13 tests

The primary PHP file in "Subiz - Live chat plugin on Wordpress" version 4.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 213 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("subiz-live-chat.php" instead of "subiz.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
No dangerous file extensions were detected2,628 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript67764692
PHP2499577
CSS66515538
HTML1430219
LESS2189216
Markdown21040215
JSON40099
PO File1292972

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity10.00
▷ Minimum class complexity4.00
▷ Maximum class complexity16.00
Average method complexity2.80
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods220.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
89 PNG files occupy 0.29MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/buttons/left/default_2_en_GB.png4.60KB2.11KB▼ 54.09%
assets/buttons/left/default_5_en_ZA.png2.38KB0.96KB▼ 59.73%
assets/buttons/left/default_3_en_NZ.png3.21KB1.22KB▼ 61.96%
assets/buttons/left/default_2_en_US.png4.60KB2.11KB▼ 54.09%
assets/buttons/right/default_4_en.png2.10KB0.91KB▼ 56.56%