Benchmarks
Plugin footprint 47% 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.23MB] [CPU: ▼7.47ms] 75% from 4 tests
Analyzing server-side resources used by SafeGuard Media
Please take the time to fix the following items
- CPU: The total CPU usage must kept under 500.00ms (currently 1,667.18ms on /wp-admin/admin.php?page=wpsafeguard_list)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.80 ▲0.34 | 44.24 ▲5.84 |
Dashboard /wp-admin | 3.64 ▲0.30 | 51.29 ▼19.89 |
Posts /wp-admin/edit.php | 3.76 ▲0.41 | 47.77 ▲3.51 |
Add New Post /wp-admin/post-new.php | 5.82 ▼0.07 | 85.05 ▼13.94 |
Media Library /wp-admin/upload.php | 3.57 ▲0.35 | 33.56 ▲0.43 |
List Files /wp-admin/admin.php?page=wpsafeguard_list | 3.55 | 1,667.18 |
Settings /wp-admin/admin.php?page=wpsafeguard_settings | 3.53 | 33.78 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 39 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
wpsafeguard_settings |
Browser metrics Passed 4 tests
SafeGuard Media: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲76 | 14.25 ▼0.07 | 1.67 ▼0.05 | 43.56 ▼0.09 |
Dashboard /wp-admin | 2,228 ▲58 | 5.58 ▼0.03 | 85.47 ▼28.04 | 40.27 ▼2.61 |
Posts /wp-admin/edit.php | 2,419 ▲319 | 3.40 ▲1.46 | 85.09 ▲45.66 | 32.72 ▼4.57 |
Add New Post /wp-admin/post-new.php | 1,760 ▲234 | 24.19 ▲1.26 | 655.93 ▲24.65 | 41.17 ▼23.61 |
Media Library /wp-admin/upload.php | 1,709 ▲306 | 5.28 ▲1.10 | 110.43 ▲8.30 | 42.45 ▲0.25 |
List Files /wp-admin/admin.php?page=wpsafeguard_list | 902 | 2.04 | 25.56 | 32.19 |
Settings /wp-admin/admin.php?page=wpsafeguard_settings | 1,022 | 1.70 | 24.71 | 27.12 |
Uninstaller [IO: ▲0.19MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attentionThis plugin does not fully uninstall, leaving 7 options in the database
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/safeguard-media/wp-safeguard-media.php+379
unlink(wp-content/uploads/safeguard-media/.): Is a directory
- Uninstaller has failed for this plugin, leaving 39 files (0.19MB) in the plugin directory
- (new file) css/jquery-ui.min.css
- (new file) images/artistscope-logo48.png
- (new file) images/corner_bot_left_clear.gif
- (new file) images/clr1x10.gif
- (new file) images/corner_top_left_clear.gif
- (new file) css/theme.min.css
- (new file) images/bot_bg.gif
- (new file) images/corner_bot_right_clear.gif
- (new file) css/wp-safeguard.css
- (new file) images/clear.gif
- ...
- db_upgraded
- recovery_mode_email_last_sent
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test
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)
No browser errors were detected
Optimizations
Plugin configuration 93% from 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
9 plugin tags: copy protect, protect video, prevent copy, content protection, video protect...
safeguard-media/wp-safeguard-media.php 85% from 13 tests
The principal PHP file in "SafeGuard Media" v. 2.0.0 is loaded by WordPress automatically on each request
The following require your attention:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("safeguard-media.php" instead of "wp-safeguard-media.php")
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
Success! There were no dangerous files found in this plugin2,809 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 352 | 146 | 1,929 |
PO File | 3 | 171 | 177 | 372 |
JavaScript | 2 | 84 | 29 | 299 |
CSS | 4 | 44 | 21 | 209 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 42 | |
▷ Named functions | 42 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
6 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/help-24-30.png | 1.52KB | 1.19KB | ▼ 21.77% |
images/help14.png | 1.00KB | 0.81KB | ▼ 19.57% |
images/settings.png | 1.83KB | 1.69KB | ▼ 7.68% |
images/safeguardbutton.png | 1.28KB | 0.64KB | ▼ 49.54% |
images/artistscope-logo48.png | 3.10KB | 1.78KB | ▼ 42.54% |