68% live-support

Code Review | Live Support

WordPress plugin Live Support scored68%from 54 tests.

About plugin

  • Plugin page: live-support
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 22, 2012
  • Latest release: Nov 22, 2012
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: Jacquish (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,921 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
This plugin's installer ran successfully

Server metrics [RAM: ▼1.97MB] [CPU: ▼53.46ms] Passed 4 tests

This is a short check of server-side resources used by Live Support
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.40 ▼32.59
Dashboard /wp-admin2.05 ▼1.305.39 ▼52.34
Posts /wp-admin/edit.php2.05 ▼1.315.60 ▼42.70
Add New Post /wp-admin/post-new.php2.05 ▼3.845.63 ▼86.20
Media Library /wp-admin/upload.php2.05 ▼1.186.19 ▼28.05
Live Support /wp-admin/options-general.php?page=live-support/plugin_interface.php2.055.53

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Live Support
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲5314.72 ▲0.361.75 ▲0.1641.95 ▲1.19
Dashboard /wp-admin2,204 ▲235.62 ▲0.0190.53 ▼12.3042.10 ▼0.55
Posts /wp-admin/edit.php2,106 ▲62.02 ▲0.0340.20 ▲4.2938.05 ▲5.87
Add New Post /wp-admin/post-new.php1,531 ▲323.43 ▲0.25710.54 ▲18.7363.35 ▲11.12
Media Library /wp-admin/upload.php1,403 ▲34.22 ▲0.0497.45 ▼7.5643.32 ▼3.04
Live Support /wp-admin/options-general.php?page=live-support/plugin_interface.php8102.0323.9725.81

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 did not uninstall without warnings or errors
    • > User notice in wp-includes/functions.php+5905
    Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the cts_style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=live-support/plugin_interface.php
    • > User notice in wp-includes/functions.php+5905
    Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the cts_style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
    • > GET request to /wp-admin/options-general.php?page=live-support/plugin_interface.php
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the cts_style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_register_style() in wp-content/plugins/live-support/live-support.php:38
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/live-support/plugin_interface.php:2

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Requires at least: Invalid plugin version format
You can look at the official readme.txt

live-support/live-support.php Passed 13 tests

The main PHP file in "Live Support" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
44 characters long description:
This plugins embed call button to your site.

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 plugin50 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2122048
CSS1012

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.07
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%
Functions4
▷ Named functions4100.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.06MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png26.94KB11.96KB▼ 55.61%
screenshot-1.png5.29KB3.15KB▼ 40.40%
screenshot-2.png25.86KB11.50KB▼ 55.54%