10% agile-video-player

Code Review | Agile Video Player Lite

WordPress plugin Agile Video Player Lite scored10%from 54 tests.

About plugin

  • Plugin page: agile-video-player
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1.1
  • WordPress version: 6.3.1
  • First release: Mar 4, 2015
  • Latest release: Mar 9, 2015
  • Number of updates: 3
  • Update frequency: every 2.3 days
  • Top authors: woracal (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /1,256 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/agile-video-player/admin.php+257
    Trying to access array offset on value of type bool

Server metrics [RAM: ▲0.74MB] [CPU: ▼7.63ms] Passed 4 tests

This is a short check of server-side resources used by Agile Video Player Lite
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.33 ▲0.8739.99 ▼0.64
Dashboard /wp-admin4.13 ▲0.8237.07 ▼15.20
Posts /wp-admin/edit.php4.18 ▲0.8244.06 ▼0.09
Add New Post /wp-admin/post-new.php6.34 ▲0.4573.86 ▼11.88
Media Library /wp-admin/upload.php4.10 ▲0.8733.88 ▼2.79
Actions /wp-admin/admin.php?page=prash_get_full_video_code4.0934.17
Actions /wp-admin/admin.php?page=prash_add_fblike_do4.0934.31
Actions /wp-admin/admin.php?page=prash_get_video_shortcode4.0932.85
Actions /wp-admin/admin.php?page=prash_add_timed_optin_form4.0931.86
Actions /wp-admin/admin.php?page=prash_delete_optin_do4.0937.00
Actions /wp-admin/admin.php?page=prash_add_cta4.0932.87
Actions /wp-admin/admin.php?page=prash_add_video4.0933.98
Actions /wp-admin/admin.php?page=prash_edit_video4.0935.05
Actions /wp-admin/admin.php?page=prash_delete_video_do4.0934.72
Actions /wp-admin/admin.php?page=prash_edit_video_do4.0932.26

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 138 new files
Database: 4 new tables, 8 new options
New tables
wp_prash_videos
wp_prash_actions
wp_prash_relations
wp_prash_optins
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
agileplayer_db_version
agileplayer_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Agile Video Player Lite
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,104 ▲36915.46 ▲1.085.75 ▲4.0840.92 ▼3.58
Dashboard /wp-admin2,426 ▲2386.71 ▲0.85137.02 ▲19.1142.37 ▼2.14
Posts /wp-admin/edit.php2,342 ▲2533.68 ▲1.6456.75 ▲22.5634.41 ▼1.67
Add New Post /wp-admin/post-new.php1,597 ▲8318.63 ▲1.17588.04 ▼108.4534.85 ▼45.99
Media Library /wp-admin/upload.php1,478 ▲874.46 ▲0.2485.28 ▼16.1741.99 ▼2.99
Actions /wp-admin/admin.php?page=prash_get_full_video_code1,0753.5643.0260.19
Actions /wp-admin/admin.php?page=prash_add_fblike_do6891.7011.0424.54
Actions /wp-admin/admin.php?page=prash_get_video_shortcode1,0553.5545.3624.16
Actions /wp-admin/admin.php?page=prash_add_timed_optin_form1,5893.8947.4532.87
Actions /wp-admin/admin.php?page=prash_delete_optin_do6811.529.6617.71
Actions /wp-admin/admin.php?page=prash_add_cta1,0233.3940.0120.58
Actions /wp-admin/admin.php?page=prash_add_video1,5623.9262.6830.27
Actions /wp-admin/admin.php?page=prash_edit_video1,0283.3142.1421.22
Actions /wp-admin/admin.php?page=prash_delete_video_do6811.709.2816.97
Actions /wp-admin/admin.php?page=prash_edit_video_do1,0293.3953.9225.17

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 4 tables in the database
    • wp_prash_relations
    • wp_prash_optins
    • wp_prash_actions
    • wp_prash_videos
  • The uninstall procedure has failed, leaving 8 options in the database
    • widget_theysaidso_widget
    • agileplayer_options
    • widget_recent-comments
    • agileplayer_db_version
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
  • 10 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=prash_edit_video_do
    • > User deprecated in wp-includes/functions.php+5828
    Hook contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead.
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=prash_delete_video_do
    • > Notice in wp-content/plugins/agile-video-player/app.php+6538
    Undefined index: video
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=prash_get_full_video_code
    • > Notice in wp-content/plugins/agile-video-player/app.php+7416
    Trying to get property 'youtube' of non-object
    • > GET request to /wp-admin/admin.php?page=prash_get_full_video_code
    • > Notice in wp-content/plugins/agile-video-player/app.php+7415
    Trying to get property 'vid' of non-object
    • > GET request to /wp-admin/admin.php?page=prash_get_full_video_code
    • > Notice in wp-content/plugins/agile-video-player/app.php+7417
    Trying to get property 'width' of non-object
    • > GET request to /wp-admin/admin.php?page=prash_get_full_video_code
    • > Notice in wp-content/plugins/agile-video-player/app.php+7418
    Trying to get property 'height' of non-object
    • > GET request to /wp-admin/admin.php?page=prash_get_full_video_code
    • > Notice in wp-content/plugins/agile-video-player/app.php+7419
    Trying to get property 'autoplay' of non-object
    • > GET request to /wp-admin/admin.php?page=prash_get_full_video_code
    • > Notice in wp-content/plugins/agile-video-player/app.php+7421
    Trying to get property 'controls' of non-object
    • > GET request to /wp-admin/admin.php?page=prash_get_full_video_code
    • > Notice in wp-content/plugins/agile-video-player/app.php+7423
    Trying to get property 'auto_hide_cb' of non-object
    • > GET request to /wp-admin/admin.php?page=prash_get_full_video_code
    • > Notice in wp-content/plugins/agile-video-player/app.php+7425
    Trying to get property 'theme' of non-object
    • > GET request to /wp-admin/admin.php?page=prash_get_full_video_code
    • > Notice in wp-content/plugins/agile-video-player/app.php+7427
    Trying to get property 'vbordercolor' of non-object
    • > GET request to /wp-admin/admin.php?page=prash_get_full_video_code
    • > Notice in wp-content/plugins/agile-video-player/app.php+7429
    Trying to get property 'dim' of non-object
    • > GET request to /wp-admin/admin.php?page=prash_get_full_video_code
    • > Notice in wp-content/plugins/agile-video-player/app.php+7431
    Trying to get property 'social_share' of non-object
    • > GET request to /wp-admin/admin.php?page=prash_get_full_video_code
    • > Notice in wp-content/plugins/agile-video-player/app.php+7433
    Trying to get property 'logo_brand_code' of non-object
    • > GET request to /wp-admin/admin.php?page=prash_get_full_video_code
    • > Notice in wp-content/plugins/agile-video-player/app.php+7435
    Trying to get property 'logo_pick' of non-object
    • > GET request to /wp-admin/admin.php?page=prash_get_full_video_code
    • > Notice in wp-content/plugins/agile-video-player/app.php+7437
    Trying to get property 'logo_link' of non-object
    • > GET request to /wp-admin/admin.php?page=prash_get_full_video_code
    • > Notice in wp-content/plugins/agile-video-player/app.php+7439
    Trying to get property 'logo_ps' of non-object
    • > GET request to /wp-admin/admin.php?page=prash_get_full_video_code
    • > Notice in wp-content/plugins/agile-video-player/app.php+7486
    Undefined variable: yt_video_full
    • > GET request to /wp-admin/admin.php?page=prash_add_fblike_do
    • > Notice in wp-content/plugins/agile-video-player/app.php+5635
    Undefined index: fbappid
    • > GET request to /wp-admin/admin.php?page=prash_add_fblike_do
    • > Notice in wp-content/plugins/agile-video-player/app.php+5637
    Undefined index: seconds
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=prash_add_fblike_do
    • > Notice in wp-content/plugins/agile-video-player/app.php+5695
    Undefined index: video_id
    • > GET request to /wp-admin/admin.php?page=prash_add_fblike_do
    • > Notice in wp-content/plugins/agile-video-player/app.php+5697
    Undefined index: in_seconds
    • > GET request to /wp-admin/admin.php?page=prash_add_fblike_do
    • > Notice in wp-content/plugins/agile-video-player/app.php+5698
    Undefined index: skipfblike
    • > GET request to /wp-admin/admin.php?page=prash_add_fblike_do
    • > Notice in wp-content/plugins/agile-video-player/app.php+5699
    Undefined index: fb_skip_text
    • > GET request to /wp-admin/admin.php?page=prash_add_fblike_do
    • > Notice in wp-content/plugins/agile-video-player/app.php+5700
    Undefined index: fb_skip_text_color
    • > GET request to /wp-admin/admin.php?page=prash_add_fblike_do
    • > Notice in wp-content/plugins/agile-video-player/app.php+5701
    Undefined index: fb_title
    • > GET request to /wp-admin/admin.php?page=prash_add_fblike_do
    • > Notice in wp-content/plugins/agile-video-player/app.php+5702
    Undefined index: fb_tcolor
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=prash_delete_video_do
    • > Warning in wp-includes/pluggable.php+1438
    Cannot modify header information - headers already sent by (output started at wp-includes/script-loader.php:2838)
    • > GET request to /wp-admin/admin.php?page=prash_add_timed_optin_form
    • > Notice in wp-content/plugins/agile-video-player/app.php+5230
    Undefined index: mode
    • > GET request to /wp-admin/admin.php?page=prash_add_timed_optin_form
    • > Notice in wp-content/plugins/agile-video-player/app.php+5315
    Trying to get property 'title' of non-object
    • > GET request to /wp-admin/admin.php?page=prash_delete_optin_do
    • > Notice in wp-content/plugins/agile-video-player/app.php+1164
    Undefined index: id
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=prash_delete_video_do
    • > User notice in wp-includes/functions.php+5905
    Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
    • > GET request to /wp-admin/admin.php?page=prash_add_cta
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'prash_add_cta_form' not found or invalid function name
    • > GET request to /wp-admin/admin.php?page=prash_edit_video_do
    • > Notice in wp-content/plugins/agile-video-player/app.php+6607
    Undefined index: youtube_url

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/agile-video-player/editor.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/agile-video-player/app.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/agile-video-player/admin.php:8

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=prash_edit_video_do
    • > Network (severe)
    wp-content/plugins/agile-video-player/my-script.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: These screenshots require images: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
Please take inspiration from this readme.txt

agile-video-player/app.php 92% from 13 tests

The main file in "Agile Video Player Lite" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("agile-video-player.php" instead of "app.php")

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
There were no executable files found in this plugin9,118 lines of code in 87 files:
LanguageFilesBlank linesComment linesLines of code
PHP33,4806837,632
SVG600695
JavaScript6298198443
CSS1368157337
HTML1008
Markdown2103

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.56
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods20100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions62
▷ Named functions62100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
9 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/share_video.png0.29KB0.22KB▼ 24.16%
images/gplus.png2.19KB1.65KB▼ 24.72%
images/dim.png0.12KB0.09KB▼ 20.66%
images/close.png1.39KB1.13KB▼ 18.88%
images/tw.png2.00KB1.58KB▼ 20.94%