Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.10ms] Passed 4 tests
Server-side resources used by [凹凸曼]自由控制视频大小
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 37.11 ▼1.59 |
Dashboard /wp-admin | 3.35 ▲0.00 | 48.21 ▼13.23 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 52.30 ▲3.42 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 93.72 ▲5.21 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.22 ▲3.01 |
settings /wp-admin/options-general.php?page=apoyl-videoctrl-settings | 3.25 | 31.68 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
apoyl-videoctrl-settings |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by [凹凸曼]自由控制视频大小
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲72 | 14.70 ▲0.43 | 1.90 ▲0.35 | 38.04 ▼2.10 |
Dashboard /wp-admin | 2,196 ▲16 | 5.48 ▼0.12 | 98.63 ▲1.07 | 42.95 ▼2.68 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.03 ▲0.06 | 41.02 ▲0.19 | 36.89 ▲0.84 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 22.82 ▼0.16 | 698.33 ▲110.58 | 57.73 ▲7.19 |
Media Library /wp-admin/upload.php | 1,401 ▼2 | 4.14 ▼0.08 | 116.44 ▲19.31 | 42.62 ▲0.20 |
settings /wp-admin/options-general.php?page=apoyl-videoctrl-settings | 883 | 2.16 | 25.24 | 29.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 4× PHP files trigger server errors when accessed directly:
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/apoyl-videoctrl/public/partials/public-display.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/apoyl-videoctrl/admin/partials/admin-display.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function apoyl_videoctrl_file() in wp-content/plugins/apoyl-videoctrl/public/partials/public-display.php:23
- > PHP Notice
Undefined variable: arr in wp-content/plugins/apoyl-videoctrl/public/partials/public-display.php on line 10
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: video, bilibili
apoyl-videoctrl/apoyl-videoctrl.php Passed 13 tests
The primary PHP file in "[凹凸曼]自由控制视频大小" version 1.4.0 is used by WordPress to initiate all plugin functionality
130 characters long description:
实现统一自定义控制本地视频video和bilibili宽度和高度,显示合适大小的视频,让页面变得更加美观
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected308 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 93 | 142 | 305 |
JavaScript | 1 | 2 | 0 | 3 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 1.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 3 | 11.11% |
▷ Public methods | 22 | 81.48% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 18.52% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin