Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- The plugin cannot be installed
- > Notice in wp-content/plugins/free-download-manager/admin/settings/multiple_file_upload.php+127
Undefined index: wp_custom_attachment_files_nonce
Server metrics [RAM: ▼0.51MB] [CPU: ▼28.41ms] Passed 4 tests
An overview of server-side resources used by FREE DOWNLOAD MANAGER
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.95 ▲0.49 | 45.31 ▲1.77 |
Dashboard /wp-admin | 3.40 ▲0.10 | 31.41 ▼23.32 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 31.89 ▼19.33 |
Add New Post /wp-admin/post-new.php | 3.44 ▼2.45 | 40.84 ▼66.68 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 31.73 ▼4.30 |
Reports /wp-admin/edit.php?post_type=free_downloads&page=download-reports | 3.39 | 31.12 |
All Downloads /wp-admin/edit.php?post_type=free_downloads | 3.46 | 30.33 |
Tag /wp-admin/edit-tags.php?taxonomy=download_tag&post_type=free_downloads | 3.40 | 28.75 |
Settings /wp-admin/edit.php?post_type=free_downloads&page=download-settings | 3.39 | 31.09 |
Category /wp-admin/edit-tags.php?taxonomy=download_category&post_type=free_downloads | 3.41 | 28.66 |
Add New /wp-admin/post-new.php?post_type=free_downloads | 3.44 | 36.74 |
Server storage [IO: ▲0.54MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 25 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_download_file_stats |
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
FREE DOWNLOAD MANAGER: 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,972 ▲226 | 13.78 ▼0.59 | 11.29 ▲9.27 | 43.77 ▲5.14 |
Dashboard /wp-admin | 2,252 ▲67 | 4.87 ▼0.06 | 102.04 ▼0.18 | 40.96 ▼3.51 |
Posts /wp-admin/edit.php | 2,131 ▲42 | 2.32 ▲0.31 | 43.24 ▼0.56 | 33.23 ▼1.79 |
Add New Post /wp-admin/post-new.php | 6,270 ▲4,753 | 26.09 ▲8.53 | 810.61 ▲212.99 | 36.14 ▼17.69 |
Media Library /wp-admin/upload.php | 1,447 ▲59 | 4.22 ▲0.07 | 97.53 ▲0.24 | 42.18 ▼4.94 |
Reports /wp-admin/edit.php?post_type=free_downloads&page=download-reports | 1,168 | 4.68 | 70.29 | 56.34 |
All Downloads /wp-admin/edit.php?post_type=free_downloads | 1,180 | 2.22 | 37.15 | 32.42 |
Tag /wp-admin/edit-tags.php?taxonomy=download_tag&post_type=free_downloads | 1,294 | 2.35 | 31.25 | 28.01 |
Settings /wp-admin/edit.php?post_type=free_downloads&page=download-settings | 941 | 1.94 | 28.47 | 27.22 |
Category /wp-admin/edit-tags.php?taxonomy=download_category&post_type=free_downloads | 1,322 | 2.28 | 28.35 | 27.75 |
Add New /wp-admin/post-new.php?post_type=free_downloads | 6,443 | 19.63 | 815.75 | 38.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_download_file_stats
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- 6 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=free_downloads
- > Notice in wp-content/plugins/free-download-manager/admin/settings/multiple_file_upload.php+4
Undefined variable: hook
- 6 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=free_downloads
- > Notice in wp-content/plugins/free-download-manager/admin/settings/multiple_file_upload.php+14
Undefined variable: post
- 6 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=free_downloads
- > Notice in wp-content/plugins/free-download-manager/admin/settings/multiple_file_upload.php+14
Trying to get property 'ID' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=free_downloads&page=download-reports
- > Warning in wp-content/plugins/free-download-manager/admin/settings/download_stats.php+144
Use of undefined constant download_file_stats - assumed 'download_file_stats' (this will throw an Error in a future version of PHP)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=free_downloads&page=download-reports
- > Warning in wp-content/plugins/free-download-manager/admin/settings/download_stats.php+145
Use of undefined constant posts - assumed 'posts' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/edit.php?post_type=free_downloads
- > Notice in wp-content/plugins/free-download-manager/admin/settings/download_stats.php+5
Undefined index: page
- > GET request to /wp-admin/post-new.php?post_type=free_downloads
- > Notice in wp-content/plugins/free-download-manager/admin/settings/multiple_file_upload.php+127
Undefined index: wp_custom_attachment_files_nonce
- > GET request to /wp-admin/post-new.php?post_type=free_downloads
- > Notice in wp-content/plugins/free-download-manager/admin/settings/download_settings.php+45
Undefined variable: limit
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/free-download-manager/templates/test.php
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/free-download-manager/admin/settings/download_settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/free-download-manager/admin/settings/multiple_file_upload.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/free-download-manager/admin/settings/download_page_settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/free-download-manager/admin/settings/download_stats.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 20 tag instead of maximum 10
- Contributors: Plugin contributors field is missing
free-download-manager/free-download-manager.php Passed 13 tests
This is the main PHP file of "FREE DOWNLOAD MANAGER" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
84 characters long description:
Free Download Manager is a WordPress Download Manager for freebie digital downloads.
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 plugin2,034 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 479 | 159 | 1,271 |
JavaScript | 9 | 76 | 94 | 482 |
CSS | 4 | 55 | 57 | 281 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 36.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 61.00 |
Average method complexity | 2.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 47 | |
▷ Static methods | 1 | 2.13% |
▷ Public methods | 33 | 70.21% |
▷ Protected methods | 7 | 14.89% |
▷ Private methods | 7 | 14.89% |
Functions | 30 | |
▷ Named functions | 30 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected