62% live-chat-by-supsystic

Code Review | Live Chat by Supsystic

WordPress plugin Live Chat by Supsystic scored62%from 54 tests.

About plugin

  • Plugin page: live-chat-by-sups...
  • Plugin version: 1.5.3
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Dec 17, 2015
  • Latest release: Jan 14, 2020
  • Number of updates: 77
  • Update frequency: every 19.3 days
  • Top authors: supsystic.com (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /39,530 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲1.70MB] [CPU: ▲2.71ms] Passed 4 tests

Analyzing server-side resources used by Live Chat by Supsystic
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /5.08 ▲1.6143.61 ▲3.06
Dashboard /wp-admin5.04 ▲1.7061.33 ▼1.99
Posts /wp-admin/edit.php5.10 ▲1.7461.24 ▲11.35
Add New Post /wp-admin/post-new.php7.62 ▲1.7497.12 ▼1.59
Media Library /wp-admin/upload.php4.97 ▲1.7455.22 ▲19.94
Live Chat by Supsystic /wp-admin/admin.php?page=chat-wp-supsystic5.4750.28
StatisticsPro /wp-admin/admin.php?page=chat-wp-supsystic&tab=statistics5.0344.46
Overview /wp-admin/admin.php?page=chat-wp-supsystic&tab=overview5.43336.51
Settings /wp-admin/admin.php?page=chat-wp-supsystic&tab=chat-settings5.4754.40
Featured Plugins /wp-admin/admin.php?page=chat-wp-supsystic&tab=featured-plugins5.1945.33

Server storage [IO: ▲2.56MB] [DB: ▲0.10MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 372 new files
Database: 13 new tables, 10 new options
New tables
wp_lcs_chat_engines_show_pages
wp_lcs_chat_templates
wp_lcs_chat_triggers_conditions
wp_lcs_usage_stat
wp_lcs_chat_messages
wp_lcs_statistics
wp_lcs_countries
wp_lcs_modules_type
wp_lcs_chat_triggers
wp_lcs_chat_sessions
...
New WordPress options
theysaidso_admin_options
widget_recent-comments
lcs_opts_data
can_compress_scripts
lcs_plugin_activation_errors
wp_lcs_db_installed
db_upgraded
widget_theysaidso_widget
widget_recent-posts
wp_lcs_db_version

Browser metrics Passed 4 tests

Live Chat by Supsystic: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,289 ▲52814.10 ▼0.1022.53 ▲20.7156.75 ▲12.53
Dashboard /wp-admin2,275 ▲694.89 ▲0.00106.91 ▼7.1244.40 ▲1.91
Posts /wp-admin/edit.php2,157 ▲542.01 ▲0.0336.99 ▲2.0437.48 ▲0.02
Add New Post /wp-admin/post-new.php1,588 ▲3923.25 ▲0.02649.56 ▼5.5354.02 ▼4.83
Media Library /wp-admin/upload.php1,457 ▲544.24 ▲0.0398.08 ▼10.8846.36 ▼0.71
Live Chat by Supsystic /wp-admin/admin.php?page=chat-wp-supsystic9,7739.59363.64142.19
StatisticsPro /wp-admin/admin.php?page=chat-wp-supsystic&tab=statistics1,2043.5849.0966.43
Overview /wp-admin/admin.php?page=chat-wp-supsystic&tab=overview1,5303.6145.56103.01
Settings /wp-admin/admin.php?page=chat-wp-supsystic&tab=chat-settings9,7769.67387.73146.11
Featured Plugins /wp-admin/admin.php?page=chat-wp-supsystic&tab=featured-plugins1,7483.6048.48126.19

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie tables were found after uninstall: 9 tables
    • wp_lcs_chat_triggers
    • wp_lcs_chat_templates
    • wp_lcs_chat_engines_show_pages
    • wp_lcs_chat_engines
    • wp_lcs_chat_sessions
    • wp_lcs_countries
    • wp_lcs_chat_triggers_conditions
    • wp_lcs_chat_messages
    • wp_lcs_chat_users
  • This plugin does not fully uninstall, leaving 8 options in the database
    • db_upgraded
    • lcs_plugin_activation_errors
    • widget_recent-comments
    • widget_theysaidso_widget
    • lcs_opts_data
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
  • 9 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=chat-wp-supsystic&tab=featured-plugins
    • > User notice in wp-includes/functions.php+5905
    Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=chat-wp-supsystic&tab=chat-settings
    • > Deprecated in wp-content/plugins/live-chat-by-supsystic/classes/helpers/SxGeo.php+248
    Array and string offset access syntax with curly braces is deprecated

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
Almost there! Just fix the following items
  • 228× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Twig_Node_Expression_Binary' not found in wp-content/plugins/live-chat-by-supsystic/classes/Twig/Node/Expression/Binary/Concat.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Twig_Extension' not found in wp-content/plugins/live-chat-by-supsystic/classes/Twig/Extension/StringLoader.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Twig_TokenParser' not found in wp-content/plugins/live-chat-by-supsystic/classes/Twig/TokenParser/Import.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Twig_Node' not found in wp-content/plugins/live-chat-by-supsystic/classes/Twig/Node/Macro.php:17
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/live-chat-by-supsystic/modules/chat/views/tpl/chatSettingsAdmin.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'controllerLcs' not found in wp-content/plugins/live-chat-by-supsystic/modules/registration/controller.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/live-chat-by-supsystic/modules/supsystic_promo/views/tpl/adminFooter.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'moduleLcs' not found in wp-content/plugins/live-chat-by-supsystic/modules/chat/mod.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Twig_TokenParser' not found in wp-content/plugins/live-chat-by-supsystic/classes/Twig/TokenParser/Sandbox.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'Twig_Node_Expression_Call' not found in wp-content/plugins/live-chat-by-supsystic/classes/Twig/Node/Expression/Test.php:11

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=chat-wp-supsystic&tab=featured-plugins
    • > Network (severe)
    http://supsystic-42d7.kxcdn.com/lib/tooltipster/tooltipster.css?ver=1.5.3 - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=chat-wp-supsystic&tab=featured-plugins
    • > Network (severe)
    http://supsystic-42d7.kxcdn.com/lib/chosen/chosen.min.css?ver=1.5.3 - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=chat-wp-supsystic&tab=chat-settings
    • > Network (severe)
    http://supsystic-42d7.kxcdn.com/lib/tooltipster/jquery.tooltipster.min.js?ver=1.5.3 - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=chat-wp-supsystic&tab=chat-settings
    • > Network (severe)
    http://supsystic-42d7.kxcdn.com/lib/chosen/chosen.jquery.min.js?ver=1.5.3 - Failed to load resource: net::ERR_CONNECTION_RESET
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=chat-wp-supsystic&tab=chat-settings
    • > Network (severe)
    http://supsystic-42d7.kxcdn.com/lib/jqgrid/ui.jqgrid.css?ver=1.5.3 - Failed to load resource: net::ERR_CONNECTION_RESET
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=chat-wp-supsystic&tab=chat-settings
    • > Network (severe)
    http://supsystic-42d7.kxcdn.com/lib/codemirror/codemirror.css?ver=1.5.3 - Failed to load resource: net::ERR_CONNECTION_RESET
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=chat-wp-supsystic&tab=chat-settings
    • > Network (severe)
    http://supsystic-42d7.kxcdn.com/lib/codemirror/addon/hint/show-hint.css?ver=1.5.3 - Failed to load resource: net::ERR_CONNECTION_RESET
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=chat-wp-supsystic&tab=chat-settings
    • > Network (severe)
    http://supsystic-42d7.kxcdn.com/lib/bootstrap-partial/bootstrap.partial.min.css?ver=1.5.3 - Failed to load resource: net::ERR_CONNECTION_RESET
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=chat-wp-supsystic&tab=chat-settings
    • > Network (severe)
    http://supsystic-42d7.kxcdn.com/_assets/live-chat/img/preview/primary.jpg - Failed to load resource: net::ERR_CONNECTION_RESET
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=chat-wp-supsystic&tab=chat-settings
    • > Network (severe)
    http://supsystic-42d7.kxcdn.com/_assets/live-chat/img/preview/standard.jpg - Failed to load resource: net::ERR_CONNECTION_RESET
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=chat-wp-supsystic&tab=chat-settings
    • > Network (severe)
    http://supsystic-42d7.kxcdn.com/_assets/live-chat/promo/img/reg-fields-edit.jpg - Failed to load resource: net::ERR_CONNECTION_RESET
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=chat-wp-supsystic&tab=chat-settings
    • > Network (severe)
    http://supsystic-42d7.kxcdn.com/lib/jqgrid/jquery.jqGrid.min.js?ver=1.5.3 - Failed to load resource: net::ERR_CONNECTION_RESET
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=chat-wp-supsystic&tab=chat-settings
    • > Network (severe)
    http://supsystic-42d7.kxcdn.com/lib/jqgrid/i18n/grid.locale-en.js?ver=1.5.3 - Failed to load resource: net::ERR_CONNECTION_RESET
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=chat-wp-supsystic&tab=chat-settings
    • > Network (severe)
    http://supsystic-42d7.kxcdn.com/lib/codemirror/codemirror.js?ver=1.5.3 - Failed to load resource: net::ERR_CONNECTION_RESET
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=chat-wp-supsystic&tab=chat-settings
    • > Network (severe)
    http://supsystic-42d7.kxcdn.com/lib/codemirror/addon/hint/show-hint.js?ver=1.5.3 - Failed to load resource: net::ERR_CONNECTION_RESET
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=chat-wp-supsystic&tab=chat-settings
    • > Network (severe)
    http://supsystic-42d7.kxcdn.com/lib/codemirror/addon/hint/xml-hint.js?ver=1.5.3 - Failed to load resource: net::ERR_CONNECTION_RESET
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=chat-wp-supsystic&tab=chat-settings
    • > Network (severe)
    http://supsystic-42d7.kxcdn.com/lib/codemirror/addon/hint/html-hint.js?ver=1.5.3 - Failed to load resource: net::ERR_CONNECTION_RESET
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=chat-wp-supsystic&tab=chat-settings
    • > Network (severe)
    http://supsystic-42d7.kxcdn.com/lib/codemirror/mode/xml/xml.js?ver=1.5.3 - Failed to load resource: net::ERR_CONNECTION_RESET
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=chat-wp-supsystic&tab=chat-settings
    • > Network (severe)
    http://supsystic-42d7.kxcdn.com/lib/codemirror/mode/javascript/javascript.js?ver=1.5.3 - Failed to load resource: net::ERR_CONNECTION_RESET
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=chat-wp-supsystic&tab=chat-settings
    • > Network (severe)
    http://supsystic-42d7.kxcdn.com/lib/codemirror/mode/css/css.js?ver=1.5.3 - Failed to load resource: net::ERR_CONNECTION_RESET
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=chat-wp-supsystic&tab=chat-settings
    • > Network (severe)
    http://supsystic-42d7.kxcdn.com/lib/codemirror/mode/htmlmixed/htmlmixed.js?ver=1.5.3 - Failed to load resource: net::ERR_CONNECTION_RESET
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=chat-wp-supsystic&tab=chat-settings
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).tooltipster is not a function" "TypeError: jQuery(...).tooltipster is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/live-chat-by-supsystic/js/admin.options.js?ver=1.5.3:94:32)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=chat-wp-supsystic&tab=chat-settings
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: CodeMirror is not defined" "ReferenceError: CodeMirror is not defined\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/live-chat-by-supsystic/modules/chat/js/admin.chat.js?ver=1.5.3:83:18)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=chat-wp-supsystic&tab=chat-settings
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).jqGrid is not a function" "TypeError: jQuery(...).jqGrid is not a function\n at lcsTriggersBuildTable (/wp-content/plugins/live-chat-by-supsystic/modules/chat/js/admin.chat.triggers.js?ver=1.5.3:425:44)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/live-chat-by-supsystic/modules/chat/js/admin.chat.triggers.js?ver=1.5.3:26:2)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=chat-wp-supsystic&tab=chat-settings
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).jqGrid is not a function" "TypeError: jQuery(...).jqGrid is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/live-chat-by-supsystic/modules/chat/js/admin.chat.agents.js?ver=1.5.3:3:21)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=chat-wp-supsystic&tab=chat-settings
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).tooltipster is not a function
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=chat-wp-supsystic&tab=chat-settings
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught ReferenceError: CodeMirror is not defined
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=chat-wp-supsystic&tab=chat-settings
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).jqGrid is not a function
    • > GET request to /wp-admin/admin.php?page=chat-wp-supsystic&tab=statistics
    • > Network (severe)
    http://supsystic-42d7.kxcdn.com/_assets/live-chat/promo/img/statistics.jpg - Failed to load resource: net::ERR_CONNECTION_RESET
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=chat-wp-supsystic&tab=featured-plugins
    • > Network (severe)
    http://supsystic-42d7.kxcdn.com/lib/chosen/chosen.jquery.min.js?ver=1.5.3 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=chat-wp-supsystic&tab=overview
    • > Network (severe)
    http://supsystic-42d7.kxcdn.com/lib/chosen/chosen.min.css?ver=1.5.3 - Failed to load resource: net::ERR_CONNECTION_RESET
    • > GET request to /wp-admin/admin.php?page=chat-wp-supsystic&tab=overview
    • > Network (severe)
    http://supsystic-42d7.kxcdn.com/js/jquery.slimscroll.js?ver=1.5.3 - Failed to load resource: net::ERR_CONNECTION_RESET
    • > GET request to /wp-admin/admin.php?page=chat-wp-supsystic&tab=overview
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).slimScroll is not a function" "TypeError: jQuery(...).slimScroll is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/live-chat-by-supsystic/modules/supsystic_promo/js/admin.overview.js?ver=1.5.3:14:45)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/admin.php?page=chat-wp-supsystic&tab=overview
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).slimScroll is not a function
    • > GET request to /wp-admin/admin.php?page=chat-wp-supsystic&tab=featured-plugins
    • > Network (severe)
    http://supsystic-42d7.kxcdn.com/lib/tooltipster/jquery.tooltipster.min.js?ver=1.5.3 - Failed to load resource: net::ERR_CONNECTION_RESET

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Screenshots: Please add images for these screenshots: #2 (Online Live Chat Options. Let you support be effective with Live Chat triggers, which help you to set Whom, When and Where show live chat bar.), #3 (Live chat example.)
You can look at the official readme.txt

live-chat-by-supsystic/lcs.php 85% from 13 tests

"Live Chat by Supsystic" version 1.5.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("live-chat-by-supsystic.php" instead of "lcs.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 149 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected36,102 lines of code in 321 files:
LanguageFilesBlank linesComment linesLines of code
PHP2762,2156,44220,813
PO File63,4454,7298,438
JavaScript201743704,787
CSS19942072,064

PHP code 50% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
  • Cyclomatic complexity of methods should be reduced to less than 100 (currently 103)
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity13.50
▷ Minimum class complexity1.00
▷ Maximum class complexity198.00
Average method complexity2.97
▷ Minimum method complexity1.00
▷ Maximum method complexity103.00
Code structure
Namespaces0
Interfaces19
Traits0
Classes228
▷ Abstract classes198.33%
▷ Concrete classes20991.67%
▷ Final classes00.00%
Methods1,625
▷ Static methods26216.12%
▷ Public methods1,43488.25%
▷ Protected methods1599.78%
▷ Private methods321.97%
Functions66
▷ Named functions66100.00%
▷ Anonymous functions00.00%
Constants149
▷ Global constants9966.44%
▷ Class constants5033.56%
▷ Public constants50100.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
39 PNG files occupy 0.18MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/ui-bg_inset-soft_15_121212_1x100.png0.27KB0.17KB▼ 35.74%
css/images/ui-bg_glass_95_fef1ec_1x400.png0.32KB0.15KB▼ 54.82%
css/images/minimal@2x.png3.38KB2.56KB▼ 24.15%
modules/chat/img/assets/close_btns/sqr-close.png0.98KB0.55KB▼ 43.97%
modules/chat/img/assets/close_btns/close-red.png1.25KB0.38KB▼ 69.92%