Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲4.18MB] [CPU: ▲29.92ms] Passed 4 tests
This is a short check of server-side resources used by Video and Audio Player for Wordpress - Mine CloudVod LMS
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 7.72 ▲4.26 | 75.16 ▲30.56 |
Dashboard /wp-admin | 7.48 ▲4.14 | 83.61 ▲20.10 |
Posts /wp-admin/edit.php | 7.56 ▲4.21 | 80.37 ▲34.45 |
Add New Post /wp-admin/post-new.php | 10.98 ▲5.09 | 135.81 ▲35.40 |
Media Library /wp-admin/upload.php | 7.34 ▲4.11 | 74.75 ▲34.57 |
Tags /wp-admin/edit-tags.php?taxonomy=course-tag&post_type=mcv_course | 7.43 | 66.84 |
Settings /wp-admin/admin.php?page=mcv-options | 7.43 | 71.95 |
Orders /wp-admin/edit.php?post_type=mcv_order | 7.54 | 70.50 |
CloudVod Hub /wp-admin/edit.php?post_type=mcv_video | 7.50 | 65.64 |
Add-ons /wp-admin/admin.php?page=mcv-addons | 7.32 | 58.10 |
Categories /wp-admin/edit-tags.php?taxonomy=course-category&post_type=mcv_course | 7.43 | 75.76 |
Course /wp-admin/edit.php?post_type=mcv_course | 7.54 | 67.61 |
Server storage [IO: ▲14.79MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 458 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
_mcv_permalinks_flushed |
mcv_settings |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Video and Audio Player for Wordpress - Mine CloudVod LMS
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,074 ▲302 | 17.91 ▲3.51 | 131.43 ▲129.52 | 42.70 ▼4.63 |
Dashboard /wp-admin | 2,258 ▲78 | 5.59 ▲0.00 | 81.01 ▼19.91 | 82.95 ▲40.21 |
Posts /wp-admin/edit.php | 2,365 ▲265 | 6.44 ▲4.43 | 166.28 ▲127.13 | 32.06 ▼5.72 |
Add New Post /wp-admin/post-new.php | 1,697 ▲171 | 28.66 ▲5.61 | 851.25 ▲174.70 | 106.88 ▲39.61 |
Media Library /wp-admin/upload.php | 1,550 ▲153 | 4.19 ▼0.07 | 99.55 ▼13.33 | 78.54 ▲30.70 |
Tags /wp-admin/edit-tags.php?taxonomy=course-tag&post_type=mcv_course | 1,550 | 3.78 | 71.80 | 78.29 |
Settings /wp-admin/admin.php?page=mcv-options | 4,274 | 4.23 | 68.51 | 98.91 |
Orders /wp-admin/edit.php?post_type=mcv_order | 1,543 | 7.86 | 107.33 | 96.01 |
CloudVod Hub /wp-admin/edit.php?post_type=mcv_video | 1,182 | 12.06 | 196.88 | 118.59 |
Add-ons /wp-admin/admin.php?page=mcv-addons | 1,691 | 7.03 | 106.90 | 98.61 |
Categories /wp-admin/edit-tags.php?taxonomy=course-category&post_type=mcv_course | 1,576 | 3.79 | 53.97 | 80.16 |
Course /wp-admin/edit.php?post_type=mcv_course | 1,574 | 8.03 | 99.56 | 109.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 8 options
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- mcv_settings
- _mcv_permalinks_flushed
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 36× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/media.php' (include_path='.:/usr/share/php') in wp-content/plugins/mine-cloudvod/inc/RestApi/AliyunVod.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/mine-cloudvod/inc/options/aliyunoss.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/mine-cloudvod/build/embed/render.php:14
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/mine-cloudvod/inc/Integrations/Elementor/McvVideoWidget.php:13
- > PHP Fatal error
Uncaught Error: Class 'MCSF' not found in wp-content/plugins/mine-cloudvod/inc/options/aliyunvod_touwei.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/mine-cloudvod/templates/ketang/checkout.php:3
- > PHP Fatal error
Uncaught Error: Class 'MineCloudvod\\Payment\\Base' not found in wp-content/plugins/mine-cloudvod/inc/Payment/Hupijiao.php:4
- > PHP Notice
Trying to get property 'query_vars' of non-object in wp-content/plugins/mine-cloudvod/build/lms/course-list/filter-item-mode.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/mine-cloudvod/templates/vod/note.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/mine-cloudvod/inc/MineTcVodClientUploader.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: youku, player, lms, bili, course...
mine-cloudvod/mine-cloudvod.php 92% from 13 tests
The principal PHP file in "Video and Audio Player for Wordpress - Mine CloudVod LMS" v. 1.8.9 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 214 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin64,152 lines of code in 387 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 248 | 5,144 | 2,824 | 29,875 |
SVG | 7 | 0 | 0 | 13,266 |
JavaScript | 53 | 1,419 | 3,993 | 7,235 |
CSS | 32 | 552 | 568 | 7,222 |
Sass | 16 | 969 | 3 | 5,667 |
JSON | 22 | 0 | 0 | 869 |
HTML | 9 | 0 | 43 | 18 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 22.01 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 150.00 |
Average method complexity | 4.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 26 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 171 | |
▷ Abstract classes | 4 | 2.34% |
▷ Concrete classes | 167 | 97.66% |
▷ Final classes | 0 | 0.00% |
Methods | 1,029 | |
▷ Static methods | 134 | 13.02% |
▷ Public methods | 1,009 | 98.06% |
▷ Protected methods | 7 | 0.68% |
▷ Private methods | 13 | 1.26% |
Functions | 125 | |
▷ Named functions | 77 | 61.60% |
▷ Anonymous functions | 48 | 38.40% |
Constants | 44 | |
▷ Global constants | 42 | 95.45% |
▷ Class constants | 2 | 4.55% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
33 PNG files occupy 0.18MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
static/img/addons/mcv-partialpurchase.png | 1.79KB | 1.12KB | ▼ 37.68% |
templates/default/assets/images/default.png | 5.66KB | 1.60KB | ▼ 71.69% |
static/img/addons/mcv-preview.png | 1.82KB | 0.78KB | ▼ 56.98% |
static/img/default.png | 5.66KB | 1.60KB | ▼ 71.69% |
csf/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |