72% fcchat

Code Review | FCChat Widget

WordPress plugin FCChat Widget scored 72% from 54 tests.

About plugin

  • Plugin page: fcchat
  • Plugin version: 3.8.6.6
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-4.3.1
  • WordPress version: 6.3.1
  • First release: Dec 5, 2010
  • Latest release: Dec 16, 2015
  • Number of updates: 987
  • Update frequency: every 1.9 days
  • Top authors: rdbeach (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

10+ active / 49,520 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
Install script ran successfully

Server metrics [RAM: ▲0.23MB] [CPU: ▼5.12ms] Passed 4 tests

Server-side resources used by FCChat Widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.2435.12 ▼11.73
Dashboard /wp-admin3.53 ▲0.2346.33 ▼3.87
Posts /wp-admin/edit.php3.58 ▲0.2349.68 ▲2.24
Add New Post /wp-admin/post-new.php6.11 ▲0.2384.14 ▼4.34
Media Library /wp-admin/upload.php3.45 ▲0.2335.45 ▼0.55
FCChat Settings /wp-admin/options-general.php?page=fcchatsettings3.3930.01

Server storage [IO: ▲3.72MB] [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: 902 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
fcchat_widget
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

FCChat Widget: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,962 ▲21614.34 ▼0.3335.03 ▲33.3936.70 ▼6.24
Dashboard /wp-admin2,210 ▲215.86 ▲0.98111.18 ▼8.9042.80 ▼5.72
Posts /wp-admin/edit.php2,093 ▲42.04 ▼0.0141.72 ▲1.5636.12 ▼2.70
Add New Post /wp-admin/post-new.php1,517 ▼1717.67 ▼5.44689.11 ▲87.6953.61 ▲3.73
Media Library /wp-admin/upload.php1,395 ▲104.19 ▲0.0398.31 ▼8.6141.66 ▼3.46
FCChat Settings /wp-admin/options-general.php?page=fcchatsettings2,4281.7029.6952.11

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • fcchat_widget
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=fcchatsettings
    • > Notice in wp-content/plugins/fcchat/wp-fcchat-widget.php+231
    Undefined index: fcchat-settings-submit

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 8× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/fcchat/proxies/wordpress_config_proxy.php
    • > /wp-content/plugins/fcchat/proxies/getloc.php
    • > /wp-content/plugins/fcchat/proxies/fcchat_wordpress_proxy.php
    • > /wp-content/plugins/fcchat/html/Avatars.php
    • > /wp-content/plugins/fcchat/js/import.config.alt.php
    • > /wp-content/plugins/fcchat/html/chat/index.php
    • > /wp-content/plugins/fcchat/proxies/fcchat_wordpress_proxy2.php
    • > /wp-content/plugins/fcchat/html/Upload.php
  • 32× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Warning
      include(./../config/fcchat-config.php): failed to open stream: No such file or directory in wp-content/plugins/fcchat/proxies/phpbb3_config_proxy.php on line 18
    • > PHP Warning
      require_once(wp-content/plugins/fcchat/proxies/../../../../../includes/bootstrap.inc): failed to open stream: No such file or directory in /var/www/wordpress/wp-content/plugins/fcchat/proxies/drupal_config_proxy.php on line 15
    • > 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/fcchat/proxies/fcchat_phpbb3_proxy.php on line 52
    • > PHP Warning
      require_once(wp-content/plugins/fcchat/proxies/../../SSI.php): failed to open stream: No such file or directory in wp-content/plugins/fcchat/proxies/fcchat_smf_proxy.php on line 12
    • > PHP Fatal error
      require_once(): Failed opening required 'wp-content/plugins/fcchat/proxies/../../../../../includes/bootstrap.inc' (include_path='.:/usr/share/php') in /var/www/wordpress/wp-content/plugins/fcchat/proxies/drupal.php on line 17
    • > PHP Warning
      include(./../../common.php): failed to open stream: No such file or directory in wp-content/plugins/fcchat/proxies/phpbb3_config_proxy.php on line 12
    • > PHP Notice
      Undefined variable: config in wp-content/plugins/fcchat/proxies/fcchat_phpbb3_proxy.php on line 40
    • > PHP Notice
      Undefined index: path in wp-content/plugins/fcchat/js/import.config.alt.php on line 8
    • > PHP Fatal error
      require_once(): Failed opening required 'wp-content/plugins/fcchat/proxies/../../SSI.php' (include_path='.:/usr/share/php') in wp-content/plugins/fcchat/proxies/fcchat_smf_proxy.php on line 12
    • > PHP Warning
      include(): Failed opening './../../common.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/fcchat/proxies/fcchat_phpbb3_proxy.php on line 21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% 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:
  • Screenshots: These screenshots require images: #1 (Here, in screenshot-1.png an expansive view of the available `FCChat Widget` control panel hs been provided for your viewing pleasure.), #2 (screenshot-2.png catches the `FCChat Widget` in some hot on-page action. Take care, number 7, your scene is next.), #3 (blue_silver.png The new blue silver style.)
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === fcchat === )
Please take inspiration from this readme.txt

fcchat/wp-fcchat-widget.php 92% from 13 tests

The entry point to "FCChat Widget" version 3.8.6.6 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("fcchat.php" instead of "wp-fcchat-widget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin18,128 lines of code in 133 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript861,5901,96112,863
PHP244104122,498
HTML161681951,782
ASP413885821
CSS2261146
SVG10018

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
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%
Constants49
▷ Global constants49100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
565 compressed PNG files occupy 0.74MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
current_skin/flags/sj.png0.50KB0.62KB0.00%
skins/default/flags/mk.png0.65KB0.74KB0.00%
current_skin/flags/mp.png0.58KB0.70KB0.00%
current_skin/flags/mc.png0.37KB0.54KB0.00%
skins/default/flags/cy.png0.42KB0.45KB0.00%