Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼4.98ms] Passed 4 tests
A check of server-side resources used by WP Dispatcher - Secure Download Links
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 38.45 ▼1.28 |
Dashboard /wp-admin | 3.34 ▲0.04 | 47.67 ▼7.59 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 49.88 ▼2.48 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 88.89 ▼8.57 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 37.70 ▲2.96 |
Add New /wp-admin/admin.php?page=wp_dispatcher_new | 3.23 | 31.96 |
WP Dispatcher /wp-admin/admin.php?page=wp_dispatcher | 3.24 | 43.57 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 30 new files
Database: 2 new tables, 9 new options
New tables |
---|
wp_dispatcher_uploads |
wp_dispatcher_links |
New WordPress options |
---|
wp_dispatcher_links_db_version |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
wp_dispatcher_options |
widget_recent-comments |
wp_dispatcher_uploads_db_version |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Dispatcher - Secure Download Links
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,924 ▲163 | 13.44 ▼1.11 | 8.03 ▲6.18 | 41.05 ▼3.87 |
Dashboard /wp-admin | 2,225 ▲48 | 5.58 ▲0.00 | 92.74 ▼9.36 | 37.81 ▼5.24 |
Posts /wp-admin/edit.php | 2,127 ▲30 | 2.02 ▲0.04 | 37.72 ▼3.03 | 39.19 ▼0.83 |
Add New Post /wp-admin/post-new.php | 1,549 ▲23 | 23.33 ▼0.12 | 679.82 ▲40.05 | 57.28 ▼2.63 |
Media Library /wp-admin/upload.php | 1,427 ▲30 | 4.14 ▼0.06 | 101.80 ▼49.51 | 42.11 ▼29.59 |
Add New /wp-admin/admin.php?page=wp_dispatcher_new | 817 | 2.02 | 24.17 | 34.36 |
WP Dispatcher /wp-admin/admin.php?page=wp_dispatcher | 940 | 2.01 | 24.22 | 27.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The plugin did not uninstall successfully, leaving 2 tables in the database
- wp_dispatcher_uploads
- wp_dispatcher_links
- Zombie WordPress options detected upon uninstall: 9 options
- wp_dispatcher_links_db_version
- db_upgraded
- widget_recent-comments
- wp_dispatcher_options
- widget_recent-posts
- wp_dispatcher_uploads_db_version
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 take a closer look at the following
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-dispatcher/public/partials/wp-dispatcher-public-display.php
- > /wp-content/plugins/wp-dispatcher/admin/partials/wp-dispatcher-admin-display.php
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-dispatcher/admin/class-links-list-table.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-dispatcher/admin/class-uploads-list-table.php:5
- > 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
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
Please fix the following attributes:
- Plugin Name: You should set the name of your plugin on the first line (
=== wp-dispatcher ===
) - Donate link: Invalid URI found ("ekn.dev")
wp-dispatcher/wp-dispatcher.php Passed 13 tests
The main file in "WP Dispatcher - Secure Download Links" v. 1.2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
60 characters long description:
Generate secure download links dynamically from your uploads
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,579 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 585 | 1,575 | 1,564 |
CSS | 2 | 5 | 8 | 9 |
JavaScript | 2 | 4 | 54 | 6 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 13.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 129.00 |
Average method complexity | 2.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 109 | |
▷ Static methods | 2 | 1.83% |
▷ Public methods | 82 | 75.23% |
▷ Protected methods | 21 | 19.27% |
▷ Private methods | 6 | 5.50% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin