66% cm-video-lesson-manager

Code Review | Video Lessons Manager - Best Video Course LMS

WordPress plugin Video Lessons Manager - Best Video Course LMS scored 66% from 54 tests.

About plugin

  • Plugin page: cm-video-lesson-m...
  • Plugin version: 1.7.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4.0-5.9
  • WordPress version: 5.9.2
  • First release: Mar 14, 2015
  • Latest release: Jan 26, 2022
  • Number of updates: 343
  • Update frequency: every 7.3 days
  • Top authors: CreativeMindsSolutions (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active / 17,453 total downloads

Benchmarks

Plugin footprint 82% 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: ▲1.40MB] [CPU: ▼284.83ms] 75% from 4 tests

A check of server-side resources used by Video Lessons Manager - Best Video Course LMS
The following require your attention
  • CPU: You should keep total CPU usage under 500.00ms (currently 1,410.47ms on /wp-admin/admin.php?page=cmvl-settings)
PageMemory (MB)CPU Time (ms)
Home /4.92 ▲1.4174.32 ▲23.88
Dashboard /wp-admin4.77 ▲1.3743.24 ▲8.69
Posts /wp-admin/edit.php5.06 ▲1.4347.57 ▲3.87
Add New Post /wp-admin/post-new.php8.39 ▲1.43103.46 ▼1,154.17
Media Library /wp-admin/upload.php4.72 ▲1.4232.45 ▲2.28
User Guide /wp-admin/admin.php?page=CMVL_about4.8231.65
Channels /wp-admin/edit.php?post_type=cmvl_channel4.7737.23
Upgrade ➤ /wp-admin/admin.php?page=CMVL_pro4.7132.66
Settings /wp-admin/admin.php?page=cmvl-settings5.001,410.47

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 129 new files
Database: no new tables, 6 new options
New WordPress options
cmvl_update_methods
cmvl_vimeo_privacy_cache_sec
CMVL_trigger_flush_rewrite
cmvl_category_children
CMVLplugin_error
cmvl_vimeo_cache_sec

Browser metrics Passed 4 tests

An overview of browser requirements for Video Lessons Manager - Best Video Course LMS
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,877 ▲13316.29 ▲0.336.99 ▲1.202.73 ▲0.54
Dashboard /wp-admin2,972 ▲1116.29 ▲0.22115.73 ▼17.54184.80 ▲26.53
Posts /wp-admin/edit.php2,767 ▲733.30 ▲0.0766.41 ▲1.98160.87 ▲16.77
Add New Post /wp-admin/post-new.php1,712 ▼4015.69 ▼5.63445.02 ▼12.39157.41 ▲1.83
Media Library /wp-admin/upload.php1,772 ▲745.60 ▲0.09140.66 ▼2.39202.74 ▲11.93
User Guide /wp-admin/admin.php?page=CMVL_about5,59013.67361.58317.76
Channels /wp-admin/edit.php?post_type=cmvl_channel1,4613.2161.99138.00
Upgrade ➤ /wp-admin/admin.php?page=CMVL_pro1,7583.4065.66132.29
Settings /wp-admin/admin.php?page=cmvl-settings3,4876.26133.68208.41

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 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 were found after uninstall: 6 options
    • cmvl_update_methods
    • cmvl_vimeo_privacy_cache_sec
    • CMVLplugin_error
    • cmvl_category_children
    • CMVL_trigger_flush_rewrite
    • cmvl_vimeo_cache_sec

Smoke tests 0% 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
    • > GET request to /wp-admin/admin.php?page=CMVL_about
    • > Warning in wp-content/plugins/cm-video-lesson-manager/package/cminds-free.php+3001
    mysqli_get_server_info() expects exactly 1 parameter, 0 given

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 6× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/cm-video-lesson-manager/view/frontend/dashboard/dashboard.php
    • > /wp-content/plugins/cm-video-lesson-manager/view/frontend/playlist/navbar.php
    • > /wp-content/plugins/cm-video-lesson-manager/view/backend/channelreports/report-index.php
    • > /wp-content/plugins/cm-video-lesson-manager/view/backend/settings/test-configuration.php
    • > /wp-content/plugins/cm-video-lesson-manager/view/backend/settings/test-configuration-error.php
    • > /wp-content/plugins/cm-video-lesson-manager/view/frontend/channel/single_content.php
  • 77× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'com\\cminds\\videolesson\\controller\\Controller' not found in wp-content/plugins/cm-video-lesson-manager/controller/AddSettingsTabsController.php:8
    • > PHP Notice
      Undefined variable: albums in wp-content/plugins/cm-video-lesson-manager/view/backend/settings/test-configuration.php on line 32
    • > PHP Fatal error
      Uncaught Error: Class 'com\\cminds\\videolesson\\model\\Labels' not found in wp-content/plugins/cm-video-lesson-manager/view/backend/settings/experts.php:6
    • > PHP Notice
      Undefined variable: tabs in wp-content/plugins/cm-video-lesson-manager/view/frontend/dashboard/dashboard.php on line 10
    • > PHP Fatal error
      Uncaught Error: Class 'com\\cminds\\videolesson\\model\\Labels' not found in wp-content/plugins/cm-video-lesson-manager/view/frontend/channel/channels-list.php:31
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/cm-video-lesson-manager/view/backend/channel/choose-channel-meta-box.php:66
    • > PHP Notice
      Undefined variable: content in wp-content/plugins/cm-video-lesson-manager/view/frontend/channel/single_content.php on line 2
    • > PHP Fatal error
      Uncaught Error: Class 'com\\cminds\\videolesson\\model\\Labels' not found in wp-content/plugins/cm-video-lesson-manager/view/frontend/instantpayments/paybox-form.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'com\\cminds\\videolesson\\controller\\Controller' not found in wp-content/plugins/cm-video-lesson-manager/controller/SettingsController.php:15
    • > PHP Notice
      Undefined variable: total_pages in wp-content/plugins/cm-video-lesson-manager/view/frontend/playlist/pagination.php on line 5

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=CMVL_about
    • > Console-api (severe) in unknown
    https://static.xx.fbcdn.net/rsrc.php/v3/yY/r/aI1eXhTqbs-.js?_nc_x=Ij3Wp8lg5Kz 57:562 "ErrorUtils caught an error:\n\nCannot listen to an undefined element. [Caught in: Tried to listen to element of type click]\n\nSubsequent non-fatal errors won't be logged; see https://fburl.com/debugjs."
    • > GET request to /wp-admin/admin.php?page=cmvl-settings
    • > Other (warning) in unknown
    /wp-admin/admin.php?page=cmvl-settings 864 Allow attribute will take precedence over 'allowfullscreen'.

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: elearning, video, video lessons, video gallery, tutorials

cm-video-lesson-manager/cm-video-lesson-manager.php 92% from 13 tests

The entry point to "Video Lessons Manager - Best Video Course LMS" version 1.7.2 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 163 characters long)

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
Everything looks great! No dangerous files found in this plugin9,525 lines of code in 84 files:
LanguageFilesBlank linesComment linesLines of code
PHP721,8117448,003
CSS51293867
JavaScript710136655

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity20.61
▷ Minimum class complexity1.00
▷ Maximum class complexity251.00
Average method complexity2.78
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces10
Interfaces2
Traits0
Classes36
▷ Abstract classes719.44%
▷ Concrete classes2980.56%
▷ Final classes00.00%
Methods423
▷ Static methods18944.68%
▷ Public methods37488.42%
▷ Protected methods4610.87%
▷ Private methods30.71%
Functions7
▷ Named functions00.00%
▷ Anonymous functions7100.00%
Constants145
▷ Global constants10.69%
▷ Class constants14499.31%
▷ Public constants144100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
36 PNG files occupy 0.50MB with 0.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
package/css/images/ui-bg_glass_75_e6e6e6_1x400.png0.26KB0.15KB▼ 42.37%
package/views/img/v2.png0.38KB0.37KB▼ 1.79%
package/css/images/ui-icons_222222_256x240.png6.76KB4.17KB▼ 38.24%
package/views/img/circle.png10.91KB4.69KB▼ 57.01%
package/views/downloads.png34.70KB9.25KB▼ 73.35%