83% provide-support-live-chat

Code Review | Provide Support Live Chat

WordPress plugin Provide Support Live Chat scored83%from 54 tests.

About plugin

  • Plugin page: provide-support-l...
  • Plugin version: 5.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.0
  • WordPress version: 6.3.1
  • First release: Sep 6, 2013
  • Latest release: Jun 24, 2022
  • Number of updates: 119
  • Update frequency: every 27.0 days
  • Top authors: providesupport (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

400+ active /32,097 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
Installer ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▲3.86ms] Passed 4 tests

This is a short check of server-side resources used by Provide Support Live Chat
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1447.38 ▲8.35
Dashboard /wp-admin3.41 ▲0.1155.88 ▲4.35
Posts /wp-admin/edit.php3.53 ▲0.1750.74 ▲0.49
Add New Post /wp-admin/post-new.php5.99 ▲0.1199.15 ▲2.26
Media Library /wp-admin/upload.php3.34 ▲0.1149.66 ▲15.00

Server storage [IO: ▲0.13MB] [DB: ▲0.01MB] Passed 3 tests

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

Browser metrics Passed 4 tests

An overview of browser requirements for Provide Support Live Chat
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,896 ▲15013.63 ▼0.728.26 ▲6.4744.19 ▲0.62
Dashboard /wp-admin2,211 ▲234.93 ▲0.0499.61 ▼18.1371.34 ▲24.96
Posts /wp-admin/edit.php2,112 ▲232.01 ▼0.0338.41 ▲0.0440.00 ▲2.25
Add New Post /wp-admin/post-new.php1,692 ▲15924.67 ▲1.65729.11 ▲57.6455.55 ▼6.51
Media Library /wp-admin/upload.php1,396 ▲84.18 ▼0.10100.56 ▼7.4677.98 ▲36.84

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 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
  • Zombie WordPress options detected upon uninstall: 8 options
    • ProvideSupport plugin version
    • db_upgraded
    • widget_recent-posts
    • f7jsFile
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function update_option() in wp-content/plugins/provide-support-live-chat/plugin.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 20 tag instead of maximum 10
The official readme.txt is a good inspiration

provide-support-live-chat/plugin.php 85% from 13 tests

The main PHP script in "Provide Support Live Chat" version 5.0.0 is automatically included on every request by WordPress
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 260 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("provide-support-live-chat.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin1,581 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript710588770
PHP14824487
CSS1242324

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity9.00
▷ Minimum class complexity1.00
▷ Maximum class complexity17.00
Average method complexity5.00
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
3 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
etc/img/wp_ps_icon.png1.11KB1.07KB▼ 3.34%
etc/img/provide-support_logo.png4.58KB2.45KB▼ 46.45%
etc/img/display_template.png19.85KB20.58KB0.00%