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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.20MB] [CPU: ▼2.80ms] Passed 4 tests
Analyzing server-side resources used by Download Plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 35.33 ▼3.30 |
Dashboard /wp-admin | 3.60 ▲0.30 | 45.97 ▼5.01 |
Posts /wp-admin/edit.php | 3.65 ▲0.30 | 47.33 ▲2.71 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.25 | 83.18 ▼5.60 |
Media Library /wp-admin/upload.php | 3.46 ▲0.23 | 38.09 ▲6.33 |
Dpwap Activate /wp-admin/admin.php?page=dpwap-activate | 3.56 | 34.59 |
Dpwap Plugin Download /wp-admin/admin.php?page=dpwap_plugin_download | 3.41 | 35.40 |
Multiple Upload /wp-admin/admin.php?page=mul_upload | 3.56 | 33.87 |
Dpwap Status /wp-admin/admin.php?page=activate-status | 3.56 | 35.28 |
Server storage [IO: ▲2.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 66 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Download Plugin
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,839 ▲78 | 14.74 ▲0.12 | 1.96 ▲0.27 | 39.97 ▼4.36 |
Dashboard /wp-admin | 2,217 ▲36 | 5.56 ▼0.16 | 84.78 ▼21.80 | 39.01 ▼0.20 |
Posts /wp-admin/edit.php | 2,125 ▲28 | 2.02 ▲0.04 | 35.57 ▼0.02 | 35.39 ▲1.14 |
Add New Post /wp-admin/post-new.php | 1,546 ▲20 | 23.08 ▼0.49 | 690.11 ▼16.73 | 57.83 ▲0.26 |
Media Library /wp-admin/upload.php | 1,422 ▲22 | 4.28 ▲0.07 | 102.75 ▲7.01 | 44.59 ▲2.01 |
Dpwap Activate /wp-admin/admin.php?page=dpwap-activate | 809 | 2.06 | 29.36 | 25.42 |
Dpwap Plugin Download /wp-admin/admin.php?page=dpwap_plugin_download | 780 | 1.67 | 25.87 | 20.71 |
Multiple Upload /wp-admin/admin.php?page=mul_upload | 890 | 1.72 | 27.98 | 28.41 |
Dpwap Status /wp-admin/admin.php?page=activate-status | 806 | 2.09 | 26.80 | 21.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=dpwap-activate
- > Warning in wp-content/plugins/download-plugin/app/Plugins/Base.php+80
include_once(wp-content/plugins/download-plugin/app/Plugins/templates/feature-package.php): failed to open stream: No such file or directory
- > GET request to /wp-admin/admin.php?page=dpwap-activate
- > Warning in wp-content/plugins/download-plugin/app/Plugins/Base.php+80
include_once(): Failed opening 'wp-content/plugins/download-plugin/app/Plugins/templates/feature-package.php' for inclusion (include_path='.:/usr/share/php')
- > GET request to /wp-admin/admin.php?page=dpwap_plugin_download
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class 'DPWAP\Plugins\Base' does not have a method 'dpwap_plugin_download_func'
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
The following issues need your attention
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/download-plugin/app/Users/templates/dpwap_users_info.php
- > /wp-content/plugins/download-plugin/app/bbPress/templates/dpwap_bbpress_info.php
- 16× 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 esc_html_e() in wp-content/plugins/download-plugin/app/Plugins/templates/dpwap_plugin_info.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/download-plugin/app/Plugins/templates/multiple_upload_plugin.php:7
- > PHP Warning
Use of undefined constant DPWAP_URL - assumed 'DPWAP_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/download-plugin/app/bbPress/templates/dpwap_bbpress_info.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/download-plugin/app/Themes/templates/dpwap_theme_info.php:3
- > PHP Warning
Use of undefined constant DPWAP_URL - assumed 'DPWAP_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/download-plugin/app/bbPress/templates/dpwap_bbpress_info.php on line 40
- > PHP Warning
Use of undefined constant DPWAP_URL - assumed 'DPWAP_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/download-plugin/app/bbPress/templates/dpwap_bbpress_info.php on line 22
- > PHP Warning
Use of undefined constant DPWAP_URL - assumed 'DPWAP_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/download-plugin/app/bbPress/templates/dpwap_bbpress_info.php on line 18
- > PHP Warning
Use of undefined constant DPWAP_URL - assumed 'DPWAP_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/download-plugin/app/bbPress/templates/dpwap_bbpress_info.php on line 44
- > PHP Warning
Use of undefined constant DPWAP_URL - assumed 'DPWAP_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/download-plugin/app/Users/templates/dpwap_users_info.php on line 18
- > PHP Warning
Use of undefined constant DPWAP_URL - assumed 'DPWAP_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/download-plugin/app/Users/templates/dpwap_users_info.php on line 22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Tags: Please delete some tags, you are using 13 tag instead of maximum 10
- Screenshots: A description for screenshot #2 is missing in download-plugin/assets to your readme.txt
download-plugin/download-plugin.php 92% from 13 tests
The main file in "Download Plugin" v. 2.0.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("2.7" instead of "4.8")
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
Everything looks great! No dangerous files found in this plugin3,166 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 312 | 288 | 1,713 |
CSS | 4 | 185 | 14 | 951 |
JavaScript | 5 | 24 | 29 | 304 |
PO File | 1 | 69 | 82 | 174 |
JSON | 2 | 0 | 0 | 24 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 28.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 71.00 |
Average method complexity | 3.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 82 | |
▷ Static methods | 16 | 19.51% |
▷ Public methods | 79 | 96.34% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 3.66% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 8 | |
▷ Global constants | 8 | 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
22 PNG files occupy 1.78MB with 1.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon-metagauss-theme.png | 4.66KB | 2.59KB | ▼ 44.47% |
assets/images/dp-step-1.png | 20.19KB | 7.18KB | ▼ 64.42% |
assets/images/multi-upload.png | 236.62KB | 74.43KB | ▼ 68.54% |
assets/images/dp-step-3.png | 18.99KB | 8.21KB | ▼ 56.77% |
assets/images/icon-registration-magic.png | 102.41KB | 36.16KB | ▼ 64.70% |