10% wp-webcam-widget-shortcode

Code Review | Wordpress Live Webcam Widget & Shortcode

WordPress plugin Wordpress Live Webcam Widget & Shortcode scored10%from 54 tests.

About plugin

  • Plugin page: wp-webcam-widget-...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Feb 5, 2017
  • Latest release: Feb 5, 2017
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: miksco (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /7,040 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/wp-webcam-widget-shortcode/wordpress-webcam.php+41
    Methods with the same name as their class will not be constructors in a future version of PHP; wpwws_widget has a deprecated constructor

Server metrics [RAM: ▼1.90MB] [CPU: ▼56.97ms] Passed 4 tests

This is a short check of server-side resources used by Wordpress Live Webcam Widget & Shortcode
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.384.28 ▼45.70
Dashboard /wp-admin2.10 ▼1.205.84 ▼43.13
Posts /wp-admin/edit.php2.10 ▼1.255.63 ▼42.66
Add New Post /wp-admin/post-new.php2.10 ▼3.786.90 ▼96.39
Media Library /wp-admin/upload.php2.10 ▼1.136.00 ▼24.58

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Wordpress Live Webcam Widget & Shortcode
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.22 ▼1.164.34 ▲2.1640.53 ▼0.97
Dashboard /wp-admin2,206 ▲155.91 ▲0.03106.10 ▲3.2543.92 ▼0.38
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0240.00 ▼0.4735.07 ▲1.11
Add New Post /wp-admin/post-new.php1,514 ▼2817.86 ▼0.50613.34 ▼0.9056.45 ▲0.41
Media Library /wp-admin/upload.php1,382 ▼94.23 ▲0.01101.07 ▼1.8942.44 ▼1.89
WP Webcam Shortcode /wp-admin/miksco.php?page=wpw260.440.0812.86

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/wp-webcam-widget-shortcode/wordpress-webcam.php+41
    Methods with the same name as their class will not be constructors in a future version of PHP; wpwws_widget has a deprecated constructor
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_wpwws_widget
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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
The following issues need your attention
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wp-webcam-widget-shortcode/wordpress-webcam.php
    • > /wp-content/plugins/wp-webcam-widget-shortcode/shortcode_info.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
    • > GET request to /wp-admin/miksco.php?page=wpw
    • > Network (severe)
    wp-admin/miksco.php?page=wpw - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 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
Please fix the following attributes:
  • Contributors: The plugin contributors field is not present
The official readme.txt is a good inspiration

wp-webcam-widget-shortcode/wordpress-webcam.php 77% from 13 tests

The main PHP file in "Wordpress Live Webcam Widget & Shortcode" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-webcam-widget-shortcode.php" instead of "wordpress-webcam.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 171 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin187 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP22915135
PO File1111152

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin