84% elearning-video-player

Code Review | Elearning Video Player

WordPress plugin Elearning Video Player scored84%from 54 tests.

About plugin

  • Plugin page: elearning-video-p...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.6
  • WordPress version: 6.3.1
  • First release: Aug 3, 2016
  • Latest release: Sep 20, 2016
  • Number of updates: 6
  • Update frequency: every 8.0 days
  • Top authors: lequanghuylc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,476 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼2.13ms] Passed 4 tests

Server-side resources used by Elearning Video Player
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0943.53 ▲5.00
Dashboard /wp-admin3.39 ▲0.0851.06 ▲1.25
Posts /wp-admin/edit.php3.44 ▲0.0848.02 ▲0.08
Add New Post /wp-admin/post-new.php5.97 ▲0.0887.82 ▼7.82
Media Library /wp-admin/upload.php3.31 ▲0.0836.12 ▼2.04
E-Video Categories /wp-admin/edit-tags.php?taxonomy=evideolqh-categories&post_type=evideolqh3.3033.92
Add Video /wp-admin/post-new.php?post_type=evideolqh3.3548.66
Elearning Videos /wp-admin/edit.php?post_type=evideolqh3.3538.24

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Elearning Video Player
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲6313.67 ▼0.721.98 ▼0.1243.96 ▲0.29
Dashboard /wp-admin2,237 ▲495.80 ▲0.93115.50 ▲12.4539.01 ▼5.06
Posts /wp-admin/edit.php2,120 ▲311.98 ▼0.0735.19 ▼3.7633.21 ▲1.73
Add New Post /wp-admin/post-new.php1,563 ▲2123.21 ▲4.89611.96 ▼13.3949.81 ▼6.84
Media Library /wp-admin/upload.php1,419 ▲284.20 ▲0.0297.02 ▼18.8344.48 ▼7.76
E-Video Categories /wp-admin/edit-tags.php?taxonomy=evideolqh-categories&post_type=evideolqh1,2962.1427.8030.89
Add Video /wp-admin/post-new.php?post_type=evideolqh1,8852.8357.2350.01
Elearning Videos /wp-admin/edit.php?post_type=evideolqh1,1282.4436.6131.91

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/elearning-video-player/elearning-video-player.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 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
4 plugin tags: player, quizz, elearning, video

elearning-video-player/elearning-video-player.php Passed 13 tests

The primary PHP file in "Elearning Video Player" version 1.0.2 is used by WordPress to initiate all plugin functionality
80 characters long description:
A wordpress plugin that helps your viewers interact with your videos via quizzes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,411 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript815890703
PHP54738331
CSS4100212
HTML690158
Markdown1107

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
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%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin