Benchmarks
Plugin footprint 82% from 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.06MB] [CPU: ▼0.29ms] Passed 4 tests
This is a short check of server-side resources used by Private Media
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 42.60 ▲1.24 |
Dashboard /wp-admin | 3.35 ▲0.05 | 59.28 ▲8.46 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 54.54 ▲3.22 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 91.15 ▼13.27 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 43.82 ▲7.64 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
It is recommended to fix the following issues
- You have illegally modified 2 files (2.69KB) outside of "wp-content/plugins/private-media/" and "wp-content/uploads/"
- (new file) wp-content/mu-plugins/pvtmed-endpoint-optimizer.php
- (new file) wp-content/pvtmed-uploads/.htaccess
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Private Media
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,903 ▲142 | 13.60 ▼0.76 | 7.17 ▲5.25 | 47.29 ▲7.55 |
Dashboard /wp-admin | 2,223 ▲20 | 5.84 ▲0.96 | 100.25 ▼15.99 | 40.65 ▼1.14 |
Posts /wp-admin/edit.php | 2,114 ▲14 | 2.07 ▲0.05 | 41.37 ▲1.18 | 34.90 ▼1.17 |
Add New Post /wp-admin/post-new.php | 1,537 ▲6 | 22.88 ▼0.37 | 601.51 ▼86.23 | 62.93 ▲7.02 |
Media Library /wp-admin/upload.php | 1,408 ▲11 | 4.29 ▲0.02 | 98.87 ▼4.01 | 44.58 ▼3.47 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 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
3 plugin tags: uploads, media, private
private-media/private-media.php 92% from 13 tests
This is the main PHP file of "Private Media" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
No dangerous file extensions were detected1,328 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 379 | 94 | 1,060 |
JavaScript | 6 | 64 | 3 | 130 |
Markdown | 1 | 18 | 0 | 71 |
CSS | 2 | 8 | 1 | 66 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 37.75 |
▷ Minimum class complexity | 29.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 3.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 60 | |
▷ Static methods | 12 | 20.00% |
▷ Public methods | 37 | 61.67% |
▷ Protected methods | 22 | 36.67% |
▷ Private methods | 1 | 1.67% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
Constants | 3 | |
▷ Global constants | 2 | 66.67% |
▷ Class constants | 1 | 33.33% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/forbidden.png | 16.99KB | 5.75KB | ▼ 66.12% |