Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼152.58ms] Passed 4 tests
Analyzing server-side resources used by WebVTT
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.01 | 40.66 ▲3.57 |
Dashboard /wp-admin | 3.07 ▲0.01 | 35.43 ▼45.37 |
Posts /wp-admin/edit.php | 3.15 ▲0.05 | 48.02 ▼7.82 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.01 | 91.32 ▼555.18 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 29.93 ▼1.95 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for WebVTT
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 16.06 ▲0.54 | 10.43 ▼2.21 | 47.41 ▼3.22 |
Dashboard /wp-admin | 2,973 ▲42 | 5.88 ▼0.08 | 133.67 ▼44.15 | 107.57 ▼26.31 |
Posts /wp-admin/edit.php | 2,736 ▼3 | 2.72 ▲0.02 | 59.00 ▼16.81 | 93.23 ▼1.32 |
Add New Post /wp-admin/post-new.php | 1,872 ▲2 | 19.25 ▼0.20 | 376.89 ▼18.34 | 105.94 ▼2.58 |
Media Library /wp-admin/upload.php | 1,812 ▲2 | 5.02 ▼0.00 | 150.53 ▲4.10 | 123.72 ▲10.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/webvtt/webvtt.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 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
4 plugin tags: track, video, webvtt, html5
webvtt/webvtt.php Passed 13 tests
The main file in "WebVTT" v. 1.3.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
37 characters long description:
Add HTML5 text track files to videos.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin543 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 86 | 249 | 345 |
JavaScript | 2 | 38 | 4 | 164 |
PO File | 1 | 8 | 8 | 34 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 26.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 4.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 93.33% |
▷ Protected methods | 1 | 6.67% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected