72% video-list-manager

Code Review | Video List Manager

WordPress plugin Video List Manager scored72%from 54 tests.

About plugin

  • Plugin page: video-list-manager
  • Plugin version: 1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.4.1
  • WordPress version: 6.3.1
  • First release: Sep 29, 2012
  • Latest release: May 23, 2020
  • Number of updates: 78
  • Update frequency: every 35.8 days
  • Top authors: thanhtungtnt (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

200+ active /20,071 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.31MB] [CPU: ▼4.01ms] Passed 4 tests

An overview of server-side resources used by Video List Manager
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.76 ▲0.2947.67 ▲4.18
Dashboard /wp-admin3.67 ▲0.3756.41 ▲2.14
Posts /wp-admin/edit.php3.72 ▲0.3651.63 ▼4.03
Add New Post /wp-admin/post-new.php6.19 ▲0.3088.17 ▼16.76
Media Library /wp-admin/upload.php3.53 ▲0.3043.94 ▲2.63
Add Cateogry /wp-admin/admin.php?page=tnt_video_cat_add_page3.4837.68
About Author /wp-admin/admin.php?page=tnt_video_rate_page3.4832.51
Edit Video /wp-admin/admin.php?page=tnt_video_edit_page3.4835.24
Delete Video /wp-admin/admin.php?page=tnt_video_del_page3.4836.01
Edit Category /wp-admin/admin.php?page=tnt_video_cat_edit_page3.4832.46
Settings /wp-admin/admin.php?page=tnt_video_option_page3.4833.99
Add Video /wp-admin/admin.php?page=tnt_video_add_page3.4832.33
Categories /wp-admin/admin.php?page=tnt_video_cat_manager_page3.4833.07
Videos Manager /wp-admin/admin.php?page=tnt_video_manage_page3.4833.42
Delete Category /wp-admin/admin.php?page=tnt_video_cat_del_page3.4832.16

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 66 new files
Database: 3 new tables, 8 new options
New tables
wp_tnt_videos
wp_tnt_videos_cat
wp_tnt_videos_type
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
tnt_video_list_manager_db_version
theysaidso_admin_options
tntVideoManageOptions

Browser metrics Passed 4 tests

Checking browser requirements for Video List Manager
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,091 ▲33013.67 ▼0.8714.69 ▲12.6650.68 ▲4.35
Dashboard /wp-admin2,249 ▲695.75 ▲0.18102.80 ▲7.1584.22 ▲41.73
Posts /wp-admin/edit.php2,174 ▲712.10 ▲0.1538.26 ▼4.9035.82 ▼1.70
Add New Post /wp-admin/post-new.php1,581 ▲5323.39 ▲0.50683.40 ▲31.0557.75 ▲3.64
Media Library /wp-admin/upload.php1,465 ▲654.40 ▲0.20115.75 ▲2.8869.92 ▲21.47
Add Cateogry /wp-admin/admin.php?page=tnt_video_cat_add_page8891.6925.9328.15
About Author /wp-admin/admin.php?page=tnt_video_rate_page9102.1228.8427.50
Edit Video /wp-admin/admin.php?page=tnt_video_edit_page7331.516.7522.48
Delete Video /wp-admin/admin.php?page=tnt_video_del_page7331.126.9521.95
Edit Category /wp-admin/admin.php?page=tnt_video_cat_edit_page7331.127.1019.82
Settings /wp-admin/admin.php?page=tnt_video_option_page1,1541.9032.0329.72
Add Video /wp-admin/admin.php?page=tnt_video_add_page1,0201.7427.0128.55
Categories /wp-admin/admin.php?page=tnt_video_cat_manager_page9372.1927.2523.66
Videos Manager /wp-admin/admin.php?page=tnt_video_manage_page1,1111.7429.6226.90
Delete Category /wp-admin/admin.php?page=tnt_video_cat_del_page7331.517.4919.05

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
  • 10 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=tnt_video_cat_del_page
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
  • 10 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=tnt_video_cat_del_page
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=tnt_video_option_page
    • > request to
    • > Notice in wp-config.php+20
    Undefined index: REQUEST_METHOD

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/video-list-manager/includes/menus.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/video-list-manager/includes/message.php:26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/video-list-manager/video-list-manager.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/video-list-manager/includes/shortcode.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/video-list-manager/includes/template.php:9

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=tnt_video_manage_page
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/video-list-manager/js/admin.js?ver=1.0:48:24)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=tnt_video_manage_page
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Contributors: The plugin contributors field is missing
The official readme.txt is a good inspiration

video-list-manager/video-list-manager.php 92% from 13 tests

The principal PHP file in "Video List Manager" v. 1.7 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 265 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
There were no executable files found in this plugin4,621 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PHP142404592,443
JavaScript53031761,893
CSS72563285

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.31
Average class complexity22.75
▷ Minimum class complexity12.00
▷ Maximum class complexity38.00
Average method complexity2.98
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods44
▷ Static methods511.36%
▷ Public methods44100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions39
▷ Named functions39100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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
29 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/skin2/images/controls.png0.56KB0.57KB0.00%
css/skin4/images/border2.png0.17KB0.16KB▼ 2.35%
css/skin4/images/ie6/borderBottomRight.png0.46KB0.54KB0.00%
css/skin4/images/ie6/borderMiddleRight.png0.14KB0.16KB0.00%
css/skin5/images/controls.png1.99KB2.04KB0.00%