83% live-video-annotation

Code Review | Live Video Annotation

WordPress plugin Live Video Annotation scored83%from 54 tests.

About plugin

  • Plugin page: live-video-annota...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.2-3.4.2
  • WordPress version: 6.3.1
  • First release: Oct 6, 2012
  • Latest release: Oct 6, 2012
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: andrex84 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,769 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼2.68ms] Passed 4 tests

Analyzing server-side resources used by Live Video Annotation
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0541.86 ▲2.21
Dashboard /wp-admin3.35 ▲0.0449.91 ▼3.49
Posts /wp-admin/edit.php3.40 ▲0.0451.90 ▲2.83
Add New Post /wp-admin/post-new.php5.93 ▲0.0497.64 ▼6.95
Media Library /wp-admin/upload.php3.27 ▲0.0436.33 ▼2.48

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Live Video Annotation
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.70 ▼1.051.77 ▼0.1544.84 ▲1.55
Dashboard /wp-admin2,206 ▲214.80 ▼0.08106.12 ▼33.8042.17 ▼5.61
Posts /wp-admin/edit.php2,089 ▼02.04 ▼0.0145.58 ▲7.2834.27 ▼0.04
Add New Post /wp-admin/post-new.php1,533 ▲1423.36 ▼0.06644.83 ▼40.1754.73 ▼7.99
Media Library /wp-admin/upload.php1,382 ▼64.26 ▲0.13100.73 ▼15.7545.16 ▼3.29

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

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
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/live-video-annotation/videoannotation.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: There are too many tags (11 tag instead of maximum 10)
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === live-video-annotation === )
Please take inspiration from this readme.txt

live-video-annotation/videoannotation.php 85% from 13 tests

"Live Video Annotation" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("live-video-annotation.php" instead of "videoannotation.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 350 characters long)

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
Good job! No executable or dangerous file extensions detected1,189 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2182232919
CSS1441142
PHP18139128

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
No PNG images were found in this plugin