Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.01MB] [CPU: ▼296.55ms] Passed 4 tests
Server-side resources used by ADM Media List
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 55.76 ▲5.91 |
Dashboard /wp-admin | 3.42 ▲0.01 | 32.82 ▼1.76 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 36.52 ▼5.56 |
Add New Post /wp-admin/post-new.php | 6.90 ▼0.08 | 91.60 ▼1,179.31 |
Media Library /wp-admin/upload.php | 3.31 ▲0.01 | 23.84 ▲0.44 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for ADM Media List
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,844 ▲90 | 15.95 ▼0.07 | 7.03 ▲0.92 | 2.68 ▼0.32 |
Dashboard /wp-admin | 2,937 ▲76 | 6.28 ▼0.01 | 118.01 ▼39.92 | 156.37 ▼32.86 |
Posts /wp-admin/edit.php | 2,692 ▲1 | 3.24 ▼0.00 | 63.32 ▼3.77 | 141.97 ▼6.05 |
Add New Post /wp-admin/post-new.php | 1,665 ▲4 | 16.06 ▼0.27 | 424.09 ▼5.29 | 157.08 ▼2.14 |
Media Library /wp-admin/upload.php | 1,694 ▼4 | 5.52 ▲0.07 | 141.59 ▼6.90 | 183.88 ▼3.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
The following issues need your attention
- 1× 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/adm-media-list/adm-media-list.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: media library urls, url list, media list, media library
adm-media-list/adm-media-list.php Passed 13 tests
The primary PHP file in "ADM Media List" version 1.0 is used by WordPress to initiate all plugin functionality
95 characters long description:
Adds a widget to the dashboard that displays a list of urls for each item in the media library.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin78 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 2 | 1 | 36 |
PHP | 1 | 18 | 12 | 36 |
JavaScript | 1 | 3 | 4 | 6 |
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.12 |
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 | 3 | |
▷ Named functions | 3 | 100.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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 8.50KB | 3.10KB | ▼ 63.52% |
assets/icon-128x128.png | 8.50KB | 3.10KB | ▼ 63.52% |