Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.82MB] [CPU: ▲1.19ms] Passed 4 tests
This is a short check of server-side resources used by Brightcove Video Connect
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.23 ▲0.77 | 40.88 ▼1.47 |
Dashboard /wp-admin | 4.16 ▲0.81 | 56.05 ▼2.68 |
Posts /wp-admin/edit.php | 4.21 ▲0.85 | 51.97 ▲4.66 |
Add New Post /wp-admin/post-new.php | 6.75 ▲0.86 | 96.92 ▲4.25 |
Media Library /wp-admin/upload.php | 4.08 ▲0.85 | 43.95 ▲12.33 |
Labels /wp-admin/admin.php?page=brightcove-labels | 4.04 | 36.70 |
Edit Label /wp-admin/admin.php?page=page-brightcove-edit-label | 4.04 | 38.21 |
Settings /wp-admin/admin.php?page=brightcove-sources | 4.04 | 36.51 |
Add Source /wp-admin/admin.php?page=page-brightcove-edit-source | 4.04 | 36.82 |
Playlists /wp-admin/admin.php?page=page-brightcove-playlists | 4.04 | 38.72 |
Videos /wp-admin/admin.php?page=page-brightcove-videos | 4.04 | 37.79 |
Server storage [IO: ▲1.40MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 99 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Brightcove Video Connect: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,902 ▲155 | 14.14 ▼0.14 | 2.07 ▲0.41 | 38.11 ▼3.90 |
Dashboard /wp-admin | 2,267 ▲93 | 5.59 ▼0.06 | 85.24 ▼11.05 | 57.38 ▲12.99 |
Posts /wp-admin/edit.php | 2,184 ▲84 | 2.00 ▲0.06 | 41.26 ▲0.66 | 33.95 ▼3.79 |
Add New Post /wp-admin/post-new.php | 6,433 ▲4,897 | 28.23 ▲5.15 | 992.28 ▲380.78 | 53.12 ▲0.03 |
Media Library /wp-admin/upload.php | 1,481 ▲78 | 4.24 ▲0.06 | 113.63 ▲13.69 | 48.17 ▲7.19 |
Labels /wp-admin/admin.php?page=brightcove-labels | 855 | 1.66 | 27.15 | 22.77 |
Edit Label /wp-admin/admin.php?page=page-brightcove-edit-label | 851 | 1.66 | 24.87 | 25.80 |
Settings /wp-admin/admin.php?page=brightcove-sources | 958 | 2.01 | 26.96 | 26.31 |
Add Source /wp-admin/admin.php?page=page-brightcove-edit-source | 994 | 2.01 | 24.73 | 28.90 |
Playlists /wp-admin/admin.php?page=page-brightcove-playlists | 855 | 1.67 | 26.89 | 24.78 |
Videos /wp-admin/admin.php?page=page-brightcove-videos | 855 | 1.66 | 28.41 | 27.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/brightcove-video-connect/brightcove-video-connect.php:35
- > PHP Fatal error
Uncaught Error: Class 'BC_API' not found in wp-content/plugins/brightcove-video-connect/includes/api/class-bc-experiences-api.php:15
- > PHP Fatal error
Uncaught Error: Class 'BC_API' not found in wp-content/plugins/brightcove-video-connect/includes/api/class-bc-cms-api.php:18
- > PHP Fatal error
Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/brightcove-video-connect/cli/class-brightcove-cli.php:11
- > PHP Fatal error
Uncaught Error: Class 'BC_API' not found in wp-content/plugins/brightcove-video-connect/includes/api/class-bc-player-management-api2.php:19
- > PHP Fatal error
Uncaught Error: Class 'BC_API' not found in wp-content/plugins/brightcove-video-connect/includes/api/class-bc-player-management-api.php:19
- > PHP Fatal error
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)
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: videos, 10up, video, brightcove
brightcove-video-connect/brightcove-video-connect.php 92% from 13 tests
This is the main PHP file of "Brightcove Video Connect" version 2.8.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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
No dangerous file extensions were detected16,104 lines of code in 85 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 29 | 1,300 | 700 | 7,662 |
PHP | 35 | 1,652 | 2,637 | 5,897 |
CSS | 6 | 87 | 92 | 1,274 |
Sass | 12 | 151 | 4 | 825 |
Markdown | 1 | 102 | 0 | 402 |
SVG | 2 | 0 | 1 | 44 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 22.18 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 157.00 |
Average method complexity | 3.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 64.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 33 | |
▷ Abstract classes | 1 | 3.03% |
▷ Concrete classes | 32 | 96.97% |
▷ Final classes | 0 | 0.00% |
Methods | 248 | |
▷ Static methods | 81 | 32.66% |
▷ Public methods | 236 | 95.16% |
▷ Protected methods | 11 | 4.44% |
▷ Private methods | 1 | 0.40% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 4 | 40.00% |
▷ Class constants | 6 | 60.00% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
11 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/images/ui-bg_glass_65_ffffff_1x400.png | 0.26KB | 0.09KB | ▼ 66.79% |
assets/css/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.38KB | 0.12KB | ▼ 67.68% |
images/video-background-large.png | 3.44KB | 2.48KB | ▼ 27.94% |
assets/css/images/ui-icons_222222_256x240.png | 6.86KB | 4.18KB | ▼ 39.05% |
assets/css/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.32KB | 0.18KB | ▼ 44.00% |