10% livediscourse

Code Review | LiveDiscourse

WordPress plugin LiveDiscourse scored10%from 54 tests.

About plugin

  • Plugin page: livediscourse
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 0.0.1-0.1
  • WordPress version: 6.3.1
  • First release: Sep 7, 2012
  • Latest release: Sep 11, 2013
  • Number of updates: 19
  • Update frequency: every 19.4 days
  • Top authors: zdebla (63.16%)Nixx (42.11%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /886 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Parse error in wp-content/plugins/livediscourse/livediscourse.php+58
    syntax error, unexpected '}', expecting end of file

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.07ms] Passed 4 tests

A check of server-side resources used by LiveDiscourse
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0040.77 ▼0.56
Dashboard /wp-admin3.35 ▲0.0050.13 ▼4.44
Posts /wp-admin/edit.php3.40 ▲0.0048.92 ▲0.15
Add New Post /wp-admin/post-new.php5.93 ▲0.0093.09 ▼15.43
Media Library /wp-admin/upload.php3.27 ▲0.0038.67 ▲2.58

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for LiveDiscourse
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.24 ▼0.111.74 ▼0.3446.19 ▲1.41
Dashboard /wp-admin2,189 ▲95.62 ▼0.0089.76 ▼3.1938.84 ▼6.14
Posts /wp-admin/edit.php2,103 ▲61.98 ▲0.0135.06 ▼1.5533.00 ▼1.10
Add New Post /wp-admin/post-new.php1,528 ▲223.03 ▼0.07668.07 ▲20.3553.34 ▼5.96
Media Library /wp-admin/upload.php1,400 ▼04.11 ▼0.07113.71 ▲7.5748.30 ▼1.82

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      Use of undefined constant LD_URL - assumed 'LD_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/livediscourse/manage.php on line 16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/livediscourse/manage.php:29
    • > PHP Parse error
      syntax error, unexpected '}', expecting end of file in wp-content/plugins/livediscourse/livediscourse.php on line 58
    • > PHP Warning
      Use of undefined constant LD_URL - assumed 'LD_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/livediscourse/manage.php on line 12
    • > PHP Warning
      Use of undefined constant LD_URL - assumed 'LD_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/livediscourse/manage.php on line 29

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
1 plugin tags: comments

livediscourse/livediscourse.php Passed 13 tests

"LiveDiscourse" version 0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
13 characters long description:
LivDis plugin

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
There were no executable files found in this plugin168 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2152989
JavaScript111855
CSS13024

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%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/logo_bottom.png5.09KB2.65KB▼ 47.98%
css/header_background.png31.95KB16.03KB▼ 49.82%
css/logo.png5.83KB3.72KB▼ 36.19%