Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼139.09ms] Passed 4 tests
An overview of server-side resources used by Default Media Library View
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.01 | 34.38 ▼0.93 |
Dashboard /wp-admin | 3.07 ▲0.02 | 45.93 ▼1.09 |
Posts /wp-admin/edit.php | 3.12 ▲0.02 | 43.78 ▲0.59 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 92.92 ▼551.84 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 33.13 ▼2.49 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Default Media Library View
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲107 | 16.14 ▲0.59 | 8.69 ▼1.47 | 47.51 ▲0.75 |
Dashboard /wp-admin | 2,967 ▲30 | 5.92 ▼0.06 | 149.21 ▲1.98 | 102.36 ▼7.84 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▲0.00 | 70.41 ▲5.35 | 87.12 ▼0.49 |
Add New Post /wp-admin/post-new.php | 1,615 ▲34 | 21.11 ▲6.71 | 300.61 ▼97.24 | 104.11 ▼8.45 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.04 ▼0.01 | 151.45 ▲0.56 | 114.85 ▲1.21 |
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
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/default-media-view/default-media-view.php:34
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Screenshots: Screenshot #1 (Screenshot showing output in the user profile admin area.) image required
- Donate link: Invalid URI ("")
default-media-view/default-media-view.php Passed 13 tests
The principal PHP file in "Default Media Library View" v. 1.0 is loaded by WordPress automatically on each request
61 characters long description:
Adds a media library view selection to the user profile page.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected38 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 13 | 29 | 38 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 4 | |
▷ Static methods | 1 | 25.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot.png | 6.10KB | 3.37KB | ▼ 44.76% |