10% livetv-bundle

Code Review | liveTV Bundle

WordPress plugin liveTV Bundle scored10%from 54 tests.

About plugin

  • Plugin page: livetv-bundle
  • Plugin version: 1.3.1.3
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 11, 2012
  • Latest release: Oct 27, 2012
  • Number of updates: 127
  • Update frequency: every 1.3 days
  • Top authors: KwarK (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /11,581 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
  • The plugin cannot be installed
    • > Warning in wp-content/plugins/livetv-bundle/plugin-livetv-fork.php+43
    Use of undefined constant home_url - assumed 'home_url' (this will throw an Error in a future version of PHP)

Server metrics [RAM: ▼1.93MB] [CPU: ▼53.60ms] Passed 4 tests

Analyzing server-side resources used by liveTV Bundle
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.404.81 ▼37.17
Dashboard /wp-admin2.08 ▼1.226.27 ▼39.08
Posts /wp-admin/edit.php2.08 ▼1.285.66 ▼48.20
Add New Post /wp-admin/post-new.php2.08 ▼3.816.40 ▼89.93
Media Library /wp-admin/upload.php2.08 ▼1.156.23 ▼31.81

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for liveTV Bundle
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲4614.35 ▲0.141.66 ▼0.2245.87 ▲1.55
Dashboard /wp-admin2,216 ▲365.62 ▲0.0294.71 ▲3.7944.22 ▼1.28
Posts /wp-admin/edit.php2,118 ▲182.04 ▲0.0439.31 ▼0.3837.37 ▼0.82
Add New Post /wp-admin/post-new.php1,564 ▲3623.07 ▲0.03660.67 ▼29.7449.67 ▼16.02
Media Library /wp-admin/upload.php1,418 ▲214.22 ▲0.00100.53 ▼8.5541.66 ▼9.27

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-content/plugins/livetv-bundle/plugin-livetv-fork.php+43
    Use of undefined constant home_url - assumed 'home_url' (this will throw an Error in a future version of PHP)
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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
Please fix the following items
  • 8× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/livetv-bundle/page-frontend/page-livetreams.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/livetv-bundle/plugin-livetv-display-lives.php:37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/livetv-bundle/plugin-livetv-shortcode.php:37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/livetv-bundle/plugin-livetv-display-widget.php:37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/livetv-bundle/page-admin/page-admin-livetreams.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/livetv-bundle/plugin-livetv-display-irc.php:37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/livetv-bundle/plugin-livetv-fork.php:37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/livetv-bundle/page-admin/page-admin-shortcode.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
  • Screenshots: Please add images for these screenshots: #1 (administration), #2 (frontend)
You can look at the official readme.txt

livetv-bundle/plugin-livetv-shortcode.php 85% from 13 tests

"liveTV Bundle" version 1.3.1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 152 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("livetv-bundle.php" instead of "plugin-livetv-shortcode.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected3,468 lines of code in 34 files:
LanguageFilesBlank linesComment linesLines of code
PHP96065442,085
JavaScript16145172963
CSS9156420

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
19 PNG files occupy 0.23MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/mini-justin.png4.55KB1.64KB▼ 63.95%
images/mini-twitch.png4.57KB1.69KB▼ 62.95%
images/info.png0.93KB1.15KB0.00%
images/thumblist-title-justin.png44.99KB2.57KB▼ 94.29%
images/twitter.png14.21KB2.83KB▼ 80.12%