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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.89 ▲1.38 | 64.67 ▲15.94 |
Dashboard /wp-admin | 4.73 ▲1.33 | 43.32 ▲10.39 |
Posts /wp-admin/edit.php | 4.96 ▲1.32 | 48.43 ▲7.93 |
Add New Post /wp-admin/post-new.php | 8.26 ▲1.29 | 103.67 ▼1,169.69 |
Media Library /wp-admin/upload.php | 4.68 ▲1.39 | 34.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,817 ▲73 | 15.80 ▲0.10 | 6.85 ▲0.74 | 2.01 ▼0.23 |
Dashboard /wp-admin | 2,924 ▲63 | 6.03 ▼0.23 | 118.32 ▼18.66 | 190.95 ▲28.04 |
Posts /wp-admin/edit.php | 2,721 ▲27 | 3.23 ▼0.01 | 68.11 ▲4.15 | 232.01 ▲90.93 |
Add New Post /wp-admin/post-new.php | 1,774 ▲113 | 21.20 ▲4.79 | 466.60 ▲62.10 | 213.82 ▲47.32 |
Media Library /wp-admin/upload.php | 1,730 ▲35 | 5.53 ▼0.01 | 139.61 ▼1.42 | 222.53 ▲39.87 |
DPlayer配置 /wp-admin/admin.php?page=mvp_setting#tab=dplayer%e9%85%8d%e7%bd%ae | 1,705 | 3.32 | 109.31 | 295.59 |
基础设置 /wp-admin/admin.php?page=mvp_setting#tab=%e5%9f%ba%e7%a1%80%e8%ae%be%e7%bd%ae | 1,645 | 3.12 | 98.67 | 217.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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 71 | 2,388 | 942 | 7,605 |
PO File | 20 | 3,197 | 3,594 | 6,492 |
SVG | 3 | 356 | 3 | 197 |
JavaScript | 29 | 10 | 39 | 167 |
CSS | 8 | 2 | 5 | 34 |
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 code | 0.63 |
Average class complexity | 25.77 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 152.00 |
Average method complexity | 6.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 60 | |
▷ Abstract classes | 2 | 3.33% |
▷ Concrete classes | 58 | 96.67% |
▷ Final classes | 0 | 0.00% |
Methods | 261 | |
▷ Static methods | 37 | 14.18% |
▷ Public methods | 261 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 27 | |
▷ Named functions | 26 | 96.30% |
▷ Anonymous functions | 1 | 3.70% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
csf/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |
images/minevideo.png | 2.89KB | 0.17KB | ▼ 94.28% |
js/layui/css/modules/layer/default/icon-ext.png | 5.77KB | 2.91KB | ▼ 49.62% |
images/logo.png | 4.71KB | 1.28KB | ▼ 72.92% |
js/layui/css/modules/layer/default/icon.png | 11.22KB | 4.36KB | ▼ 61.19% |