Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼5.70ms] Passed 4 tests
A check of server-side resources used by Download Media
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 44.78 ▲2.45 |
Dashboard /wp-admin | 3.34 ▲0.04 | 50.56 ▼1.48 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 51.57 ▼7.32 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 87.21 ▼15.95 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 40.45 ▲1.97 |
Download Media /wp-admin/options-general.php?page=download-media | 3.23 | 28.43 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Download Media
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.73 ▲0.35 | 1.61 ▼0.24 | 42.21 ▼2.32 |
Dashboard /wp-admin | 2,199 ▲22 | 5.70 ▲0.01 | 99.79 ▲9.16 | 43.64 ▲1.06 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.01 ▼0.02 | 39.49 ▲0.27 | 37.16 ▼0.41 |
Add New Post /wp-admin/post-new.php | 1,553 ▲13 | 23.39 ▼0.06 | 666.43 ▼25.07 | 52.38 ▼0.59 |
Media Library /wp-admin/upload.php | 1,422 ▲22 | 4.24 ▲0.00 | 103.31 ▼3.15 | 41.66 ▼3.29 |
Download Media /wp-admin/options-general.php?page=download-media | 854 | 2.19 | 27.08 | 31.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
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
5 plugin tags: image, download, media, library, post thumbnails
download-media/download-media.php Passed 13 tests
The main file in "Download Media" v. 1.4.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
81 characters long description:
Allows medias in the media library to be direclty download one by one or in bulk.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin475 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 101 | 101 | 419 |
JavaScript | 1 | 6 | 0 | 39 |
CSS | 1 | 0 | 0 | 17 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 18.33 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 27 | 90.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 10.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
PNG images were not found in this plugin