Benchmarks
Plugin footprint Passed 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.03MB] [CPU: ▼263.08ms] Passed 4 tests
A check of server-side resources used by Sensei-video-protection
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.14 | 41.09 ▲16.57 |
Dashboard /wp-admin | 3.09 ▲0.04 | 43.38 ▲3.97 |
Posts /wp-admin/edit.php | 3.14 ▲0.04 | 45.25 ▲1.38 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.03 | 94.82 ▼1,050.49 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 31.83 ▼7.19 |
Sensei security /wp-admin/options-general.php?page=sensei-security-cfg | 2.98 | 28.68 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Sensei-video-protection
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,654 ▲48 | 16.23 ▲0.58 | 7.52 ▼0.51 | 46.43 ▲1.62 |
Dashboard /wp-admin | 2,938 ▲89 | 5.83 ▼0.22 | 141.42 ▼5.54 | 104.71 ▼1.24 |
Posts /wp-admin/edit.php | 2,708 ▲2 | 2.69 ▼0.12 | 66.73 ▼1.54 | 92.98 ▲5.82 |
Add New Post /wp-admin/post-new.php | 1,654 ▲66 | 17.16 ▼4.33 | 364.30 ▲94.21 | 106.46 ▼3.25 |
Media Library /wp-admin/upload.php | 1,777 ▲5 | 5.00 ▼0.01 | 150.70 ▼13.19 | 105.46 ▼8.92 |
Sensei security /wp-admin/options-general.php?page=sensei-security-cfg | 1,021 | 2.11 | 53.61 | 64.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
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 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=sensei-security-cfg
- > Notice in wp-content/plugins/sensei-video-protection/sensei-security.php+89
Trying to access array offset on value of type bool
SRP Passed 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
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 a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: video, sensei, protecting video contents
sensei-video-protection/sensei-security.php 85% from 13 tests
"Sensei-video-protection" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Description: The plugin description must be longer than 10 characters (currently 0 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("sensei-video-protection.php" instead of "sensei-security.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected184 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 14 | 3 | 98 |
PHP | 1 | 14 | 11 | 86 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.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 1 test
Image compression Passed 1 test
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin