Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼6.31ms] Passed 4 tests
A check of server-side resources used by Clean Unused Medias
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 40.43 ▼0.94 |
Dashboard /wp-admin | 3.43 ▲0.13 | 45.98 ▼5.37 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 46.50 ▼3.45 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.13 | 81.10 ▼15.48 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 37.86 ▲1.17 |
Clean Unused Medias /wp-admin/upload.php?page=clean-unused-medias | 3.32 | 30.26 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 16 new options
New WordPress options |
---|
lnjcm_medias_in_option_ids |
lnjcm_medias_in_content_completed |
lnjcm_medias_in_usermeta_ids |
lnjcm_medias_in_content_pause |
widget_theysaidso_widget |
theysaidso_admin_options |
lnjcm_medias_in_content_completed_date |
can_compress_scripts |
db_upgraded |
lnjcm_medias_in_content_last_check |
... |
Browser metrics Passed 4 tests
Clean Unused Medias: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 14.48 ▲0.20 | 1.71 ▼0.21 | 45.27 ▲1.69 |
Dashboard /wp-admin | 2,210 ▲22 | 5.86 ▲0.77 | 98.33 ▼22.50 | 40.06 ▼7.76 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.06 ▲0.05 | 34.52 ▼4.17 | 33.19 ▼1.51 |
Add New Post /wp-admin/post-new.php | 1,536 ▲17 | 23.15 ▼0.22 | 683.47 ▼18.90 | 65.78 ▲15.18 |
Media Library /wp-admin/upload.php | 1,434 ▲46 | 4.38 ▲0.18 | 102.42 ▲2.16 | 41.31 ▼2.92 |
Clean Unused Medias /wp-admin/upload.php?page=clean-unused-medias | 1,038 | 2.23 | 55.16 | 41.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/upload.php?page=clean-unused-medias
- > POST request to /wp-admin/admin-ajax.php
- > Warning in wp-content/plugins/clean-unused-medias/ws/crawl.medias.php+103
Division by zero
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test
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 Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: acf, advanced custom fields, attachment, clean, media
clean-unused-medias/clean-unused-medias.php Passed 13 tests
The primary PHP file in "Clean Unused Medias" version 1.10 is used by WordPress to initiate all plugin functionality
84 characters long description:
Clean Unused Medias : Simple way to delete medias not attached to any posts or pages
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,842 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 191 | 285 | 1,243 |
JavaScript | 1 | 23 | 59 | 268 |
PO File | 1 | 76 | 93 | 224 |
CSS | 1 | 9 | 0 | 99 |
Markdown | 1 | 7 | 0 | 8 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
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 | 40 | |
▷ Named functions | 40 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin