Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲3.41MB] [CPU: ▲18.96ms] 75% from 4 tests
Server-side resources used by Download Manager
Please have a look at the following items
- CPU: The total CPU usage must kept under 500.00ms (currently 1,998.38ms on /wp-admin/edit.php?post_type=wpdmpro&page=wpdm-addons)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.89 ▲3.43 | 59.82 ▲16.40 |
Dashboard /wp-admin | 6.77 ▲3.47 | 79.30 ▲29.68 |
Posts /wp-admin/edit.php | 6.79 ▲3.43 | 78.12 ▲27.42 |
Add New Post /wp-admin/post-new.php | 9.30 ▲3.41 | 105.02 ▲8.94 |
Media Library /wp-admin/upload.php | 6.60 ▲3.37 | 61.82 ▲23.06 |
Welcome /wp-admin/index.php?page=wpdm-welcome | 6.57 | 56.93 |
Tags /wp-admin/edit-tags.php?taxonomy=wpdmtag&post_type=wpdmpro | 6.58 | 59.49 |
Add-Ons /wp-admin/edit.php?post_type=wpdmpro&page=wpdm-addons | 7.37 | 1,998.38 |
Templates /wp-admin/edit.php?post_type=wpdmpro&page=templates | 6.67 | 64.79 |
All Files /wp-admin/edit.php?post_type=wpdmpro | 6.77 | 66.93 |
History /wp-admin/edit.php?post_type=wpdmpro&page=wpdm-stats | 6.70 | 65.28 |
Settings /wp-admin/edit.php?post_type=wpdmpro&page=settings | 6.72 | 65.43 |
Categories /wp-admin/edit-tags.php?taxonomy=wpdmcategory&post_type=wpdmpro | 6.58 | 61.09 |
Add New /wp-admin/post-new.php?post_type=wpdmpro | 6.93 | 78.31 |
Server storage [IO: ▲7.78MB] [DB: ▲0.02MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
It is recommended to fix the following issues
- Illegal file modification found: 2 files (0.00KB) outside of "wp-content/plugins/download-manager/" and "wp-content/uploads/"
- (new file) wp-content/wpdm-assets/link-templates/.empty
- (new file) wp-content/wpdm-assets/page-templates/.empty
Filesystem: 607 new files
Database: 7 new tables, 15 new options
New tables |
---|
wp_ahm_user_download_counts |
wp_ahm_download_stats |
wp_ahm_social_conns |
wp_ahm_emails |
wp_ahm_assets |
wp_ahm_sessions |
wp_ahm_asset_links |
New WordPress options |
---|
widget_wpdm_topdownloads |
widget_wpdm_search |
widget_theysaidso_widget |
widget_listpackages |
__wpdm_enc_key |
widget_wpdm_tags |
widget_catpackages |
widget_recent-comments |
theysaidso_admin_options |
widget_wpdm_newdownloads |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Download Manager
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,436 ▲689 | 16.29 ▲2.02 | 9.85 ▲8.27 | 31.15 ▼17.67 |
Dashboard /wp-admin | 2,708 ▲534 | 7.32 ▲1.78 | 134.98 ▲34.47 | 50.76 ▼1.98 |
Posts /wp-admin/edit.php | 2,240 ▲140 | 2.10 ▲0.16 | 54.90 ▲13.53 | 39.39 ▲3.67 |
Add New Post /wp-admin/post-new.php | 1,614 ▲88 | 22.99 ▼0.18 | 671.21 ▼15.41 | 36.26 ▼24.09 |
Media Library /wp-admin/upload.php | 1,617 ▲223 | 5.34 ▲1.18 | 104.49 ▼1.41 | 42.53 ▼1.50 |
Welcome /wp-admin/index.php?page=wpdm-welcome | 1,240 | 1.90 | 39.43 | 131.28 |
Tags /wp-admin/edit-tags.php?taxonomy=wpdmtag&post_type=wpdmpro | 1,383 | 2.34 | 31.84 | 32.17 |
Add-Ons /wp-admin/edit.php?post_type=wpdmpro&page=wpdm-addons | 6,805 | 4.82 | 75.71 | 124.75 |
Templates /wp-admin/edit.php?post_type=wpdmpro&page=templates | 2,328 | 4.19 | 65.93 | 66.20 |
All Files /wp-admin/edit.php?post_type=wpdmpro | 1,796 | 4.16 | 67.42 | 36.72 |
History /wp-admin/edit.php?post_type=wpdmpro&page=wpdm-stats | 1,795 | 4.43 | 77.64 | 53.86 |
Settings /wp-admin/edit.php?post_type=wpdmpro&page=settings | 2,416 | 4.84 | 89.39 | 65.49 |
Categories /wp-admin/edit-tags.php?taxonomy=wpdmcategory&post_type=wpdmpro | 1,799 | 2.37 | 31.50 | 32.05 |
Add New /wp-admin/post-new.php?post_type=wpdmpro | 6,374 | 11.00 | 270.07 | 324.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 50% 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
- This plugin does not fully uninstall, leaving 7 tables in the database
- wp_ahm_social_conns
- wp_ahm_emails
- wp_ahm_download_stats
- wp_ahm_sessions
- wp_ahm_assets
- wp_ahm_asset_links
- wp_ahm_user_download_counts
- This plugin does not fully uninstall, leaving 15 options in the database
- widget_theysaidso_widget
- widget_wpdm_topdownloads
- widget_wpdm_tags
- widget_recent-posts
- widget_packageinfo
- widget_wpdm_newdownloads
- widget_wpdm_categories
- widget_recent-comments
- widget_wpdm_search
- __wpdm_enc_key
- ...
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
- 57× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/download-manager/src/Admin/views/metaboxes/attach-file/media-library-file.php
- > /wp-content/plugins/download-manager/src/Package/views/link-templates/link-template-default-wdc.php
- > /wp-content/plugins/download-manager/src/Package/views/page-templates/page-template-doc-preview.php
- > /wp-content/plugins/download-manager/src/wpdm-start-download.php
- > /wp-content/plugins/download-manager/src/Package/views/page-templates/page-template-extended.php
- > /wp-content/plugins/download-manager/src/Package/views/link-templates/link-template-tabcard.php
- > /wp-content/plugins/download-manager/src/Package/views/link-templates/link-template-panel.php
- > /wp-content/plugins/download-manager/src/User/Login.php
- > /wp-content/plugins/download-manager/src/Package/views/page-templates/page-template-1col-flat.php
- > /wp-content/plugins/download-manager/src/Package/views/page-templates/page-template-simple.php
- 35× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/download-manager/src/Admin/views/welcome.php:1
- > PHP Notice
Undefined variable: files in wp-content/plugins/download-manager/src/Package/views/file-list.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function wpdm_thumb() in wp-content/plugins/download-manager/src/Package/views/link-templates/link-template-bsthumnail.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function WPDM\\wp_upload_dir() in wp-content/plugins/download-manager/download-manager.php:46
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/download-manager/src/Package/views/file-list.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'WPDM\\Package\\PackageController' not found in wp-content/plugins/download-manager/src/Package/Package.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/download-manager/src/__/views/template-preview.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function maybe_unserialize() in wp-content/plugins/download-manager/src/Admin/views/metaboxes/attach-file.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/download-manager/src/Admin/views/settings/basic.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/download-manager/src/Admin/views/metaboxes/lock-options.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- > GET request to /wp-admin/index.php?page=wpdm-welcome
- > Network (severe)
wp-content/plugins/download-manager/assets/font-awesome/css/font-awesome.min.css - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=wpdmpro&page=settings
- > Network (severe)
wp-content/plugins/download-manager/assets/simplebar/simplebar.css - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=wpdmpro&page=settings
- > Network (severe)
wp-content/plugins/download-manager/assets/simplebar/simplebar.min.js - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Donate link: Please fix this invalid url: ""
download-manager/download-manager.php Passed 13 tests
The main PHP script in "Download Manager" version 3.2.83 is automatically included on every request by WordPress
139 characters long description:
Manage, Protect and Track file downloads, and sell digital products from your WordPress site. A complete digital asset management solution.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin82,186 lines of code in 396 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 42 | 6,626 | 1,290 | 30,565 |
PHP | 170 | 4,362 | 2,548 | 22,610 |
JavaScript | 92 | 3,481 | 3,792 | 16,560 |
PO File | 7 | 6,435 | 11,390 | 10,732 |
HTML | 7 | 176 | 35 | 1,155 |
SVG | 78 | 6 | 8 | 564 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 38.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 479.00 |
Average method complexity | 4.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 97.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 63 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 63 | 100.00% |
▷ Final classes | 1 | 1.59% |
Methods | 600 | |
▷ Static methods | 174 | 29.00% |
▷ Public methods | 590 | 98.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 1.67% |
Functions | 78 | |
▷ Named functions | 73 | 93.59% |
▷ Anonymous functions | 5 | 6.41% |
Constants | 26 | |
▷ Global constants | 26 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
163 PNG files occupy 1.41MB with 0.46MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/themes/default/prev@2x.png | 4.13KB | 0.99KB | ▼ 76.02% |
assets/images/templates.png | 2.18KB | 1.50KB | ▼ 30.91% |
assets/jqui/theme/images/slider_handles.png | 1.90KB | 1.31KB | ▼ 30.90% |
assets/images/icon_sprite.png | 3.14KB | 2.30KB | ▼ 26.70% |
assets/images/doc.png | 0.64KB | 0.70KB | 0.00% |