83% wp-admin-help-videos

Code Review | WP Admin Help Videos

WordPress plugin WP Admin Help Videos scored83%from 54 tests.

About plugin

  • Plugin page: wp-admin-help-videos
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.5
  • WordPress version: 6.3.1
  • First release: Sep 17, 2020
  • Latest release: Sep 18, 2020
  • Number of updates: 8
  • Update frequency: every 0.1 days
  • Top authors: raiserweb (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /376 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
Installer ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▼0.16ms] Passed 4 tests

An overview of server-side resources used by WP Admin Help Videos
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1338.19 ▼4.99
Dashboard /wp-admin3.44 ▲0.1447.86 ▼8.97
Posts /wp-admin/edit.php3.55 ▲0.1951.88 ▲5.60
Add New Post /wp-admin/post-new.php6.04 ▲0.1591.78 ▲7.72
Media Library /wp-admin/upload.php3.36 ▲0.1338.62 ▲8.32
Video Controls /wp-admin/admin.php?page=wpahv-video-controls3.2825.73

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for WP Admin Help Videos
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,910 ▲16413.91 ▼0.471.66 ▼0.3142.79 ▼2.53
Dashboard /wp-admin2,316 ▲1315.53 ▲0.69124.19 ▲7.5536.22 ▼9.23
Posts /wp-admin/edit.php2,210 ▲1212.75 ▲0.7142.86 ▲6.4133.11 ▼2.58
Add New Post /wp-admin/post-new.php1,617 ▲10323.41 ▲5.91634.03 ▼42.4234.80 ▼24.10
Media Library /wp-admin/upload.php1,506 ▲1214.82 ▲0.6099.37 ▼4.2140.48 ▼5.62
Video Controls /wp-admin/admin.php?page=wpahv-video-controls1572.1512.229.78

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

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 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
    • > GET request to /wp-admin/admin.php?page=wpahv-video-controls
    • > 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: Cannot read properties of undefined (reading 'getDisplayMedia')" "TypeError: Cannot read properties of undefined (reading 'getDisplayMedia')\n at start_recording (/wp-content/plugins/wp-admin-help-videos/assets/js/wpahv-video-training.js?ver=6.3.1:325:37)\n at HTMLSpanElement.\u003Canonymous> (/wp-content/plugins/wp-admin-help-videos/assets/js/wpahv-video-training.js?ver=6.3.1:75:3)\n at HTMLSpanElement.dispatch (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:39997)\n at v.handle (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:37968)\n at Object.trigger (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:70063)\n at HTMLSpanElement.\u003Canonymous> (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:70665)\n at Function.each (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:3129)\n at e.\u003Ccomputed>.each (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:1594)\n at e.\u003Ccomputed>.trigger (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:70640)\n at e.\u003Ccomputed>.\u003Canonymous> (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:5:10514)" undefined
    • > GET request to /wp-admin/admin.php?page=wpahv-video-controls
    • > 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: Cannot read properties of undefined (reading 'getDisplayMedia')

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: help-videos, training-videos, admin-videos

wp-admin-help-videos/wp-admin-help-videos.php 77% from 13 tests

The main PHP script in "WP Admin Help Videos" version 1.0.2 is automatically included on every request by WordPress
The following require your attention:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters
  • Domain Path: The domain path should use only dashes and lowercase characters ("languages")
  • Domain Path: Please prefix the domain path with a forward slash character ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin16,850 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript72,5393,10016,124
PHP622966622
CSS150104

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity10.17
▷ Minimum class complexity3.00
▷ Maximum class complexity20.00
Average method complexity2.36
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods39
▷ Static methods410.26%
▷ Public methods3487.18%
▷ Protected methods00.00%
▷ Private methods512.82%
Functions7
▷ Named functions00.00%
▷ Anonymous functions7100.00%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin