Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.07MB] [CPU: ▼292.96ms] Passed 4 tests
A check of server-side resources used by Frontend File Manager & Sharing - User Private Files
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.16 | 56.30 ▲6.51 |
Dashboard /wp-admin | 3.50 ▲0.10 | 35.22 ▲0.89 |
Posts /wp-admin/edit.php | 3.73 ▲0.09 | 39.60 ▼1.98 |
Add New Post /wp-admin/post-new.php | 6.97 ▼0.00 | 92.07 ▼1,170.77 |
Media Library /wp-admin/upload.php | 3.38 ▲0.09 | 25.32 ▲0.04 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
Please fix the following
- There were 1 file (0.88KB) illegally modified outside of "wp-content/plugins/user-private-files/" and "wp-content/uploads/"
- (modified) .htaccess
Filesystem: 16 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Frontend File Manager & Sharing - User Private Files
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,907 ▲153 | 16.58 ▲0.59 | 9.68 ▲3.48 | 2.99 ▲0.69 |
Dashboard /wp-admin | 2,895 ▲34 | 6.10 ▼0.07 | 115.78 ▼18.72 | 152.95 ▼9.54 |
Posts /wp-admin/edit.php | 2,694 ▲6 | 3.36 ▲0.00 | 63.51 ▲0.40 | 142.10 ▼3.56 |
Add New Post /wp-admin/post-new.php | 1,752 ▲81 | 20.99 ▲0.22 | 451.83 ▼39.04 | 172.82 ▲4.91 |
Media Library /wp-admin/upload.php | 1,695 ▼3 | 5.55 ▲0.06 | 138.77 ▼20.19 | 187.24 ▼10.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: sharing, file manager, private files, client portal, restrict content...
user-private-files/user-private-files.php Passed 13 tests
The entry point to "Frontend File Manager & Sharing - User Private Files" version 1.1.2 is a PHP file that has certain tags in its header comment area
75 characters long description:
This plugin allows users to manage their uploaded files and access to them.
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
No dangerous file extensions were detected1,347 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 71 | 44 | 592 |
JavaScript | 1 | 31 | 14 | 347 |
CSS | 1 | 0 | 7 | 270 |
PO File | 2 | 42 | 42 | 138 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
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 | 2 | |
▷ Static methods | 2 | 100.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 10 | 76.92% |
▷ Anonymous functions | 3 | 23.08% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/document.png | 1.33KB | 0.23KB | ▼ 82.78% |
images/drag-upload.png | 0.75KB | 0.37KB | ▼ 50.20% |