Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▲0.03ms] Passed 4 tests
A check of server-side resources used by Protected Video
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 38.94 ▲1.78 |
Dashboard /wp-admin | 3.37 ▲0.07 | 57.02 ▲9.61 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 50.52 ▼3.32 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 95.30 ▼0.29 |
Media Library /wp-admin/upload.php | 3.30 ▲0.06 | 34.55 ▲1.96 |
Protected Video /wp-admin/options-general.php?page=protected-video | 3.26 | 33.26 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Protected Video
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲34 | 14.35 ▼0.05 | 1.63 ▲0.01 | 42.44 ▲4.71 |
Dashboard /wp-admin | 2,202 ▲25 | 5.58 ▼0.04 | 91.43 ▼7.70 | 45.86 ▲7.61 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.00 ▲0.06 | 39.53 ▼4.68 | 36.09 ▼2.24 |
Add New Post /wp-admin/post-new.php | 1,544 ▲18 | 23.65 ▼0.04 | 612.24 ▼80.56 | 52.60 ▲1.26 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.23 ▲0.01 | 98.98 ▼6.51 | 42.38 ▼4.87 |
Protected Video /wp-admin/options-general.php?page=protected-video | 792 | 2.00 | 23.73 | 25.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: vimeo, gutenberg, video player, block, plyr...
protected-video/protected-video.php Passed 13 tests
The entry point to "Protected Video" version 1.10.9 is a PHP file that has certain tags in its header comment area
61 characters long description:
YouTube/Vimeo player that prevents easy sharing of the video.
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
Good job! No executable or dangerous file extensions detected326 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 50 | 225 | 282 |
JSON | 1 | 0 | 0 | 40 |
CSS | 2 | 0 | 0 | 2 |
JavaScript | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 75.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 25.00% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
No PNG files were detected