Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.72MB] [CPU: ▲1.10ms] Passed 4 tests
A check of server-side resources used by Download Sender
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.79 ▲0.34 | 41.52 ▼3.00 |
Dashboard /wp-admin | 4.21 ▲0.91 | 51.66 ▲6.74 |
Posts /wp-admin/edit.php | 4.26 ▲0.90 | 57.29 ▲8.74 |
Add New Post /wp-admin/post-new.php | 6.72 ▲0.83 | 89.22 ▼8.07 |
Media Library /wp-admin/upload.php | 4.04 ▲0.81 | 45.01 ▲12.76 |
Logs /wp-admin/admin.php?page=downloadsender-logs | 3.99 | 34.32 |
Settings /wp-admin/admin.php?page=downloadsender-settings | 4.04 | 36.49 |
Admin Functions /wp-admin/admin.php?page=downloadsender-admin | 4.01 | 34.83 |
Server storage [IO: ▲1.49MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 54 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_download_sender_encrypted_links |
wp_download_sender_logs |
New WordPress options |
---|
recovery_mode_email_last_sent |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Download Sender: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,200 ▲465 | 16.34 ▲1.97 | 6.80 ▲4.94 | 48.86 ▼0.89 |
Dashboard /wp-admin | 2,471 ▲280 | 7.10 ▲1.19 | 134.76 ▲35.78 | 109.91 ▲64.72 |
Posts /wp-admin/edit.php | 2,387 ▲298 | 3.69 ▲1.72 | 55.84 ▲15.89 | 79.39 ▲44.30 |
Add New Post /wp-admin/post-new.php | 1,754 ▲220 | 23.25 ▲0.25 | 575.64 ▼85.69 | 46.29 ▼14.57 |
Media Library /wp-admin/upload.php | 1,542 ▲160 | 4.96 ▲0.76 | 90.58 ▼9.30 | 97.55 ▲51.38 |
Logs /wp-admin/admin.php?page=downloadsender-logs | 267 | 1.98 | 17.65 | 0.10 |
Settings /wp-admin/admin.php?page=downloadsender-settings | 873 | 1.95 | 20.79 | 36.82 |
Admin Functions /wp-admin/admin.php?page=downloadsender-admin | 901 | 1.98 | 19.96 | 37.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The plugin did not uninstall successfully, leaving 2 tables in the database
- wp_download_sender_encrypted_links
- wp_download_sender_logs
- This plugin does not fully uninstall, leaving 7 options in the database
- recovery_mode_email_last_sent
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=downloadsender-logs
- > Error in wp-content/plugins/download-sender/includes/admin/class-html-elements.php+685
Uncaught Error: Call to undefined method DownloadSender\Form::dropdown() in wp-content/plugins/download-sender/includes/admin/class-html-elements.php:685
Stack trace:
#0 wp-content/plugins/download-sender/includes/admin/class-settings-page.php(199): DownloadSender\Form->render()
#1 wp-includes/class-wp-hook.php(310): DownloadSender_Settings->logs_page_modals()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/admin-header.php(163): do_action()
#5 wp-admin/admin.php(239): require_once('/var/www/wordpr...')
#6 {main}
thrown- 14 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=downloadsender-admin
- > Notice in wp-content/plugins/download-sender/includes/admin/class-html-elements.php+307
Undefined variable: id
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=downloadsender-admin
- > Notice in wp-content/plugins/download-sender/includes/admin/class-html-elements.php+306
Undefined variable: name
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=downloadsender-admin
- > Notice in wp-content/plugins/download-sender/includes/admin/class-html-elements.php+306
Undefined variable: value
- 8 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=downloadsender-admin
- > Notice in wp-content/plugins/download-sender/includes/admin/class-html-elements.php+506
Undefined variable: current
- 8 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=downloadsender-admin
- > Notice in wp-content/plugins/download-sender/includes/admin/class-html-elements.php+506
Undefined variable: target
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=downloadsender-admin
- > Notice in wp-content/plugins/download-sender/includes/admin/class-html-elements.php+308
Undefined variable: description
- > GET request to /wp-admin/admin.php?page=downloadsender-settings
- > Error in wp-content/plugins/download-sender/includes/admin/class-html-elements.php+685
Uncaught Error: Call to undefined method DownloadSender\Form::checkbox() in wp-content/plugins/download-sender/includes/admin/class-html-elements.php:685
Stack trace:
#0 wp-content/plugins/download-sender/includes/admin/class-settings-page.php(939): DownloadSender\Form->render()
#1 wp-admin/includes/template.php(1824): DownloadSender_Settings->settings_tabs()
#2 wp-admin/includes/template.php(1778): do_settings_fields()
#3 wp-content/plugins/download-sender/includes/admin/class-settings-page.php(303): do_settings_sections()
#4 wp-includes/class-wp-hook.php(310): DownloadSender_Settings::settings_page()
#5 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#6 wp-includes/plugin.php(517): WP_Hook->do_action()
#7 wp-admin/admin.php(259): do_action()
#8 {main}
thrown- > GET request to /wp-admin/admin.php?page=downloadsender-admin
- > Notice in wp-content/plugins/download-sender/includes/admin/class-html-elements.php+506
Undefined variable: chosen
- > GET request to /wp-admin/admin.php?page=downloadsender-admin
- > Notice in wp-content/plugins/download-sender/includes/admin/class-html-elements.php+506
Undefined variable: icon_picker
- > GET request to /wp-admin/admin.php?page=downloadsender-admin
- > Notice in wp-content/plugins/download-sender/includes/admin/class-html-elements.php+506
Undefined variable: data_fa_icon
- > GET request to /wp-admin/admin.php?page=downloadsender-admin
- > Notice in wp-content/plugins/download-sender/includes/admin/class-html-elements.php+506
Undefined variable: hide_target
- > GET request to /wp-admin/admin.php?page=downloadsender-admin
- > Notice in wp-content/plugins/download-sender/includes/admin/class-html-elements.php+507
Undefined index: value
- > GET request to /wp-admin/admin.php?page=downloadsender-admin
- > Warning in wp-content/plugins/download-sender/includes/admin/class-html-elements.php+507
Invalid argument supplied for foreach()
- > GET request to /wp-admin/admin.php?page=downloadsender-admin
- > Notice in wp-content/plugins/download-sender/includes/admin/class-html-elements.php+532
Undefined variable: desc_style
- > GET request to /wp-admin/admin.php?page=downloadsender-admin
- > Error in wp-content/plugins/download-sender/includes/admin/class-html-elements.php+685
Uncaught Error: Call to undefined method DownloadSender\Form::dropdown() in wp-content/plugins/download-sender/includes/admin/class-html-elements.php:685
Stack trace:
#0 wp-content/plugins/download-sender/includes/admin/class-settings-page.php(1238): DownloadSender\Form->render()
#1 wp-content/plugins/download-sender/includes/admin/class-settings-page.php(955): DownloadSender_Settings::admin_tabs()
#2 wp-includes/class-wp-hook.php(310): DownloadSender_Settings::admin_page()
#3 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#4 wp-includes/plugin.php(517): WP_Hook->do_action()
#5 wp-admin/admin.php(259): do_action()
#6 {main}
thrown
SRP 50% from 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
Almost there! Just fix the following items
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/download-sender/includes/admin/class-logs-page.php on line 5
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/download-sender/includes/admin/class-logs-page.php on line 5
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/download-sender/includes/admin/class-logs-page.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/download-sender/includes/core-functions.php:152
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: A description for screenshot #4 is missing in download-sender/assets to your readme.txt
- Requires php: The plugin version is formatted incorrectly
download-sender/download-sender.php 92% from 13 tests
The entry point to "Download Sender" version 1.3.2 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 169 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected9,521 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 742 | 832 | 5,313 |
CSS | 9 | 299 | 89 | 2,356 |
JavaScript | 11 | 193 | 97 | 1,167 |
SVG | 1 | 0 | 0 | 685 |
PHP code Passed 2 tests
This is a short overview 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.42 |
Average class complexity | 38.42 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 142.00 |
Average method complexity | 5.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 69.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 1 | 8.33% |
Methods | 109 | |
▷ Static methods | 38 | 34.86% |
▷ Public methods | 96 | 88.07% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 13 | 11.93% |
Functions | 9 | |
▷ Named functions | 8 | 88.89% |
▷ Anonymous functions | 1 | 11.11% |
Constants | 4 | |
▷ Global constants | 2 | 50.00% |
▷ Class constants | 2 | 50.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
8 PNG files occupy 0.17MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/downloadsender-vc.png | 0.39KB | 0.40KB | 0.00% |
assets/lib/flag-sprites/flags.png | 148.90KB | 50.92KB | ▼ 65.80% |
assets/images/logs-email_verify-icons-sprites.png | 17.85KB | 1.46KB | ▼ 91.80% |
assets/images/downloadsender-blue.png | 0.33KB | 0.33KB | 0.00% |
assets/images/downloadsender-light.png | 0.33KB | 0.33KB | 0.00% |