Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲5.99MB] [CPU: ▼86.81ms] 50% from 4 tests
This is a short check of server-side resources used by Haru Vidi - Video Manager WordPress
The following require your attention
- RAM: Total memory usage must be kept under 10MB (currently 12.74MB on /wp-admin/post-new.php?post_type=haru_video)
- Extra RAM: The extra memory usage should kept under 5MB (currently 5.99MB on /wp-admin/edit-tags.php?taxonomy=director_category&post_type=haru_director)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.20 ▲5.37 | 84.11 ▲46.79 |
Dashboard /wp-admin | 9.25 ▲6.19 | 105.30 ▲67.34 |
Posts /wp-admin/edit.php | 9.33 ▲6.22 | 93.43 ▲44.75 |
Add New Post /wp-admin/post-new.php | 13.20 ▲7.77 | 147.91 ▼495.64 |
Media Library /wp-admin/upload.php | 9.18 ▲6.18 | 86.95 ▲56.86 |
Videos /wp-admin/edit.php?post_type=haru_video | 9.22 | 82.98 |
Add New /wp-admin/post-new.php?post_type=haru_video_report | 9.56 | 95.34 |
Directors /wp-admin/admin.php?page=vidi-directors-settings | 9.50 | 82.31 |
Add New /wp-admin/post-new.php?post_type=haru_playlist | 13.44 | 157.72 |
Add New /wp-admin/post-new.php?post_type=haru_video | 12.74 | 143.58 |
Videos /wp-admin/admin.php?page=vidi-videos-settings | 9.50 | 82.79 |
Categories /wp-admin/edit-tags.php?taxonomy=shortcode_category&post_type=haru_shortcode | 9.18 | 79.58 |
Series /wp-admin/edit.php?post_type=haru_series | 9.22 | 83.50 |
Categories /wp-admin/edit-tags.php?taxonomy=actor_category&post_type=haru_actor | 9.18 | 78.65 |
Categories /wp-admin/edit-tags.php?taxonomy=director_category&post_type=haru_director | 9.18 | 82.04 |
Server storage [IO: ▲9.35MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 511 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_haru_widget_video_search |
widget_haru_widget_video_videos |
widget_haru_widget_video_categories |
widget_haru_widget_video_top |
widget_haru_widget_playlist_top |
widget_haru_widget_video_tags |
widget_haru_widget_series_top |
widget_haru_widget_channel_top |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Haru Vidi - Video Manager WordPress
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,301 ▲706 | 16.70 ▲1.21 | 21.43 ▲11.97 | 48.51 ▲2.86 |
Dashboard /wp-admin | 3,401 ▲467 | 6.06 ▲0.10 | 150.59 ▼4.15 | 117.17 ▲0.74 |
Posts /wp-admin/edit.php | 3,172 ▲433 | 2.91 ▲0.21 | 63.66 ▼16.90 | 89.25 ▲5.23 |
Add New Post /wp-admin/post-new.php | 1,904 ▲300 | 21.63 ▲3.10 | 333.13 ▼49.72 | 102.98 ▼7.92 |
Media Library /wp-admin/upload.php | 2,241 ▲431 | 5.14 ▲0.13 | 155.87 ▼1.05 | 121.96 ▲3.42 |
Videos /wp-admin/edit.php?post_type=haru_video | 1,989 | 2.87 | 73.00 | 79.63 |
Add New /wp-admin/post-new.php?post_type=haru_video_report | 2,406 | 3.54 | 120.10 | 83.34 |
Directors /wp-admin/admin.php?page=vidi-directors-settings | 2,479 | 3.48 | 94.67 | 82.91 |
Add New /wp-admin/post-new.php?post_type=haru_playlist | 6,206 | 16.77 | 511.05 | 121.54 |
Add New /wp-admin/post-new.php?post_type=haru_video | 7,284 | 25.05 | 463.72 | 154.96 |
Videos /wp-admin/admin.php?page=vidi-videos-settings | 2,466 | 3.58 | 101.62 | 80.94 |
Categories /wp-admin/edit-tags.php?taxonomy=shortcode_category&post_type=haru_shortcode | 2,171 | 2.66 | 66.07 | 79.78 |
Series /wp-admin/edit.php?post_type=haru_series | 1,943 | 2.87 | 76.76 | 76.09 |
Categories /wp-admin/edit-tags.php?taxonomy=actor_category&post_type=haru_actor | 2,174 | 2.64 | 69.34 | 81.99 |
Categories /wp-admin/edit-tags.php?taxonomy=director_category&post_type=haru_director | 2,174 | 2.63 | 70.51 | 86.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 8 options
- widget_haru_widget_video_search
- widget_haru_widget_video_top
- widget_haru_widget_series_top
- widget_haru_widget_video_tags
- widget_haru_widget_playlist_top
- widget_haru_widget_video_categories
- widget_haru_widget_video_videos
- widget_haru_widget_channel_top
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/post-new.php?post_type=haru_video
- > Warning in wp-admin/includes/template.php+1395
call_user_func() expects parameter 1 to be a valid callback, function 'pmpro_page_meta' not found or invalid function name
SRP 0% 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
Almost there! Just fix the following items
- 8× PHP files output text when accessed directly:
- > /wp-content/plugins/haru-vidi/includes/posttypes/video-report.php
- > /wp-content/plugins/haru-vidi/includes/posttypes/playlist.php
- > /wp-content/plugins/haru-vidi/includes/posttypes/shortcode-generate.php
- > /wp-content/plugins/haru-vidi/includes/posttypes/video.php
- > /wp-content/plugins/haru-vidi/includes/posttypes/channel.php
- > /wp-content/plugins/haru-vidi/includes/posttypes/actor.php
- > /wp-content/plugins/haru-vidi/includes/posttypes/director.php
- > /wp-content/plugins/haru-vidi/includes/posttypes/series.php
- 185× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/haru-vidi/templates/vidi/director/content-director.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function haru_vidi_get_setting() in wp-content/plugins/haru-vidi/templates/vidi/elements/single-video-player.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/haru-vidi/includes/libraries/cmb2-conditionals/cmb2-conditionals.php:293
- > PHP Notice
Undefined variable: count in wp-content/plugins/haru-vidi/templates/vidi/shortcodes/video-list-category.php on line 18
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/haru-vidi/includes/widgets/haru-widget.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function haru_vidi_get_setting() in wp-content/plugins/haru-vidi/templates/vidi/shortcodes/watch-later.php:20
- > PHP Warning
Use of undefined constant PLUGIN_HARU_VIDI_DIR - assumed 'PLUGIN_HARU_VIDI_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/haru-vidi/includes/widgets/widgets.php on line 15
- > PHP Warning
include_once(): Failed opening 'PLUGIN_HARU_VIDI_DIRincludes/widgets/haru-video-videos.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/haru-vidi/includes/widgets/widgets.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/haru-vidi/includes/libraries/cmb-field-select2/cmb-field-select2.php:27
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/haru-vidi/includes/libraries/cmb2/includes/types/CMB2_Type_Taxonomy_Radio.php:13
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- > GET request to /wp-admin/post-new.php?post_type=haru_video
- > Intervention (severe) in unknown
/wp-admin/post-new.php?post_type=haru_playlist - Blocked attempt to show a 'beforeunload' confirmation panel for a frame that never had a user gesture since its load. https://www.chromestatus.com/feature/5082396709879808
- > GET request to /wp-admin/admin.php?page=vidi-videos-settings
- > Intervention (severe) in unknown
/wp-admin/post-new.php?post_type=haru_video - Blocked attempt to show a 'beforeunload' confirmation panel for a frame that never had a user gesture since its load. https://www.chromestatus.com/feature/5082396709879808
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
haru-vidi/haru-vidi.php Passed 13 tests
Analyzing the main PHP file in "Haru Vidi - Video Manager WordPress" version 1.0.2
50 characters long description:
Haru Vidi - A Video WordPress plugin by HaruTheme.
Code Analysis 95% from 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
No dangerous file extensions were detected104,258 lines of code in 396 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 204 | 7,809 | 11,883 | 37,776 |
Sass | 105 | 4,952 | 567 | 25,491 |
CSS | 23 | 3,078 | 1,219 | 19,491 |
SVG | 31 | 0 | 16 | 9,126 |
JavaScript | 23 | 1,422 | 1,712 | 7,187 |
JSON | 4 | 0 | 0 | 4,329 |
Markdown | 6 | 280 | 0 | 858 |
PHP code 0% from 2 tests
Analyzing cyclomatic complexity and code structure
Please tend to the following items
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 1,209)
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 358)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 34.28 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,209.00 |
Average method complexity | 4.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 358.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 127 | |
▷ Abstract classes | 12 | 9.45% |
▷ Concrete classes | 115 | 90.55% |
▷ Final classes | 0 | 0.00% |
Methods | 1,108 | |
▷ Static methods | 105 | 9.48% |
▷ Public methods | 710 | 64.08% |
▷ Protected methods | 384 | 34.66% |
▷ Private methods | 14 | 1.26% |
Functions | 241 | |
▷ Named functions | 228 | 94.61% |
▷ Anonymous functions | 13 | 5.39% |
Constants | 91 | |
▷ Global constants | 12 | 13.19% |
▷ Class constants | 79 | 86.81% |
▷ Public constants | 79 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
37 PNG files occupy 0.82MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/libraries/cmb2/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
assets/images/video-single-style-1.png | 99.02KB | 31.13KB | ▼ 68.56% |
admin/assets/images/vimeo.png | 11.25KB | 4.82KB | ▼ 57.13% |
includes/libraries/cmb2/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
includes/libraries/cmb2/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |