Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Warning in wp-content/plugins/wideo/class.wideo.php+236
Use of undefined constant indate - assumed 'indate' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▲0.03MB] [CPU: ▼1.87ms] Passed 4 tests
Analyzing server-side resources used by WIDEO视频播放器
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.49 ▼1.97 |
Dashboard /wp-admin | 3.33 ▲0.03 | 45.16 ▼1.39 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 46.86 ▼2.34 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 90.89 ▲7.78 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 34.15 ▼1.77 |
关于 /wp-admin/admin.php?page=wideo-about | 3.24 | 30.81 |
WIDEO 播放器 /wp-admin/admin.php?page=wideo | 3.28 | 29.84 |
Server storage [IO: ▲0.73MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
wideo_setting |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by WIDEO视频播放器
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲80 | 13.53 ▼0.85 | 1.71 ▼0.09 | 39.00 ▼4.34 |
Dashboard /wp-admin | 2,232 ▲41 | 4.93 ▲0.06 | 101.57 ▼11.77 | 79.86 ▲41.35 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 2.03 ▲0.00 | 36.45 ▼6.50 | 41.15 ▲3.62 |
Add New Post /wp-admin/post-new.php | 1,536 ▼6 | 23.31 ▲5.17 | 703.36 ▲95.29 | 50.13 ▼3.04 |
Media Library /wp-admin/upload.php | 1,413 ▲31 | 4.19 ▼0.02 | 99.06 ▲0.71 | 90.33 ▲48.52 |
关于 /wp-admin/admin.php?page=wideo-about | 872 | 2.18 | 23.84 | 60.65 |
WIDEO 播放器 /wp-admin/admin.php?page=wideo | 1,142 | 1.74 | 27.22 | 53.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
Please take a closer look at the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wideo/includes/wideo_about.php
- > /wp-content/plugins/wideo/wideo.php
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/wideo/includes/wideo_setting.php:7
- > PHP Warning
Use of undefined constant WIDEO_VERSION - assumed 'WIDEO_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/wideo/includes/wideo_about.php on line 11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
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
1 plugin tags: dplayer
wideo/wideo.php 92% from 13 tests
The main PHP script in "WIDEO视频播放器" version 2.0.3 is automatically included on every request by WordPress
It is important to fix the following:
- Text Domain: The text domain should only use lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected454 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 65 | 27 | 379 |
JavaScript | 5 | 0 | 2 | 69 |
XML | 1 | 0 | 0 | 4 |
CSS | 1 | 1 | 1 | 2 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 27.00 |
▷ Minimum class complexity | 27.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 2.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/mini-logo.png | 4.45KB | 1.57KB | ▼ 64.68% |
images/wideo-menu.png | 3.30KB | 0.56KB | ▼ 83.09% |
images/wideo.png | 4.77KB | 1.52KB | ▼ 68.17% |