78% bitmovin-streams

Code Review | Bitmovin Streams - Live & On-demand Video

WordPress plugin Bitmovin Streams - Live & On-demand Video scored78%from 54 tests.

About plugin

  • Plugin page: bitmovin-streams
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.1
  • WordPress version: 6.3.1
  • First release: Feb 24, 2023
  • Latest release: Sep 1, 2023
  • Number of updates: 10
  • Update frequency: every 18.9 days
  • Top authors: bitmovin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /278 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
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.40ms] Passed 4 tests

A check of server-side resources used by Bitmovin Streams - Live & On-demand Video
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0333.25 ▼6.07
Dashboard /wp-admin3.33 ▲0.0245.87 ▲1.50
Posts /wp-admin/edit.php3.38 ▲0.0247.81 ▼0.45
Add New Post /wp-admin/post-new.php5.91 ▲0.0291.03 ▼4.59
Media Library /wp-admin/upload.php3.25 ▲0.0235.80 ▲2.06
Bitmovin /wp-admin/options-general.php?page=bitmovin3.2331.07

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Bitmovin Streams - Live & On-demand Video
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.66 ▼0.771.77 ▲0.0839.87 ▼2.19
Dashboard /wp-admin2,231 ▲405.86 ▲0.96106.45 ▲3.6241.94 ▼3.50
Posts /wp-admin/edit.php2,114 ▲252.01 ▲0.0040.30 ▼1.1237.88 ▲3.22
Add New Post /wp-admin/post-new.php6,373 ▲4,85227.94 ▲4.73865.45 ▲182.8761.15 ▲8.01
Media Library /wp-admin/upload.php1,413 ▲224.22 ▲0.0399.28 ▲0.1043.10 ▲1.11
Bitmovin /wp-admin/options-general.php?page=bitmovin8732.0523.4227.64

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/bitmovin-streams/build/logo.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bitmovin-streams/bitmovin.php: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 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
You can take inspiration from this readme.txt

bitmovin-streams/bitmovin.php 85% from 13 tests

The main PHP file in "Bitmovin Streams - Live & On-demand Video" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("bitmovin-streams.php" instead of "bitmovin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin153 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP31014127
JSON10024
CSS2101
JavaScript1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.15
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%
Functions7
▷ Named functions7100.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
There are no PNG files in this plugin