Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.45MB] [CPU: ▼3.70ms] Passed 4 tests
An overview of server-side resources used by Media Downloader
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.94 ▲0.47 | 44.63 ▼1.34 |
Dashboard /wp-admin | 3.79 ▲0.48 | 49.44 ▼0.62 |
Posts /wp-admin/edit.php | 3.84 ▲0.48 | 48.08 ▼3.43 |
Add New Post /wp-admin/post-new.php | 6.31 ▲0.42 | 85.43 ▼9.39 |
Media Library /wp-admin/upload.php | 3.65 ▲0.42 | 45.87 ▲11.19 |
Server storage [IO: ▲2.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 110 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Media Downloader: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,929 ▲194 | 14.03 ▼0.53 | 6.12 ▲4.13 | 45.33 ▲0.78 |
Dashboard /wp-admin | 2,224 ▲36 | 5.88 ▲0.01 | 98.06 ▼20.59 | 37.67 ▼6.03 |
Posts /wp-admin/edit.php | 2,107 ▲18 | 2.03 ▼0.01 | 35.51 ▼3.83 | 33.38 ▲1.06 |
Add New Post /wp-admin/post-new.php | 1,532 ▼1 | 23.55 ▲0.28 | 682.30 ▲20.49 | 39.70 ▼12.42 |
Media Library /wp-admin/upload.php | 1,406 ▲21 | 4.23 ▲0.07 | 96.42 ▼2.95 | 42.78 ▲0.65 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 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
Please fix the following
- 82× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'getid3_lib' not found in wp-content/plugins/media-downloader/getid3/module.tag.id3v2.php:17
- > PHP Fatal error
Uncaught Error: Class 'getid3_handler' not found in wp-content/plugins/media-downloader/getid3/module.audio.voc.php:18
- > PHP Fatal error
Uncaught Error: Class 'getid3_lib' not found in wp-content/plugins/media-downloader/getid3/module.audio-video.asf.php:16
- > PHP Fatal error
Uncaught Error: Class 'getid3_handler' not found in wp-content/plugins/media-downloader/getid3/module.misc.cue.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/media-downloader/media-downloader.php:25
- > PHP Fatal error
Uncaught Error: Class 'getid3_handler' not found in wp-content/plugins/media-downloader/getid3/module.graphic.pcd.php:18
- > PHP Fatal error
Uncaught Error: Class 'getid3_handler' not found in wp-content/plugins/media-downloader/getid3/module.audio-video.wtv.php:18
- > PHP Fatal error
Uncaught Error: Class 'getID3' not found in wp-content/plugins/media-downloader/getid3/extension.cache.sqlite3.php:98
- > PHP Fatal error
Uncaught Error: Class 'getid3_handler' not found in wp-content/plugins/media-downloader/getid3/module.archive.tar.php:23
- > PHP Fatal error
Uncaught Error: Class 'getid3_handler' not found in wp-content/plugins/media-downloader/getid3/module.tag.lyrics3.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: media, player, mp3, post, audio...
media-downloader/media-downloader.php Passed 13 tests
The primary PHP file in "Media Downloader" version 0.4.7.3 is used by WordPress to initiate all plugin functionality
94 characters long description:
Media Downloader plugin lists MP3 files from a folder through the [mediadownloader] shortcode.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected31,077 lines of code in 102 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 93 | 5,613 | 10,965 | 30,205 |
PO File | 1 | 154 | 195 | 386 |
JavaScript | 3 | 16 | 44 | 368 |
CSS | 3 | 3 | 5 | 70 |
Markdown | 1 | 30 | 0 | 47 |
JSON | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Please tend to the following items
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 426)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 71.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 594.00 |
Average method complexity | 10.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 426.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 84 | |
▷ Abstract classes | 1 | 1.19% |
▷ Concrete classes | 83 | 98.81% |
▷ Final classes | 0 | 0.00% |
Methods | 647 | |
▷ Static methods | 214 | 33.08% |
▷ Public methods | 568 | 87.79% |
▷ Protected methods | 52 | 8.04% |
▷ Private methods | 27 | 4.17% |
Functions | 77 | |
▷ Named functions | 73 | 94.81% |
▷ Anonymous functions | 4 | 5.19% |
Constants | 241 | |
▷ Global constants | 223 | 92.53% |
▷ Class constants | 18 | 7.47% |
▷ Public constants | 18 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin