Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▼7.85ms] Passed 4 tests
Server-side resources used by Media Vault
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 42.43 ▼1.06 |
Dashboard /wp-admin | 3.49 ▲0.14 | 51.55 ▼12.93 |
Posts /wp-admin/edit.php | 3.60 ▲0.25 | 52.06 ▲1.15 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 87.91 ▼18.55 |
Media Library /wp-admin/upload.php | 3.55 ▲0.33 | 40.23 ▲2.14 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
It is recommended to fix the following issues
- The plugin illegally modified 1 file (0.80KB) outside of "wp-content/plugins/media-vault/" and "wp-content/uploads/"
- (modified) .htaccess
Filesystem: 27 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
mgjp_mv_default_permission |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Media Vault: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.31 ▼0.01 | 1.74 ▼0.20 | 38.94 ▼6.50 |
Dashboard /wp-admin | 2,198 ▲24 | 5.62 ▼0.04 | 87.12 ▼0.93 | 41.24 ▼3.32 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.96 ▼0.01 | 35.29 ▼6.13 | 34.61 ▼1.27 |
Add New Post /wp-admin/post-new.php | 1,538 ▲12 | 18.18 ▼4.90 | 619.81 ▼27.31 | 67.68 ▲7.95 |
Media Library /wp-admin/upload.php | 1,493 ▲96 | 4.34 ▲0.16 | 101.32 ▼13.83 | 42.43 ▼3.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/media-vault/mv-extra-activation-steps.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function register_setting() in wp-content/plugins/media-vault/mv-options-media-vault.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/media-vault/mv-options-media-library.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/media-vault/_mediavault.php:46
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/media-vault/mv-options-media-new.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function add_meta_box() in wp-content/plugins/media-vault/mv-metaboxes.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/media-vault/mv-extra-deactivation-steps.php:58
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Tags: There are too many tags (17 tag instead of maximum 10)
media-vault/_mediavault.php 77% from 13 tests
"Media Vault" version 0.8.12's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("media-vault.php" instead of "_mediavault.php")
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
- Description: Keep the plugin description shorter than 140 characters (currently 148 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected1,951 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 906 | 998 | 1,834 |
JavaScript | 6 | 40 | 9 | 112 |
CSS | 5 | 0 | 0 | 5 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 5.67 |
▷ Minimum method complexity | 2.00 |
▷ Maximum method complexity | 8.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 | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 75 | |
▷ Named functions | 75 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
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 |
imgs/media-vault-logo.png | 17.40KB | 8.19KB | ▼ 52.95% |