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
Installer ran successfully
Server metrics [RAM: ▲1.48MB] [CPU: ▲6.76ms] Passed 4 tests
Analyzing server-side resources used by STUlab Download Manager
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.94 ▲1.48 | 54.29 ▲8.16 |
Dashboard /wp-admin | 4.78 ▲1.48 | 63.39 ▲5.68 |
Posts /wp-admin/edit.php | 4.88 ▲1.52 | 61.86 ▲8.93 |
Add New Post /wp-admin/post-new.php | 7.37 ▲1.48 | 106.55 ▲4.26 |
Media Library /wp-admin/upload.php | 4.71 ▲1.48 | 48.89 ▲10.77 |
Add New /wp-admin/post-new.php?post_type=stu_download_manager | 4.82 | 58.41 |
Download List /wp-admin/edit.php?post_type=stu_download_manager | 4.74 | 48.20 |
Options /wp-admin/edit.php?post_type=stu_download_manager&page=stu_download_manager_Options | 4.75 | 51.38 |
Server storage [IO: ▲1.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for STUlab Download Manager
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲62 | 14.35 ▼0.05 | 2.16 ▲0.40 | 44.80 ▲0.43 |
Dashboard /wp-admin | 2,226 ▲55 | 5.64 ▲0.11 | 91.58 ▼8.66 | 41.45 ▼9.37 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 2.02 ▲0.05 | 35.56 ▼4.29 | 34.81 ▼1.34 |
Add New Post /wp-admin/post-new.php | 1,561 ▲23 | 18.36 ▼4.57 | 621.62 ▼20.42 | 87.58 ▲28.48 |
Media Library /wp-admin/upload.php | 1,428 ▲31 | 4.17 ▲0.08 | 101.50 ▼14.94 | 45.95 ▼1.41 |
Add New /wp-admin/post-new.php?post_type=stu_download_manager | 2,236 | 7.31 | 145.29 | 65.19 |
Download List /wp-admin/edit.php?post_type=stu_download_manager | 1,157 | 1.97 | 36.95 | 32.02 |
Options /wp-admin/edit.php?post_type=stu_download_manager&page=stu_download_manager_Options | 1,700 | 6.99 | 136.40 | 31.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/stulab-download-manager/stu-download.php
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/stulab-download-manager/class.studl-downloadmanager.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/stulab-download-manager/classes/class-studl-Shortcodes.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/stulab-download-manager/classes/class-studl-CustomType.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/stulab-download-manager/layout/stu_download_manager_options_page.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/stulab-download-manager/classes/class-studl-Setting.php:10
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- > GET request to /wp-admin/edit.php?post_type=stu_download_manager&page=stu_download_manager_Options
- > Network (severe)
wp-admin/[studl_thumbnail%20post_id=1] - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
5 plugin tags: upload, posts, files, download, download manager
stulab-download-manager/stu-download.php 92% from 13 tests
The main PHP script in "STUlab Download Manager" version 1.0.2 is automatically included on every request by WordPress
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("stulab-download-manager.php" instead of "stu-download.php")
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
There were no executable files found in this plugin3,006 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 204 | 21,386 | 2,886 |
PO File | 1 | 32 | 36 | 76 |
JavaScript | 1 | 4 | 1 | 28 |
HTML | 1 | 4 | 13 | 16 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.05 |
Average class complexity | 13.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 74.00 |
Average method complexity | 3.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 6 | 75.00% |
▷ Concrete classes | 2 | 25.00% |
▷ Final classes | 0 | 0.00% |
Methods | 44 | |
▷ Static methods | 43 | 97.73% |
▷ Public methods | 44 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2,087 | |
▷ Global constants | 16 | 0.77% |
▷ Class constants | 2,071 | 99.23% |
▷ Public constants | 2,071 | 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
There were not PNG files found in your plugin