Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼147.13ms] Passed 4 tests
Server-side resources used by WP Users Media
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 34.89 ▲15.59 |
Dashboard /wp-admin | 3.07 ▲0.02 | 41.80 ▼6.26 |
Posts /wp-admin/edit.php | 3.16 ▲0.05 | 36.86 ▼14.30 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 88.10 ▼568.26 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 34.83 ▲0.30 |
WP Users Media /wp-admin/options-general.php?page=wpusme_settings_page | 2.99 | 28.31 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for WP Users Media
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,689 ▲117 | 16.36 ▲0.76 | 7.97 ▼0.76 | 45.84 ▲2.47 |
Dashboard /wp-admin | 2,983 ▲55 | 5.92 ▼0.07 | 147.86 ▼20.39 | 106.87 ▼5.55 |
Posts /wp-admin/edit.php | 2,749 ▲10 | 2.73 ▲0.02 | 67.69 ▼7.18 | 94.24 ▲7.45 |
Add New Post /wp-admin/post-new.php | 1,622 ▼2,023 | 20.81 ▲2.60 | 294.47 ▼179.12 | 108.09 ▲1.85 |
Media Library /wp-admin/upload.php | 1,820 ▲13 | 5.04 ▲0.04 | 154.96 ▲4.42 | 117.71 ▲1.17 |
WP Users Media /wp-admin/options-general.php?page=wpusme_settings_page | 1,254 | 2.09 | 56.43 | 97.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: files, wp admin, photo, users, user...
wp-users-media/index.php 85% from 13 tests
The primary PHP file in "WP Users Media" version 4.2.3 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Name the main plugin file the same as the plugin slug ("wp-users-media.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin402 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 54 | 170 | 190 |
CSS | 1 | 1 | 0 | 184 |
JavaScript | 1 | 6 | 8 | 28 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 31.00 |
▷ Minimum class complexity | 31.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 15 | |
▷ Static methods | 1 | 6.67% |
▷ Public methods | 14 | 93.33% |
▷ Protected methods | 1 | 6.67% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/favicon-96x96.png | 3.39KB | 2.57KB | ▼ 24.06% |