Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.26MB] [CPU: ▼142.55ms] Passed 4 tests
An overview of server-side resources used by Videoencrypt Watermark
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.10 ▲0.26 | 36.07 ▲4.30 |
Dashboard /wp-admin | 3.33 ▲0.27 | 49.81 ▲8.23 |
Posts /wp-admin/edit.php | 3.44 ▲0.33 | 46.36 ▼6.63 |
Add New Post /wp-admin/post-new.php | 5.68 ▲0.24 | 92.55 ▼567.41 |
Media Library /wp-admin/upload.php | 3.27 ▲0.27 | 30.53 ▼0.46 |
WaterMark Videos /wp-admin/upload.php?page=videoencrypt-watermark | 3.24 | 25.18 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Videoencrypt Watermark
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,766 ▲170 | 18.60 ▲2.92 | 7.91 ▼2.42 | 48.07 ▲0.72 |
Dashboard /wp-admin | 3,059 ▲125 | 7.26 ▲1.25 | 167.20 ▲10.10 | 114.01 ▼6.93 |
Posts /wp-admin/edit.php | 2,854 ▲115 | 4.29 ▲1.61 | 93.09 ▲11.03 | 84.14 ▼2.52 |
Add New Post /wp-admin/post-new.php | 1,908 ▲408 | 15.85 ▼2.72 | 358.55 ▼16.84 | 124.34 ▲19.90 |
Media Library /wp-admin/upload.php | 1,779 ▼28 | 5.42 ▲0.39 | 140.90 ▼10.73 | 118.79 ▲2.33 |
WaterMark Videos /wp-admin/upload.php?page=videoencrypt-watermark | 1,551 | 4.11 | 79.94 | 92.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/upload.php?page=videoencrypt-watermark
- > Notice in wp-content/plugins/videoencrypt-watermark/includes/class.settings.php+404
Undefined variable: api_key
- > GET request to /wp-admin/upload.php?page=videoencrypt-watermark
- > Notice in wp-content/plugins/videoencrypt-watermark/includes/class.settings.php+655
Undefined index: std
- 2 occurences, only the last one shown
- > GET request to /wp-admin/upload.php?page=videoencrypt-watermark
- > Notice in wp-content/plugins/videoencrypt-watermark/includes/class.settings.php+708
Undefined variable: url
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: video, watermark, watermarking video, video watermark
videoencrypt-watermark/videoencrypt-watermark.php Passed 13 tests
The entry point to "Videoencrypt Watermark" version 1.0 is a PHP file that has certain tags in its header comment area
39 characters long description:
Watermark your videos the WordPress Way
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected2,089 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 349 | 98 | 1,520 |
JavaScript | 2 | 81 | 40 | 417 |
SVG | 2 | 0 | 0 | 86 |
CSS | 1 | 8 | 0 | 66 |
HTML | 1 | 0 | 1 | 0 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 42.40 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 141.00 |
Average method complexity | 5.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 5 | 10.20% |
▷ Public methods | 44 | 89.80% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 10.20% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 5 | |
▷ Global constants | 5 | 100.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
There were not PNG files found in your plugin