Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼294.59ms] Passed 4 tests
An overview of server-side resources used by Bitmovin Wordpress Plugin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.29 ▲0.54 | 62.44 ▲30.45 |
Dashboard /wp-admin | 4.13 ▲0.10 | 39.59 ▲2.01 |
Posts /wp-admin/edit.php | 4.41 ▲0.09 | 51.87 ▲8.10 |
Add New Post /wp-admin/post-new.php | 7.66 ▲0.07 | 95.75 ▼1,192.17 |
Media Library /wp-admin/upload.php | 4.07 ▲0.09 | 33.21 ▲3.71 |
All Videos /wp-admin/edit.php?post_type=bitmovin_player | 4.11 | 54.27 |
Add New Video /wp-admin/post-new.php?post_type=bitmovin_player | 4.28 | 46.02 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Bitmovin Wordpress Plugin
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,829 ▲75 | 15.86 ▲0.66 | 5.60 ▼0.95 | 2.22 ▼0.83 |
Dashboard /wp-admin | 2,953 ▲92 | 6.25 ▲0.06 | 123.47 ▼25.91 | 181.59 ▲18.18 |
Posts /wp-admin/edit.php | 2,750 ▲59 | 3.19 ▼0.04 | 68.06 ▲3.58 | 149.44 ▲8.53 |
Add New Post /wp-admin/post-new.php | 1,680 ▲14 | 21.58 ▲1.16 | 457.99 ▲11.82 | 182.54 ▼15.50 |
Media Library /wp-admin/upload.php | 1,754 ▲60 | 5.70 ▲0.24 | 132.58 ▼26.50 | 217.71 ▲6.70 |
All Videos /wp-admin/edit.php?post_type=bitmovin_player | 1,445 | 3.13 | 72.25 | 130.07 |
Add New Video /wp-admin/post-new.php?post_type=bitmovin_player | 2,247 | 4.27 | 84.43 | 226.16 |
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
- Uninstall procedure validation failed for this plugin
- > Warning in wp-includes/class-wp-hook.php+307
call_user_func_array() expects parameter 1 to be a valid callback, function 'bitmovin_plugin_deactivation' not found or invalid function name
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/bitmovin-video/bitmovin.php:12
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
- > GET request to /wp-admin/edit.php?post_type=bitmovin_player
- > Network (severe)
https://api.bitmovin.com/v1/player/channels/undefined/versions - Failed to load resource: the server responded with a status of 403 ()
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=bitmovin_player
- > Network (severe)
https://api.bitmovin.com/v1/player/licenses - Failed to load resource: the server responded with a status of 403 ()
- > GET request to /wp-admin/post-new.php?post_type=bitmovin_player
- > Network (severe)
https://api.bitmovin.com/v1/player/channels/stable/versions - Failed to load resource: the server responded with a status of 403 ()
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5, #6, #7, #8 in bitmovin-video/assets to your readme.txt
bitmovin-video/bitmovin.php 92% from 13 tests
The principal PHP file in "Bitmovin Wordpress Plugin" v. 2.0.3 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("bitmovin-video.php" instead of "bitmovin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin477 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 84 | 13 | 326 |
JavaScript | 1 | 29 | 0 | 102 |
CSS | 1 | 11 | 2 | 49 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 25 | |
▷ Named functions | 25 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/bitlogo.png | 1.07KB | 0.37KB | ▼ 65.84% |
images/info.png | 20.53KB | 10.94KB | ▼ 46.71% |