83% web-cam

Code Review | web-cam

WordPress plugin web-cam scored 83% from 54 tests.

About plugin

  • Plugin page: web-cam
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8.2
  • WordPress version: 6.3.1
  • First release: Nov 17, 2021
  • Latest release: Nov 17, 2021
  • Number of updates: 3
  • Update frequency: every 176.0 days
  • Top authors: murtuzamakda52 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

80+ active / 1,332 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.24ms] Passed 4 tests

Server-side resources used by web-cam
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0133.69 ▼6.64
Dashboard /wp-admin3.31 ▲0.0144.74 ▼3.74
Posts /wp-admin/edit.php3.36 ▲0.0044.83 ▲1.44
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.44 ▼7.63
Media Library /wp-admin/upload.php3.23 ▲0.0031.60 ▼2.95

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for web-cam
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,883 ▲12614.00 ▼0.385.38 ▲3.4037.80 ▼8.69
Dashboard /wp-admin2,203 ▲265.90 ▼0.0099.04 ▼16.0540.96 ▼6.22
Posts /wp-admin/edit.php2,089 ▼32.01 ▲0.0437.67 ▲0.9436.50 ▲1.31
Add New Post /wp-admin/post-new.php1,533 ▲1223.40 ▲0.07634.76 ▼63.3755.72 ▲2.56
Media Library /wp-admin/upload.php1,391 ▲34.30 ▲0.0794.90 ▼11.2544.14 ▼0.65

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

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
Good news, no errors were detected

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 take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/web-cam/web-cam.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: These screenshots do not have images: #1 (Example Web-cam), #2 (Example of shortcode), #3 (Example how to get image id after button click)
  • Contributors: Contributors not specified
  • Screenshots: Add descriptions for screenshots #0, #0, #0 in web-cam/assets to your readme.txt
You can take inspiration from this readme.txt

web-cam/web-cam.php Passed 13 tests

Analyzing the main PHP file in "web-cam" version 1.0
88 characters long description:
This is the very first plugin I ever created and this is a unique plugin because using .

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin103 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1231184
JavaScript27119

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions3
▷ Named functions3100.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 files were detected