62% iflychat

Code Review | iFlyChat - WordPress Chat

WordPress plugin iFlyChat - WordPress Chat scored62%from 54 tests.

About plugin

  • Plugin page: iflychat
  • Plugin version: 4.7.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.4
  • WordPress version: 6.3.1
  • First release: Jul 25, 2012
  • Latest release: Nov 9, 2023
  • Number of updates: 242
  • Update frequency: every 17.0 days
  • Top authors: darklrd (100%)

Code review

54 tests

User reviews

102 reviews

Install metrics

1,000+ active /228,192 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼1.03MB] [CPU: ▼43.88ms] Passed 4 tests

A check of server-side resources used by iFlyChat - WordPress Chat
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.95 ▼0.5115.46 ▼22.16
Dashboard /wp-admin2.99 ▼0.3617.59 ▼40.35
Posts /wp-admin/edit.php2.99 ▼0.3717.15 ▼31.61
Add New Post /wp-admin/post-new.php2.99 ▼2.9018.83 ▼81.41
Media Library /wp-admin/upload.php2.99 ▼0.2418.14 ▼10.73
iFlyChat Settings /wp-admin/options-general.php?page=iflychat_settings2.9918.16

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 17 new options
New WordPress options
can_compress_scripts
iflychat_popup_chat
widget_recent-posts
db_upgraded
iflychat_api_key
widget_theysaidso_widget
iflychat_session_caching
iflychat_chat_moderators_array
iflychat_path_pages
iflychat_app_id
...

Browser metrics Passed 4 tests

A check of browser resources used by iFlyChat - WordPress Chat
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,925 ▲16314.43 ▲0.225.99 ▲4.3641.89 ▼0.53
Dashboard /wp-admin2,205 ▲285.55 ▼0.0988.75 ▼11.3540.40 ▼1.01
Posts /wp-admin/edit.php2,116 ▲192.03 ▲0.0140.69 ▲3.8736.69 ▲1.30
Add New Post /wp-admin/post-new.php1,538 ▲1222.01 ▼1.01685.78 ▲37.3867.58 ▲17.66
Media Library /wp-admin/upload.php1,407 ▲74.22 ▼0.01101.70 ▲0.9143.46 ▼1.38
iFlyChat Settings /wp-admin/options-general.php?page=iflychat_settings1,0942.1727.1530.24

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
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > 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.)
  • This plugin did not uninstall successfully, leaving 17 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • iflychat_chat_admins_array
    • iflychat_enable_friends
    • iflychat_use_display_name
    • iflychat_path_pages
    • iflychat_embed_chat
    • db_upgraded
    • iflychat_app_id
    • widget_recent-comments
    • ...

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=iflychat_settings
    • > 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.)

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
Please fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/iflychat/iflychat.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
    • > GET request to /wp-admin/options-general.php?page=iflychat_settings
    • > Network (severe)
    http://cdn.iflychat.com/js/iflychat-v2.min.js?app_id= - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
The official readme.txt might help

iflychat/iflychat.php Passed 13 tests

The principal PHP file in "iFlyChat - WordPress Chat" v. 4.7.2 is loaded by WordPress automatically on each request
55 characters long description:
One on one chat, Multiple chatrooms, Embedded chatrooms

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
Success! There were no dangerous files found in this plugin1,247 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP11483351,169
JavaScript32578

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.56
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions44
▷ Named functions44100.00%
▷ Anonymous functions00.00%
Constants14
▷ Global constants14100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected