Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- The plugin cannot be installed
- > Notice in wp-content/plugins/ooyala-video-browser/ooyala.php+1076
Array to string conversion
Server metrics [RAM: ▼1.32MB] [CPU: ▼54.12ms] Passed 4 tests
Analyzing server-side resources used by Ooyala
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.67 ▼0.79 | 9.61 ▼34.24 |
Dashboard /wp-admin | 2.69 ▼0.65 | 8.03 ▼55.29 |
Posts /wp-admin/edit.php | 2.69 ▼0.66 | 8.34 ▼38.60 |
Add New Post /wp-admin/post-new.php | 2.69 ▼3.19 | 8.93 ▼88.34 |
Media Library /wp-admin/upload.php | 2.69 ▼0.53 | 8.74 ▼25.88 |
Analytics Plugin Settings /wp-admin/admin.php?page=ooyala_analytics | 2.69 | 7.89 |
Account Settings /wp-admin/admin.php?page=ooyala_accounts | 2.69 | 11.33 |
Video Player Settings /wp-admin/admin.php?page=ooyala_player | 2.69 | 7.70 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Ooyala: 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,914 ▲128 | 13.68 ▼0.60 | 2.07 ▲0.03 | 37.11 ▼9.13 |
Dashboard /wp-admin | 2,289 ▲86 | 4.88 ▲0.02 | 103.63 ▼13.13 | 39.38 ▼8.17 |
Posts /wp-admin/edit.php | 2,168 ▲68 | 1.99 ▼0.06 | 40.13 ▲3.61 | 33.98 ▼1.97 |
Add New Post /wp-admin/post-new.php | 1,641 ▲96 | 17.79 ▼3.69 | 682.14 ▲60.31 | 40.17 ▼18.92 |
Media Library /wp-admin/upload.php | 1,532 ▲132 | 4.27 ▲0.04 | 106.90 ▲12.33 | 48.62 ▲6.62 |
Analytics Plugin Settings /wp-admin/admin.php?page=ooyala_analytics | 1,896 | 2.02 | 36.10 | 44.57 |
Account Settings /wp-admin/admin.php?page=ooyala_accounts | 956 | 2.10 | 25.41 | 28.08 |
Video Player Settings /wp-admin/admin.php?page=ooyala_player | 1,399 | 1.79 | 29.71 | 28.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/ooyala-video-browser/ooyala.php+1076
Array to string conversion
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- 288 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ooyala_player
- > Notice in wp-content/plugins/ooyala-video-browser/ooyala.php+1076
Array to string conversion
- > GET request to /wp-admin/admin.php?page=ooyala_player
- > Notice in wp-content/plugins/ooyala-video-browser/ooyala.php+717
Undefined property: Ooyala::$special_ads
- > GET request to /wp-admin/admin.php?page=ooyala_player
- > Notice in wp-content/plugins/ooyala-video-browser/ooyala.php+717
Trying to access array offset on value of type null
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ooyala_player
- > Notice in wp-content/plugins/ooyala-video-browser/ooyala.php+795
Undefined index: captionPosition
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ooyala-video-browser/ooyala.php:158
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/ooyala-video-browser/ooyala-templates.php:6
- > 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 errors were detected
Optimizations
Plugin configuration 96% 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
3 plugin tags: video, media, ooyala
ooyala-video-browser/ooyala.php 92% from 13 tests
The main PHP script in "Ooyala" version 3.1.0 is automatically included on every request by WordPress
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("ooyala-video-browser.php" instead of "ooyala.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin5,944 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 940 | 1,561 | 3,326 |
PHP | 2 | 371 | 304 | 1,866 |
CSS | 1 | 72 | 30 | 749 |
HTML | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 210.00 |
▷ Minimum class complexity | 210.00 |
▷ Maximum class complexity | 210.00 |
Average method complexity | 5.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 2 | 5.88% |
▷ Public methods | 32 | 94.12% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 5.88% |
Functions | 5 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 5 | 100.00% |
Constants | 14 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 14 | 100.00% |
▷ Public constants | 14 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/ooyala-logo-small.png | 4.96KB | 1.53KB | ▼ 69.21% |
img/ooyala-title.png | 26.39KB | 10.17KB | ▼ 61.48% |