72% blogchat-chat-system

Code Review | BLOGCHAT Chat System

WordPress plugin BLOGCHAT Chat System scored72%from 54 tests.

About plugin

  • Plugin page: blogchat-chat-system
  • Plugin version: 1.3.6.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-4.3.1
  • WordPress version: 6.3.1
  • First release: Apr 14, 2014
  • Latest release: Dec 16, 2015
  • Number of updates: 84
  • Update frequency: every 8.6 days
  • Top authors: rdbeach (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /8,438 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.22MB] [CPU: ▼4.87ms] Passed 4 tests

Analyzing server-side resources used by BLOGCHAT Chat System
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.2438.22 ▼6.42
Dashboard /wp-admin3.53 ▲0.2246.49 ▼6.36
Posts /wp-admin/edit.php3.58 ▲0.2245.79 ▼1.47
Add New Post /wp-admin/post-new.php6.11 ▲0.2283.32 ▼5.21
Media Library /wp-admin/upload.php3.45 ▲0.2235.42 ▼0.52
BLOGCHAT Settings /wp-admin/options-general.php?page=blogchatsettings3.3933.55

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for BLOGCHAT Chat System
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,910 ▲13914.09 ▼0.3521.96 ▲19.8636.46 ▼9.31
Dashboard /wp-admin2,207 ▲165.83 ▲0.02104.15 ▼1.1639.44 ▼4.15
Posts /wp-admin/edit.php2,093 ▲222.05 ▼0.0834.08 ▼4.5033.11 ▼0.48
Add New Post /wp-admin/post-new.php1,536 ▲2223.18 ▲5.66647.87 ▼63.0856.55 ▼4.70
Media Library /wp-admin/upload.php1,392 ▲44.16 ▼0.17100.19 ▼12.2945.79 ▼2.49
BLOGCHAT Settings /wp-admin/options-general.php?page=blogchatsettings2,4101.6931.5254.14

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • blogchat_widget

Smoke tests 25% 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
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=blogchatsettings
    • > Notice in wp-content/plugins/blogchat-chat-system/wp-blogchat-widget.php+232
    Undefined index: blogchat-settings-submit

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 9× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/blogchat-chat-system/proxies/getloc.php
    • > /wp-content/plugins/blogchat-chat-system/html/Upload.php
    • > /wp-content/plugins/blogchat-chat-system/html/Avatars.php
    • > /wp-content/plugins/blogchat-chat-system/proxies/fcchat_wordpress_proxy.php
    • > /wp-content/plugins/blogchat-chat-system/proxies/fcchat_wordpress_proxy2.php
    • > /wp-content/plugins/blogchat-chat-system/proxies/wordpress_config_proxy.php
    • > /wp-content/plugins/blogchat-chat-system/js/import.config.alt.php
    • > /wp-content/plugins/blogchat-chat-system/html/chat/blogchat.php
    • > /wp-content/plugins/blogchat-chat-system/html/chat/index.php
  • 32× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Warning
      Use of undefined constant SESSIONS_TABLE - assumed 'SESSIONS_TABLE' (this will throw an Error in a future version of PHP) in wp-content/plugins/blogchat-chat-system/proxies/fcchat_phpbb3_proxy.php on line 52
    • > PHP Warning
      include(./../../common.php): failed to open stream: No such file or directory in wp-content/plugins/blogchat-chat-system/proxies/fcchat_phpbb3_proxy.php on line 21
    • > PHP Warning
      require_once(wp-content/plugins/blogchat-chat-system/proxies/../../../../includes/defines.php): failed to open stream: No such file or directory in wp-content/plugins/blogchat-chat-system/proxies/joomla_config_proxy.php on line 18
    • > PHP Warning
      require_once(wp-content/plugins/blogchat-chat-system/proxies/../../../../../includes/bootstrap.inc): failed to open stream: No such file or directory in /var/www/wordpress/wp-content/plugins/blogchat-chat-system/proxies/drupal.php on line 17
    • > PHP Notice
      Undefined variable: config in wp-content/plugins/blogchat-chat-system/proxies/fcchat_phpbb3_proxy.php on line 40
    • > PHP Warning
      require_once(wp-content/plugins/blogchat-chat-system/proxies/../../SSI.php): failed to open stream: No such file or directory in wp-content/plugins/blogchat-chat-system/proxies/fcchat_smf_proxy.php on line 12
    • > PHP Notice
      Undefined variable: session_id in wp-content/plugins/blogchat-chat-system/proxies/fcchat_phpbb3_proxy.php on line 52
    • > PHP Warning
      include(): Failed opening './../../common.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/blogchat-chat-system/proxies/phpbb3_config_proxy.php on line 12
    • > PHP Fatal error
      require_once(): Failed opening required 'wp-content/plugins/blogchat-chat-system/proxies/../../../../../includes/bootstrap.inc' (include_path='.:/usr/share/php') in /var/www/wordpress/wp-content/plugins/blogchat-chat-system/proxies/drupal.php on line 17
    • > PHP Warning
      Use of undefined constant USERS_TABLE - assumed 'USERS_TABLE' (this will throw an Error in a future version of PHP) in wp-content/plugins/blogchat-chat-system/proxies/fcchat_phpbb3_proxy.php on line 52

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% 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
These attributes need your attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === blogchat-chat-system === )
  • Screenshots: Screenshot #1 (Here, in screenshot-1.png shows BLOGCHAT in action on your page.) image required
The official readme.txt is a good inspiration

blogchat-chat-system/wp-blogchat-widget.php 92% from 13 tests

"BLOGCHAT Chat System" version 1.3.6.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("blogchat-chat-system.php" instead of "wp-blogchat-widget.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
No dangerous file extensions were detected15,315 lines of code in 124 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript751,5821,7209,828
PHP254414222,651
HTML171892401,849
ASP413885821
CSS2261148
SVG10018

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity25.33
▷ Minimum class complexity5.00
▷ Maximum class complexity37.00
Average method complexity5.06
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods18
▷ Static methods00.00%
▷ Public methods1794.44%
▷ Protected methods00.00%
▷ Private methods15.56%
Functions53
▷ Named functions53100.00%
▷ Anonymous functions00.00%
Constants47
▷ Global constants47100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
569 compressed PNG files occupy 0.39MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
current_skin/flags/sk.png0.55KB0.70KB0.00%
current_skin/twitter.png0.79KB0.99KB0.00%
skins/default/flags/bj.png0.47KB0.66KB0.00%
skins/default/google_transliteration.png0.68KB0.33KB▼ 51.00%
skins/default/flags/bo.png0.49KB0.71KB0.00%