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
- > Deprecated in wp-content/plugins/videonab/index.php+34
Non-static method VHub_Main::register_post_types() should not be called statically
Server metrics [RAM: ▲0.22MB] [CPU: ▲3.35ms] Passed 4 tests
This is a short check of server-side resources used by VideoNab
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.21 | 40.82 ▲3.71 |
Dashboard /wp-admin | 3.54 ▲0.24 | 61.04 ▲16.75 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 51.33 ▲11.38 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.22 | 87.77 ▼11.47 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 40.51 ▲9.77 |
VideoNab /wp-admin/edit.php?post_type=crbh_videos | 3.51 | 42.31 |
Video Updater /wp-admin/edit.php?post_type=crbh_videos&page=video-updater | 3.47 | 38.31 |
Video Categories /wp-admin/edit-tags.php?taxonomy=crbh_video_cats&post_type=crbh_videos | 3.45 | 39.86 |
Add New Video /wp-admin/edit.php?post_type=crbh_videos&page=add-new-video-replay | 3.47 | 40.81 |
Video Removal /wp-admin/edit.php?post_type=crbh_videos&page=video-removal | 3.45 | 47.49 |
Server storage [IO: ▲7.26MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 414 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
VideoNab: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,345 ▲1,610 | 17.34 ▲2.96 | 70.12 ▲68.52 | 268.50 ▲228.92 |
Dashboard /wp-admin | 2,419 ▲230 | 6.67 ▲1.72 | 122.13 ▼1.43 | 89.77 ▲41.42 |
Posts /wp-admin/edit.php | 2,324 ▲235 | 3.58 ▲1.59 | 48.98 ▲9.66 | 68.47 ▲31.73 |
Add New Post /wp-admin/post-new.php | 1,581 ▲62 | 17.89 ▼5.37 | 608.63 ▼24.02 | 142.14 ▲94.20 |
Media Library /wp-admin/upload.php | 1,458 ▲70 | 4.44 ▲0.25 | 84.46 ▼9.95 | 74.54 ▲35.73 |
VideoNab /wp-admin/edit.php?post_type=crbh_videos | 1,306 | 3.50 | 49.78 | 65.13 |
Settings /wp-admin/crbn-settings.php | 26 | 0.44 | 0.14 | 11.06 |
Video Updater /wp-admin/edit.php?post_type=crbh_videos&page=video-updater | 1,038 | 3.22 | 41.73 | 68.03 |
Video Categories /wp-admin/edit-tags.php?taxonomy=crbh_video_cats&post_type=crbh_videos | 1,525 | 3.32 | 43.49 | 61.35 |
Add New Video /wp-admin/edit.php?post_type=crbh_videos&page=add-new-video-replay | 1,076 | 3.24 | 45.76 | 85.44 |
Video Removal /wp-admin/edit.php?post_type=crbh_videos&page=video-removal | 1,035 | 3.25 | 44.63 | 44.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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 fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/videonab/includes/shortcode.php
- 509× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Warning
require_once(Zend/Gdata/Extension.php): failed to open stream: No such file or directory in wp-content/plugins/videonab/lib/Zend/Gdata/YouTube/Extension/Recorded.php on line 27
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/videonab/lib/Google/Service/Compute.php:31
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/videonab/lib/Google/Service/YouTubeAnalytics.php:31
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/videonab/lib/Google/Service/Reseller.php:31
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/videonab/lib/Google/Service/SiteVerification.php:31
- > PHP Fatal error
require_once(): Failed opening required 'Zend/Gdata/Entry.php' (include_path='.:/usr/share/php') in wp-content/plugins/videonab/lib/Zend/Gdata/Spreadsheets/Extension/Custom.php on line 26
- > PHP Warning
require_once(Zend/Gdata/Extension.php): failed to open stream: No such file or directory in wp-content/plugins/videonab/lib/Zend/Gdata/YouTube/Extension/Location.php on line 27
- > PHP Warning
require_once(Zend/Gdata/Extension.php): failed to open stream: No such file or directory in wp-content/plugins/videonab/lib/Zend/Gdata/YouTube/Extension/Books.php on line 27
- > PHP Warning
require_once(Zend/Gdata/App/Extension.php): failed to open stream: No such file or directory in wp-content/plugins/videonab/lib/Zend/Gdata/App/Extension/Name.php on line 27
- > PHP Notice
Undefined variable: container_tag_class_name in wp-content/plugins/videonab/lib/carbon-fields/admin-templates/container-theme-options.php on line 1
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
- > GET request to /wp-admin/crbn-settings.php
- > Network (severe)
wp-admin/crbn-settings.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
10 plugin tags: add my videos, list videos, share videos, video comments, add videos...
videonab/index.php 85% from 13 tests
"VideoNab" version 1.4.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("videonab.php" instead of "index.php")
- Description: The description should be shorter than 140 characters (currently 145 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected187,505 lines of code in 372 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 357 | 14,068 | 43,897 | 185,081 |
JavaScript | 7 | 383 | 140 | 1,477 |
CSS | 5 | 113 | 24 | 839 |
PO File | 1 | 28 | 28 | 80 |
SVG | 1 | 0 | 0 | 20 |
XML | 1 | 0 | 0 | 8 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.04 |
Average class complexity | 1.55 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 95.00 |
Average method complexity | 1.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 39.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 4 | |
Traits | 0 | |
Classes | 3,253 | |
▷ Abstract classes | 11 | 0.34% |
▷ Concrete classes | 3,242 | 99.66% |
▷ Final classes | 0 | 0.00% |
Methods | 24,824 | |
▷ Static methods | 53 | 0.21% |
▷ Public methods | 24,646 | 99.28% |
▷ Protected methods | 137 | 0.55% |
▷ Private methods | 41 | 0.17% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 259 | |
▷ Global constants | 6 | 2.32% |
▷ Class constants | 253 | 97.68% |
▷ Public constants | 253 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
34 PNG files occupy 0.10MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/carbon-fields/css/images/ui-icons_222222_256x240.png | 6.76KB | 4.17KB | ▼ 38.24% |
lib/carbon-fields/css/images/ui-icons_ffffff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
lib/carbon-fields/css/images/ui-icons_454545_256x240.png | 6.83KB | 4.17KB | ▼ 38.86% |
css/images/tooltip-tick.png | 2.92KB | 0.20KB | ▼ 93.30% |
css/images/true-false.png | 19.69KB | 6.29KB | ▼ 68.05% |