Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼143.24ms] Passed 4 tests
Server-side resources used by React Webcam
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 35.35 ▲13.47 |
Dashboard /wp-admin | 3.08 ▲0.02 | 45.63 ▼3.75 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 44.84 ▲1.44 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 84.48 ▼575.01 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 35.46 ▲4.37 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for React Webcam
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,689 ▲93 | 15.86 ▲0.17 | 12.22 ▲2.28 | 47.09 ▼3.23 |
Dashboard /wp-admin | 2,967 ▲33 | 6.07 ▲0.10 | 143.06 ▼0.41 | 118.00 ▼3.37 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.71 ▼0.00 | 65.67 ▼2.37 | 92.49 ▼1.31 |
Add New Post /wp-admin/post-new.php | 1,498 ▼185 | 18.83 ▲0.28 | 376.25 ▼10.42 | 114.08 ▲2.21 |
Media Library /wp-admin/upload.php | 1,810 ▲3 | 5.03 ▼0.02 | 145.02 ▲0.29 | 118.53 ▼4.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function ReactWebcam\\add_action() in wp-content/plugins/react-webcam/react-webcam.php:73
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: image, ajax, webcam
react-webcam/react-webcam.php Passed 13 tests
The main file in "React Webcam" v. 1.2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
55 characters long description:
Add auto-refreshing image from your webcam to any page.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected83 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 20 | 8 | 50 |
JavaScript | 2 | 10 | 11 | 33 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.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
No PNG images were found in this plugin