10% flexytalk-widget

Code Review | FrescoChat Live Chat

WordPress plugin FrescoChat Live Chat scored10%from 54 tests.

About plugin

  • Plugin page: flexytalk-widget
  • Plugin version: 3.2.6
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-5.3.2
  • WordPress version: 6.3.1
  • First release: Nov 24, 2012
  • Latest release: Dec 19, 2019
  • Number of updates: 374
  • Update frequency: every 6.9 days
  • Top authors: sodena (100%)

Code review

54 tests

User reviews

52 reviews

Install metrics

80+ active /71,438 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/flexytalk-widget/FlexyTalk_Widget.php+84
    Methods with the same name as their class will not be constructors in a future version of PHP; FlexyTalk_Widget has a deprecated constructor

Server metrics [RAM: ▼1.91MB] [CPU: ▼56.03ms] Passed 4 tests

Server-side resources used by FrescoChat Live Chat
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.394.06 ▼40.48
Dashboard /wp-admin2.10 ▼1.217.72 ▼43.42
Posts /wp-admin/edit.php2.10 ▼1.265.59 ▼44.52
Add New Post /wp-admin/post-new.php2.10 ▼3.795.10 ▼95.70
Media Library /wp-admin/upload.php2.10 ▼1.135.84 ▼29.86
Control Panel /wp-admin/admin.php?page=frescochat2.104.82
Account Settings /wp-admin/admin.php?page=frescochat_settings2.106.89

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 8 new options
New WordPress options
ft_installation_mode
widget_flexytalk-widget
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for FrescoChat Live Chat
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲7914.25 ▲0.012.00 ▲0.1037.38 ▼8.41
Dashboard /wp-admin2,218 ▲385.56 ▲0.0399.43 ▲4.7677.56 ▲38.43
Posts /wp-admin/edit.php2,132 ▲322.02 ▲0.0038.58 ▲0.3231.43 ▼1.55
Add New Post /wp-admin/post-new.php1,563 ▲3723.01 ▲0.06771.59 ▲77.6459.23 ▼0.69
Media Library /wp-admin/upload.php1,429 ▲324.24 ▲0.02104.14 ▼4.7360.78 ▲12.95
Control Panel /wp-admin/admin.php?page=frescochat9611.9627.4228.53
Account Settings /wp-admin/admin.php?page=frescochat_settings9351.7024.3323.03

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/flexytalk-widget/FlexyTalk_Widget.php+84
    Methods with the same name as their class will not be constructors in a future version of PHP; FlexyTalk_Widget has a deprecated constructor
  • Zombie WordPress options detected upon uninstall: 8 options
    • widget_flexytalk-widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • ft_installation_mode
    • theysaidso_admin_options

Smoke tests 50% 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)
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=frescochat_settings
    • > Deprecated in wp-content/plugins/flexytalk-widget/FlexyTalk_Widget.php+84
    Methods with the same name as their class will not be constructors in a future version of PHP; FlexyTalk_Widget has a deprecated constructor

SRP 50% 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 items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/flexytalk-widget/flexytalk_settings.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flexytalk-widget/FlexyTalk_Widget.php:55

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Please add an image for screenshot #7 (CUSTOM FIELDS)
  • Tags: There are too many tags (18 tag instead of maximum 10)
You can take inspiration from this readme.txt

flexytalk-widget/FlexyTalk_Widget.php 92% from 13 tests

The principal PHP file in "FrescoChat Live Chat" v. 3.2.6 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("flexytalk-widget.php" instead of "FlexyTalk_Widget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected159 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP26112159

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/logo_icon.png0.81KB0.92KB0.00%