Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼6.47ms] Passed 4 tests
An overview of server-side resources used by [凹凸曼]播放视频
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 38.19 ▼1.64 |
Dashboard /wp-admin | 3.35 ▲0.04 | 44.19 ▼4.82 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 50.03 ▲1.17 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 81.38 ▼17.85 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 33.45 ▼1.58 |
settings /wp-admin/options-general.php?page=apoyl-video-settings | 3.28 | 32.56 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
apoyl-video-settings |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for [凹凸曼]播放视频
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲57 | 14.31 ▼0.41 | 1.85 ▲0.19 | 41.61 ▼3.33 |
Dashboard /wp-admin | 2,202 ▲25 | 5.60 ▼0.02 | 94.21 ▼2.99 | 43.16 ▼3.10 |
Posts /wp-admin/edit.php | 2,101 ▼2 | 1.96 ▼0.06 | 40.82 ▼0.42 | 35.28 ▲1.41 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.14 ▼0.12 | 621.18 ▼42.80 | 59.36 ▲6.18 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.16 ▼0.12 | 97.41 ▼5.34 | 44.63 ▲2.93 |
settings /wp-admin/options-general.php?page=apoyl-video-settings | 930 | 1.97 | 24.78 | 26.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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 items
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Undefined variable: arr in wp-content/plugins/apoyl-video/public/partials/public-display.php on line 11
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/apoyl-video/public/partials/public-display.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/apoyl-video/admin/partials/admin-display.php:25
- > PHP Notice
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 Passed 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
2 plugin tags: video, bilibili
apoyl-video/apoyl-video.php Passed 13 tests
"[凹凸曼]播放视频" version 1.6.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
16 characters long description:
apoyl-video-desc
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin344 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 95 | 143 | 341 |
JavaScript | 1 | 2 | 0 | 3 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
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