Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼10.62ms] Passed 4 tests
Analyzing server-side resources used by Simple Download Manager for WP Document Revisions
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 38.59 ▼7.74 |
Dashboard /wp-admin | 3.31 ▼0.04 | 51.32 ▼16.15 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 52.60 ▲5.64 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 93.13 ▼12.04 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.10 ▼6.56 |
Server storage [IO: ▲0.59MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 56 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Simple Download Manager for WP Document Revisions
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.25 ▼0.13 | 1.74 ▼0.06 | 37.07 ▼11.95 |
Dashboard /wp-admin | 2,192 ▲15 | 5.65 ▲0.05 | 91.83 ▲3.27 | 41.47 ▲1.55 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.05 ▲0.05 | 40.42 ▲4.77 | 36.60 ▼0.59 |
Add New Post /wp-admin/post-new.php | 1,549 ▲9 | 23.09 ▼0.15 | 641.47 ▼53.67 | 63.86 ▲1.53 |
Media Library /wp-admin/upload.php | 1,397 ▼0 | 4.21 ▼0.04 | 94.57 ▼20.65 | 47.67 ▼1.47 |
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 did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 20× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/wpdr-simple-downloads/includes/admin/wpdrsd-admin-settings-help.php
- > /wp-content/plugins/wpdr-simple-downloads/includes/wpdrsd-functions-global.php
- > /wp-content/plugins/wpdr-simple-downloads/includes/admin/ddwlib-plugin-installer-recommendations.php
- > /wp-content/plugins/wpdr-simple-downloads/includes/wpdrsd-functions.php
- > /wp-content/plugins/wpdr-simple-downloads/includes/admin/views/wpdrsd-settings-form.php
- > /wp-content/plugins/wpdr-simple-downloads/uninstall.php
- > /wp-content/plugins/wpdr-simple-downloads/includes/admin/wpdrsd-admin-extras.php
- > /wp-content/plugins/wpdr-simple-downloads/includes/third-party-compat/wpdrsd-genesis-framework.php
- > /wp-content/plugins/wpdr-simple-downloads/includes/wpdrsd-widgets-init.php
- > /wp-content/plugins/wpdr-simple-downloads/includes/widgets/wpdrsd-widget-taxonomies.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Requires at least: Version format is invalid
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
wpdr-simple-downloads/wpdr-simple-downloads.php Passed 13 tests
"Simple Download Manager for WP Document Revisions" version 1.2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
112 characters long description:
Use the WP Document Revisions plugin as very basic & simple download manager with this additional add-on plugin.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected5,792 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 7 | 1,053 | 1,924 | 3,280 |
PHP | 22 | 929 | 1,415 | 2,185 |
Markdown | 3 | 185 | 0 | 286 |
JSON | 1 | 0 | 0 | 22 |
CSS | 2 | 5 | 15 | 19 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 14.25 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 3.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 8 | 38.10% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 74 | |
▷ Named functions | 74 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin