10% mine-video

Code Review | Mine Video Player

WordPress plugin Mine Video Player scored 10% from 54 tests.

About plugin

  • Plugin page: mine-video
  • Plugin version: 2.8.11
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-5.8
  • WordPress version: 5.9.2
  • First release: Jul 25, 2020
  • Latest release: Sep 10, 2021
  • Number of updates: 54
  • Update frequency: every 7.7 days
  • Top authors: 0 (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

500+ active / 6,629 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/mine-video/Mine_Video.class.php+40
    Trying to access array offset on value of type bool

Server metrics [RAM: ▲1.33MB] [CPU: ▼285.38ms] Passed 4 tests

Server-side resources used by Mine Video Player
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.89 ▲1.3864.67 ▲15.94
Dashboard /wp-admin4.73 ▲1.3343.32 ▲10.39
Posts /wp-admin/edit.php4.96 ▲1.3248.43 ▲7.93
Add New Post /wp-admin/post-new.php8.26 ▲1.29103.67 ▼1,169.69
Media Library /wp-admin/upload.php4.68 ▲1.3934.43 ▲9.87

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 240 new files
Database: no new tables, 1 new option
New WordPress options
minevideo_mvp_setting

Browser metrics Passed 4 tests

Checking browser requirements for Mine Video Player
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,817 ▲7315.80 ▲0.106.85 ▲0.742.01 ▼0.23
Dashboard /wp-admin2,924 ▲636.03 ▼0.23118.32 ▼18.66190.95 ▲28.04
Posts /wp-admin/edit.php2,721 ▲273.23 ▼0.0168.11 ▲4.15232.01 ▲90.93
Add New Post /wp-admin/post-new.php1,774 ▲11321.20 ▲4.79466.60 ▲62.10213.82 ▲47.32
Media Library /wp-admin/upload.php1,730 ▲355.53 ▼0.01139.61 ▼1.42222.53 ▲39.87
DPlayer配置 /wp-admin/admin.php?page=mvp_setting#tab=dplayer%e9%85%8d%e7%bd%ae1,7053.32109.31295.59
基础设置 /wp-admin/admin.php?page=mvp_setting#tab=%e5%9f%ba%e7%a1%80%e8%ae%be%e7%bd%ae1,6453.1298.67217.98

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • minevideo_mvp_setting

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=mvp_setting#tab=%e5%9f%ba%e7%a1%80%e8%ae%be%e7%bd%ae
    • > Network (severe)
    https://hm.baidu.com/hm.js?ac5895b5aa2f2d112fb9fed495321a04 - Failed to load resource: net::ERR_NAME_NOT_RESOLVED

Optimizations

Plugin configuration 96% from 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
5 plugin tags: dplayer, plyr, mp4 player, player, episodes

mine-video/mine-video.php 92% from 13 tests

Analyzing the main PHP file in "Mine Video Player" version 2.8.11
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 151 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected14,495 lines of code in 131 files:
LanguageFilesBlank linesComment linesLines of code
PHP712,3889427,605
PO File203,1973,5946,492
SVG33563197
JavaScript291039167
CSS82534

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity25.77
▷ Minimum class complexity1.00
▷ Maximum class complexity152.00
Average method complexity6.69
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes60
▷ Abstract classes23.33%
▷ Concrete classes5896.67%
▷ Final classes00.00%
Methods261
▷ Static methods3714.18%
▷ Public methods261100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions27
▷ Named functions2696.30%
▷ Anonymous functions13.70%
Constants7
▷ Global constants7100.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
5 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
csf/assets/images/checkerboard.png2.29KB2.54KB0.00%
images/minevideo.png2.89KB0.17KB▼ 94.28%
js/layui/css/modules/layer/default/icon-ext.png5.77KB2.91KB▼ 49.62%
images/logo.png4.71KB1.28KB▼ 72.92%
js/layui/css/modules/layer/default/icon.png11.22KB4.36KB▼ 61.19%