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: 5.9.2
  • 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 / 6,487 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

An overview of server-side resources used by Accessible Video Library
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.76 ▲0.2561.86 ▲13.87
Dashboard /wp-admin3.60 ▲0.2035.81 ▲3.45
Posts /wp-admin/edit.php3.83 ▲0.1941.99 ▲0.76
Add New Post /wp-admin/post-new.php6.23 ▼0.7485.57 ▼1,183.80
Media Library /wp-admin/upload.php3.49 ▲0.1923.99 ▼6.21
Video Help/Settings /wp-admin/edit.php?post_type=avl-video&page=avl-help3.4629.97
Videos /wp-admin/edit.php?post_type=avl-video3.5927.03
Video Categories /wp-admin/edit-tags.php?taxonomy=avl_category_avl-video&post_type=avl-video3.4924.72
Add New /wp-admin/post-new.php?post_type=avl-video3.7437.98

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, 1 new option
New WordPress options
avl_version

Browser metrics Passed 4 tests

Checking browser requirements for Accessible Video Library
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,818 ▲7416.14 ▲0.576.04 ▲0.152.63 ▲0.38
Dashboard /wp-admin2,943 ▲896.15 ▼0.04120.29 ▼16.97218.60 ▲56.84
Posts /wp-admin/edit.php2,706 ▲123.14 ▼0.1064.92 ▲1.93144.94 ▲3.19
Add New Post /wp-admin/post-new.php1,697 ▼6316.07 ▼0.93397.18 ▼20.76178.86 ▲21.37
Media Library /wp-admin/upload.php1,743 ▲425.48 ▼0.06122.25 ▼22.87207.37 ▲20.36
Video Help/Settings /wp-admin/edit.php?post_type=avl-video&page=avl-help1,5723.73102.83154.19
Videos /wp-admin/edit.php?post_type=avl-video1,4933.1659.87126.57
Video Categories /wp-admin/edit-tags.php?taxonomy=avl_category_avl-video&post_type=avl-video1,6722.5855.52113.03
Add New /wp-admin/post-new.php?post_type=avl-video3,34310.26189.92258.26

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • avl_version

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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+5768
    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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
7 plugin tags: transcription, subtitles, l10n, i18n, captions...

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 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this 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

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
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

Often times overlooked, PNG files can occupy unnecessary space in 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%