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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.04 | 38.62 ▲0.87 |
Dashboard /wp-admin | 3.09 ▲0.03 | 58.76 ▲9.53 |
Posts /wp-admin/edit.php | 3.14 ▲0.02 | 49.18 ▼7.12 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 97.78 ▼552.07 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 36.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,790 ▲153 | 16.51 ▲0.42 | 16.19 ▲7.13 | 58.43 ▲6.00 |
Dashboard /wp-admin | 2,967 ▲33 | 6.07 ▲0.12 | 154.28 ▼5.18 | 135.58 ▲22.41 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.69 ▼0.01 | 74.17 ▼0.72 | 100.98 ▲6.94 |
Add New Post /wp-admin/post-new.php | 1,683 ▼0 | 18.85 ▲0.46 | 383.95 ▼44.75 | 111.37 ▼4.74 |
Media Library /wp-admin/upload.php | 1,807 ▼3 | 5.01 ▼0.02 | 154.29 ▼7.29 | 128.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 11 | 12 | 115 |
JavaScript | 2 | 3 | 12 | 53 |
CSS | 1 | 0 | 6 | 2 |
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 code | 0.29 |
Average class complexity | 6.67 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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