84% netcam-live-stream

Code Review | Netcam / Webcam Live Stream

WordPress plugin Netcam / Webcam Live Stream scored 84% from 54 tests.

About plugin

  • Plugin page: netcam-live-stream
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-4.0
  • WordPress version: 5.8.1
  • First release: Nov 9, 2014
  • Latest release: Nov 18, 2014
  • Number of updates: 8
  • Update frequency: every 1.3 days
  • Top authors: blocknot.es (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

500+ active / 7,622 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
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Netcam / Webcam Live Stream
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.0438.62 ▲0.87
Dashboard /wp-admin3.09 ▲0.0358.76 ▲9.53
Posts /wp-admin/edit.php3.14 ▲0.0249.18 ▼7.12
Add New Post /wp-admin/post-new.php5.44 ▲0.0197.78 ▼552.07
Media Library /wp-admin/upload.php3.03 ▲0.0336.62 ▲0.52

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 1 new option
New WordPress options
widget_nls_widget

Browser metrics Passed 4 tests

A check of browser resources used by Netcam / Webcam Live Stream
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,790 ▲15316.51 ▲0.4216.19 ▲7.1358.43 ▲6.00
Dashboard /wp-admin2,967 ▲336.07 ▲0.12154.28 ▼5.18135.58 ▲22.41
Posts /wp-admin/edit.php2,739 ▼02.69 ▼0.0174.17 ▼0.72100.98 ▲6.94
Add New Post /wp-admin/post-new.php1,683 ▼018.85 ▲0.46383.95 ▼44.75111.37 ▼4.74
Media Library /wp-admin/upload.php1,807 ▼35.01 ▼0.02154.29 ▼7.29128.79 ▼3.99

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The uninstall procedure has failed, leaving 1 option in the database
    • widget_nls_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/netcam-live-stream/netcam-live-stream.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: images, video

netcam-live-stream/netcam-live-stream.php Passed 13 tests

The principal PHP file in "Netcam / Webcam Live Stream" v. 1.0.5 is loaded by WordPress automatically on each request
64 characters long description:
Add a live video stream from a netcam / webcam in posts or pages

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
There were no executable files found in this plugin170 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP31112115
JavaScript231253
CSS1062

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity6.67
▷ Minimum class complexity2.00
▷ Maximum class complexity13.00
Average method complexity2.89
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
No PNG images were found in this plugin