Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼4.01ms] Passed 4 tests
A check of server-side resources used by Dragon Video
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 46.13 ▲5.95 |
Dashboard /wp-admin | 3.45 ▲0.14 | 46.14 ▼2.15 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 43.62 ▼3.24 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 86.75 ▼12.74 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 36.72 ▲2.11 |
Server storage [IO: ▲3.67MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 336 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Dragon Video
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲84 | 13.27 ▼0.76 | 1.95 ▲0.01 | 41.88 ▲0.43 |
Dashboard /wp-admin | 2,225 ▲33 | 5.83 ▲0.86 | 103.61 ▼1.75 | 37.68 ▼4.23 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.01 ▼0.01 | 36.99 ▲2.07 | 31.47 ▼0.56 |
Add New Post /wp-admin/post-new.php | 1,556 ▲23 | 18.10 ▼4.67 | 611.48 ▼63.76 | 84.71 ▲9.38 |
Media Library /wp-admin/upload.php | 1,407 ▲19 | 4.24 ▲0.11 | 98.94 ▼9.12 | 41.54 ▼4.07 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% 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 everything seems fine, this is not an exhaustive test
SRP 50% 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
- 38× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function DragonVideo\\get_option() in wp-content/plugins/dragon-video/lib/DragonVideo/DragonVideo.php:37
- > PHP Fatal error
Uncaught Error: Class 'Services_Zencoder_Object' not found in wp-content/plugins/dragon-video/trunk/vendor/zencoder/zencoder-php/Services/Zencoder/Thumbnail.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function DragonVideo\\get_option() in wp-content/plugins/dragon-video/trunk/lib/DragonVideo/ZencoderEncoder.php:23
- > PHP Fatal error
Uncaught Error: Class 'Services_Zencoder_Object' not found in wp-content/plugins/dragon-video/trunk/vendor/zencoder/zencoder-php/Services/Zencoder/Error.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function DragonVideo\\add_action() in wp-content/plugins/dragon-video/lib/DragonVideo/VideoJsPlayer.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function DragonVideo\\get_option() in wp-content/plugins/dragon-video/lib/DragonVideo/ZencoderEncoder.php:23
- > PHP Fatal error
Uncaught Error: Interface 'Services_Zencoder_HttpProxy' not found in wp-content/plugins/dragon-video/vendor/zencoder/zencoder-php/Services/Zencoder/Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'Services_Zencoder_Base' not found in wp-content/plugins/dragon-video/trunk/vendor/zencoder/zencoder-php/Services/Zencoder/Jobs.php:13
- > PHP Fatal error
Uncaught Error: Class 'Services_Zencoder_Exception' not found in wp-content/plugins/dragon-video/trunk/vendor/zencoder/zencoder-php/Services/Zencoder/Http.php:13
- > PHP Fatal error
Uncaught Error: Class 'Services_Zencoder_Base' not found in wp-content/plugins/dragon-video/vendor/zencoder/zencoder-php/Services/Zencoder/Outputs.php:13
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 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: html5, video
dragon-video/videojs-player.php 92% from 13 tests
The main PHP file in "Dragon Video" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("dragon-video.php" instead of "videojs-player.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
These items require your attention
- For security reasons, never distribute binary or executable files with your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/dragon-video/vendor/zencoder/zencoder-php/Services/Zencoder/zencoder_ca_chain.crt
- ☣ wp-content/plugins/dragon-video/trunk/vendor/zencoder/zencoder-php/Services/Zencoder/zencoder_ca_chain.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 38 | 3,349 | 4,525 | 13,321 |
HTML | 31 | 9 | 3 | 6,237 |
CSS | 9 | 203 | 149 | 5,537 |
XML | 1 | 2 | 0 | 1,577 |
PHP | 31 | 226 | 661 | 1,390 |
SVG | 3 | 1 | 44 | 369 |
Markdown | 2 | 50 | 0 | 209 |
JSON | 2 | 0 | 0 | 69 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 8.65 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 77.00 |
Average method complexity | 3.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 50 | |
▷ Abstract classes | 2 | 4.00% |
▷ Concrete classes | 48 | 96.00% |
▷ Final classes | 0 | 0.00% |
Methods | 184 | |
▷ Static methods | 6 | 3.26% |
▷ Public methods | 166 | 90.22% |
▷ Protected methods | 4 | 2.17% |
▷ Private methods | 14 | 7.61% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
60 PNG files occupy 0.24MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/zencoder/zencoder-php/Documentation/img/iviewer/iviewer.zoom_fit.png | 1.22KB | 0.30KB | ▼ 75.72% |
trunk/vendor/zencoder/zencoder-php/Documentation/img/apple-touch-icon.png | 8.16KB | 3.82KB | ▼ 53.23% |
trunk/vendor/zencoder/zencoder-php/Documentation/img/icons/icon-th-big.png | 0.10KB | 0.10KB | 0.00% |
vendor/zencoder/zencoder-php/Documentation/img/icons/visibility_public.png | 3.37KB | 0.89KB | ▼ 73.57% |
trunk/vendor/zencoder/zencoder-php/Documentation/img/icons/ok.png | 3.60KB | 0.90KB | ▼ 74.95% |