Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/vzaar-media-management/admin/admin.php+8
Methods with the same name as their class will not be constructors in a future version of PHP; esa_vzaarAdminPanel has a deprecated constructor
Server metrics [RAM: ▼1.81MB] [CPU: ▼186.08ms] Passed 4 tests
Server-side resources used by Vzaar Media Management
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.81 ▼0.92 | 11.13 ▼13.37 |
Dashboard /wp-admin | 1.84 ▼1.22 | 5.28 ▼28.98 |
Posts /wp-admin/edit.php | 1.84 ▼1.27 | 5.54 ▼39.12 |
Add New Post /wp-admin/post-new.php | 1.84 ▼3.60 | 7.14 ▼645.19 |
Media Library /wp-admin/upload.php | 1.84 ▼1.17 | 5.72 ▼31.01 |
Settings /wp-admin/admin.php?page=vzaar-media-management | 1.84 | 5.88 |
Add Media /wp-admin/admin.php?page=vzaarMedia-add | 1.84 | 5.84 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 3 new options
New WordPress options |
---|
myPlugin_next_update |
vzaar_next_update |
vzaar_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Vzaar Media Management
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,738 ▲142 | 16.02 ▼0.05 | 7.80 ▼2.28 | 49.68 ▲0.47 |
Dashboard /wp-admin | 2,996 ▲63 | 5.90 ▼0.05 | 142.54 ▼25.54 | 144.78 ▲20.14 |
Posts /wp-admin/edit.php | 2,770 ▲31 | 2.59 ▼0.11 | 67.91 ▼0.02 | 103.32 ▲0.82 |
Add New Post /wp-admin/post-new.php | 1,626 ▼57 | 18.76 ▲0.07 | 388.83 ▼0.70 | 109.09 ▼10.94 |
Media Library /wp-admin/upload.php | 1,784 ▼23 | 5.03 ▲0.01 | 135.95 ▼24.26 | 147.04 ▲24.36 |
Settings /wp-admin/admin.php?page=vzaar-media-management | 1,413 | 2.60 | 65.78 | 74.85 |
Add Media /wp-admin/admin.php?page=vzaarMedia-add | 1,247 | 2.42 | 53.21 | 91.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/vzaar-media-management/admin/admin.php+8
Methods with the same name as their class will not be constructors in a future version of PHP; esa_vzaarAdminPanel has a deprecated constructor
- The uninstall procedure has failed, leaving 3 options in the database
- vzaar_next_update
- vzaar_options
- myPlugin_next_update
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=vzaarMedia-add
- > Deprecated in wp-content/plugins/vzaar-media-management/admin/admin.php+8
Methods with the same name as their class will not be constructors in a future version of PHP; esa_vzaarAdminPanel has a deprecated constructor
- > GET request to /wp-admin/admin.php?page=vzaar-media-management
- > Warning in wp-content/plugins/vzaar-media-management/admin/admin.php+179
Use of undefined constant VZAARVERSION - assumed 'VZAARVERSION' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/admin.php?page=vzaarMedia-add
- > Deprecated in wp-content/plugins/vzaar-media-management/admin/vzaar/Vzaar.php+377
Methods with the same name as their class will not be constructors in a future version of PHP; XMLToArray has a deprecated constructor
- > GET request to /wp-admin/admin.php?page=vzaarMedia-add
- > Deprecated in wp-content/plugins/vzaar-media-management/admin/vzaar/AccountType.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; CostType has a deprecated constructor
- > GET request to /wp-admin/admin.php?page=vzaarMedia-add
- > Deprecated in wp-content/plugins/vzaar-media-management/admin/vzaar/AccountType.php+17
Methods with the same name as their class will not be constructors in a future version of PHP; RightsType has a deprecated constructor
- > GET request to /wp-admin/admin.php?page=vzaarMedia-add
- > Deprecated in wp-content/plugins/vzaar-media-management/admin/vzaar/AccountType.php+26
Methods with the same name as their class will not be constructors in a future version of PHP; AccountType has a deprecated constructor
- > GET request to /wp-admin/admin.php?page=vzaarMedia-add
- > Notice in wp-content/plugins/vzaar-media-management/admin/vzaar/OAuth.php+352
Undefined index: port
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=vzaarMedia-add
- > Warning in wp-content/plugins/vzaar-media-management/admin/vzaar/Vzaar.php+463
sizeof(): Parameter must be an array or an object that implements Countable
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=vzaarMedia-add
- > Notice in wp-content/plugins/vzaar-media-management/admin/vzaar-media-upload.php+82
Undefined index: bucket
- > GET request to /wp-admin/admin.php?page=vzaarMedia-add
- > Notice in wp-content/plugins/vzaar-media-management/admin/vzaar-media-upload.php+81
Undefined index: acl
- > GET request to /wp-admin/admin.php?page=vzaarMedia-add
- > Notice in wp-content/plugins/vzaar-media-management/admin/vzaar-media-upload.php+83
Undefined index: policy
- > GET request to /wp-admin/admin.php?page=vzaarMedia-add
- > Notice in wp-content/plugins/vzaar-media-management/admin/vzaar-media-upload.php+84
Undefined index: accesskeyid
- > GET request to /wp-admin/admin.php?page=vzaarMedia-add
- > Notice in wp-content/plugins/vzaar-media-management/admin/vzaar-media-upload.php+85
Undefined index: signature
- > GET request to /wp-admin/admin.php?page=vzaarMedia-add
- > Notice in wp-content/plugins/vzaar-media-management/admin/vzaar-media-upload.php+87
Undefined index: guid
- > GET request to /wp-admin/admin.php?page=vzaarMedia-add
- > Notice in wp-content/plugins/vzaar-media-management/admin/vzaar-media-upload.php+88
Undefined index: key
SRP 0% from 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
Please fix the following items
- 5× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/vzaar-media-management/admin/vzaar-media-upload.php
- > /wp-content/plugins/vzaar-media-management/vzaar-media-management.php
- > /wp-content/plugins/vzaar-media-management/admin/settings.php
- > /wp-content/plugins/vzaar-media-management/admin/install.php
- > /wp-content/plugins/vzaar-media-management/admin/vzaar/index.php
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vzaar-media-management/admin/admin.php:133
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/vzaar-media-management/admin/vzaar-media-embed.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/vzaar-media-management/admin/vzaar-shortcodes.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: Add images for these screenshots: #1 (Screenshot Vzaar Account Settings), #2 (Screenshot Vzaar Media Upload and List), #3 (Screenshot Edit Vzaar Media Information), #4 (Screenshot Add Vzaar Media to the Editor), #5 (Screenshot Show Details for the Media), #6 (Screenshot View Shortcode with Editor)
vzaar-media-management/vzaar-media-management.php Passed 13 tests
The entry point to "Vzaar Media Management" version 1.2 is a PHP file that has certain tags in its header comment area
84 characters long description:
This is a Vzaar Media (audio & video) Management plugin developed by eSoftArena Ltd.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin2,275 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 507 | 680 | 2,075 |
CSS | 2 | 19 | 8 | 177 |
JavaScript | 1 | 2 | 2 | 23 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 7.24 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 32 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 32 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 142 | |
▷ Static methods | 32 | 22.54% |
▷ Public methods | 131 | 92.25% |
▷ Protected methods | 2 | 1.41% |
▷ Private methods | 9 | 6.34% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 29 | |
▷ Global constants | 5 | 17.24% |
▷ Class constants | 24 | 82.76% |
▷ Public constants | 24 | 100.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.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/v.png | 1.17KB | 0.27KB | ▼ 77.01% |