73% android-webcam-and-timelapse

Code Review | LiveCam + Timelapse for Wordpress and Android

WordPress plugin LiveCam + Timelapse for Wordpress and Android scored73%from 54 tests.

About plugin

  • Plugin page: android-webcam-an...
  • Plugin version: 1...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Feb 28, 2014
  • Latest release: Mar 1, 2014
  • Number of updates: 7
  • Update frequency: every 0.3 days
  • Top authors: vicbusiness (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /6,085 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼1.98MB] [CPU: ▼56.61ms] Passed 4 tests

This is a short check of server-side resources used by LiveCam + Timelapse for Wordpress and Android
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.05 ▼1.465.86 ▼36.35
Dashboard /wp-admin2.07 ▼1.285.32 ▼52.73
Posts /wp-admin/edit.php2.07 ▼1.335.58 ▼45.45
Add New Post /wp-admin/post-new.php2.07 ▼3.865.14 ▼91.92
Media Library /wp-admin/upload.php2.07 ▼1.204.89 ▼31.94

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for LiveCam + Timelapse for Wordpress and Android
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲2114.35 ▼0.312.01 ▲0.2744.30 ▼1.83
Dashboard /wp-admin2,201 ▲275.57 ▼0.0084.18 ▼0.4638.12 ▼2.43
Posts /wp-admin/edit.php2,109 ▲92.02 ▼0.0133.98 ▼1.9035.68 ▼1.24
Add New Post /wp-admin/post-new.php1,532 ▲423.28 ▲0.24633.64 ▼15.9361.42 ▲9.53
Media Library /wp-admin/upload.php1,406 ▲34.25 ▲0.0396.14 ▼3.5244.79 ▼0.10

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin cannot be uninstalled
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the livecamjs handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

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 fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/android-webcam-and-timelapse/livecam.vicbusiness.com.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === android-webcam-and-timelapse === )
You can take inspiration from this readme.txt

android-webcam-and-timelapse/livecam.vicbusiness.com.php 85% from 13 tests

The entry point to "LiveCam + Timelapse for Wordpress and Android" version 1... is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Version: Use periods and digits only for your plugin's version number (ex. "1.0.3" instead of "1...")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("android-webcam-and-timelapse.php" instead of "livecam.vicbusiness.com.php")

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
No dangerous file extensions were detected4,180 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript31,0422,6853,522
CSS217180574
SVG10065
PHP141219

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin