84% accessible-video-library

Code Review | Accessible Video Library

WordPress plugin Accessible Video Library scored 84% from 54 tests.

About plugin

  • Plugin page: accessible-video-...
  • Plugin version: 1.2.1
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-4.9
  • WordPress version: 6.3.1
  • First release: Nov 26, 2013
  • Latest release: Jul 15, 2018
  • Number of updates: 51
  • Update frequency: every 33.2 days
  • Top authors: joedolson (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active / 7,316 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.06MB] [CPU: ▼8.86ms] Passed 4 tests

This is a short check of server-side resources used by Accessible Video Library
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0839.17 ▼3.77
Dashboard /wp-admin3.36 ▲0.0645.73 ▼0.59
Posts /wp-admin/edit.php3.41 ▲0.0645.57 ▼4.81
Add New Post /wp-admin/post-new.php5.49 ▼0.4067.66 ▼25.42
Media Library /wp-admin/upload.php3.28 ▲0.0536.73 ▼1.43
Videos /wp-admin/edit.php?post_type=avl-video3.3334.43
Add New /wp-admin/post-new.php?post_type=avl-video3.3042.70
Video Categories /wp-admin/edit-tags.php?taxonomy=avl_category_avl-video&post_type=avl-video3.2833.09
Video Help/Settings /wp-admin/edit.php?post_type=avl-video&page=avl-help3.2630.79

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
avl_version
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Accessible Video Library: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,842 ▲10713.59 ▼1.031.66 ▼0.0640.11 ▼0.84
Dashboard /wp-admin2,234 ▲465.86 ▼0.05121.68 ▲17.0176.89 ▲34.64
Posts /wp-admin/edit.php2,126 ▲372.01 ▼0.0034.20 ▲1.0434.07 ▼0.57
Add New Post /wp-admin/post-new.php1,705 ▲17122.31 ▼0.88732.84 ▲79.5053.40 ▼18.13
Media Library /wp-admin/upload.php1,425 ▲374.13 ▼0.1995.60 ▼20.8944.77 ▼3.13
Videos /wp-admin/edit.php?post_type=avl-video1,1552.0638.5030.10
Add New /wp-admin/post-new.php?post_type=avl-video2,5427.77177.53135.75
Video Categories /wp-admin/edit-tags.php?taxonomy=avl_category_avl-video&post_type=avl-video1,2962.1426.0329.05
Video Help/Settings /wp-admin/edit.php?post_type=avl-video&page=avl-help1,2333.3974.5541.42

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • avl_version
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/post-new.php?post_type=avl-video
    • > User notice in wp-includes/functions.php+5905
    Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: i18n, subtitles, transcription, captions, video...

accessible-video-library/accessible-video-library.php Passed 13 tests

"Accessible Video Library" version 1.2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
72 characters long description:
Accessible video library manager. Write transcripts and upload captions.

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
There were no executable files found in this plugin1,109 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP299295870
PO File17573159
JavaScript28966
CSS20014

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions41
▷ Named functions41100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/avl-video.png0.78KB0.86KB0.00%