83% new-dev-livesmart-video-chat

Code Review | LiveSmart Video Chat Live Video Chat

WordPress plugin LiveSmart Video Chat Live Video Chat scored83%from 54 tests.

About plugin

  • Plugin page: new-dev-livesmart...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jan 15, 2019
  • Latest release: Jun 2, 2019
  • Number of updates: 4
  • Update frequency: every 34.7 days
  • Top authors: nhadjidimitrov (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /4,109 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.49ms] Passed 4 tests

Analyzing server-side resources used by LiveSmart Video Chat Live Video Chat
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0141.00 ▼2.65
Dashboard /wp-admin3.31 ▲0.0144.13 ▼5.41
Posts /wp-admin/edit.php3.36 ▲0.0149.80 ▲1.71
Add New Post /wp-admin/post-new.php5.89 ▲0.0196.66 ▼11.62
Media Library /wp-admin/upload.php3.23 ▲0.0135.32 ▲2.28
LiveSmart Settings /wp-admin/admin.php?page=fwds_settings3.2032.17
LiveSmart Dashboard /wp-admin/admin.php?page=fwds_visitors3.2032.70

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for LiveSmart Video Chat Live Video Chat
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲9213.20 ▼1.211.72 ▼0.0546.23 ▼6.73
Dashboard /wp-admin2,227 ▲395.81 ▲0.76100.95 ▼5.4739.44 ▼9.42
Posts /wp-admin/edit.php2,113 ▲242.02 ▲0.0241.01 ▲1.4234.34 ▲0.52
Add New Post /wp-admin/post-new.php1,547 ▲1422.79 ▼0.41594.04 ▼68.9459.61 ▼1.66
Media Library /wp-admin/upload.php1,409 ▲214.21 ▲0.0796.37 ▲0.4541.03 ▼3.24
LiveSmart Settings /wp-admin/admin.php?page=fwds_settings8712.0723.3927.71
LiveSmart Dashboard /wp-admin/admin.php?page=fwds_visitors7682.1821.8322.61

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/new-dev-livesmart-video-chat/livesmart-plugin.php:33

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 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Requires at least: Version not formatted correctly
You can take inspiration from this readme.txt

new-dev-livesmart-video-chat/livesmart-plugin.php 85% from 13 tests

The entry point to "LiveSmart Video Chat Live Video Chat" version 1.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 141 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("new-dev-livesmart-video-chat.php" instead of "livesmart-plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected112 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP116891
Markdown110021

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.55
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%
Functions5
▷ Named functions5100.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
There are no PNG files in this plugin