Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲1.43MB] [CPU: ▲2.16ms] Passed 4 tests
This is a short check of server-side resources used by Rundiz Downloads
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.61 ▲1.15 | 30.54 ▼7.25 |
Dashboard /wp-admin | 4.86 ▲1.55 | 55.91 ▼0.16 |
Posts /wp-admin/edit.php | 4.94 ▲1.58 | 60.32 ▲12.67 |
Add New Post /wp-admin/post-new.php | 7.43 ▲1.55 | 96.81 ▲3.45 |
Media Library /wp-admin/upload.php | 4.71 ▲1.48 | 46.81 ▲12.59 |
Add New /wp-admin/admin.php?page=rd-downloads_add | 4.75 | 42.72 |
Downloads /wp-admin/admin.php?page=rd-downloads | 5.13 | 46.05 |
/wp-admin/admin.php?page=rd-downloads_edit | 4.80 | 42.08 |
Settings /wp-admin/admin.php?page=rd-downloads_settings | 4.98 | 42.57 |
Logs /wp-admin/admin.php?page=rd-downloads_logs | 5.06 | 47.53 |
Server storage [IO: ▲6.90MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 233 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_rd_download_logs |
wp_rd_downloads |
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
rd_downloads_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Rundiz Downloads
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,946 ▲185 | 15.30 ▲0.95 | 9.05 ▲7.41 | 38.50 ▲2.05 |
Dashboard /wp-admin | 2,342 ▲168 | 5.97 ▲0.35 | 176.57 ▲92.45 | 51.06 ▲4.70 |
Posts /wp-admin/edit.php | 2,237 ▲134 | 1.99 ▼0.04 | 39.72 ▼4.65 | 36.18 ▼4.02 |
Add New Post /wp-admin/post-new.php | 1,679 ▲153 | 23.01 ▼0.10 | 661.89 ▼50.73 | 60.55 ▲9.34 |
Media Library /wp-admin/upload.php | 1,428 ▲28 | 4.18 ▼0.01 | 103.39 ▼0.81 | 57.05 ▲10.15 |
Add New /wp-admin/admin.php?page=rd-downloads_add | 1,210 | 1.92 | 31.72 | 44.27 |
Downloads /wp-admin/admin.php?page=rd-downloads | 1,284 | 1.90 | 26.85 | 39.33 |
/wp-admin/admin.php?page=rd-downloads_edit | 789 | 1.51 | 6.58 | 15.57 |
Settings /wp-admin/admin.php?page=rd-downloads_settings | 1,554 | 3.17 | 61.77 | 37.24 |
Logs /wp-admin/admin.php?page=rd-downloads_logs | 1,086 | 1.71 | 25.65 | 25.92 |
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
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% 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)
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 68× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Trait 'RdDownloads\\App\\AppTrait' not found in wp-content/plugins/rundiz-downloads/App/Libraries/Loader.php on line 12
- > PHP Fatal error
Uncaught Error: Class 'RdDownloads\\App\\Models\\WPListTable' not found in wp-content/plugins/rundiz-downloads/App/Models/RdDownloadLogsListTable.php:21
- > PHP Fatal error
Uncaught Error: Interface 'RdDownloads\\App\\Controllers\\ControllerInterface' not found in wp-content/plugins/rundiz-downloads/App/Controllers/Front/EnqueueCss.php:12
- > PHP Fatal error
Trait 'RdDownloads\\App\\AppTrait' not found in wp-content/plugins/rundiz-downloads/App/Controllers/Admin/Downloads/GithubOAuth.php on line 17
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/rundiz-downloads/App/Views/admin/Downloads/Management/helpTab/shortcodes_v.php:5
- > PHP Fatal error
Uncaught Error: Interface 'RdDownloads\\App\\Controllers\\ControllerInterface' not found in wp-content/plugins/rundiz-downloads/App/Controllers/Front/Hooks/WpLogout.php:12
- > PHP Fatal error
Uncaught Error: Interface 'RdDownloads\\Rundiz\\SimpleCache\\SimpleCacheInterface' not found in wp-content/plugins/rundiz-downloads/vendor/simple-cache/Rundiz/SimpleCache/Drivers/Memcache.php:21
- > PHP Fatal error
Uncaught Error: Interface 'RdDownloads\\App\\Controllers\\ControllerInterface' not found in wp-content/plugins/rundiz-downloads/App/Controllers/Front/Hooks/Query/GithubAutoUpdatePage.php:12
- > PHP Fatal error
Uncaught Error: Interface 'RdDownloads\\App\\Controllers\\ControllerInterface' not found in wp-content/plugins/rundiz-downloads/App/Controllers/Admin/Downloads/Logs.php:12
- > PHP Fatal error
Uncaught Error: Interface 'RdDownloads\\Rundiz\\SimpleCache\\SimpleCacheInterface' not found in wp-content/plugins/rundiz-downloads/vendor/simple-cache/Rundiz/SimpleCache/Drivers/Apc.php:21
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=rd-downloads_settings
- > Console-api (warning) in wp-content/plugins/rundiz-downloads/assets/js/ace/ace.js?ver=1.2.3-minnoconflict+0:51452
Automatically scrolling cursor into view after selection change" "this will be disabled in the next version" "set editor.$blockScrolling = Infinity to disable this message
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: file hosting, download, downloads, download manager, github
rundiz-downloads/rd-downloads.php 77% from 13 tests
The principal PHP file in "Rundiz Downloads" v. 1.0.11 is loaded by WordPress automatically on each request
The following require your attention:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Domain Path: You should use only dashes and lowercase characters for the domain path ("/App/languages/")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("rundiz-downloads.php" instead of "rd-downloads.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected20,799 lines of code in 182 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 101 | 2,407 | 4,559 | 10,212 |
SVG | 3 | 0 | 12 | 4,479 |
CSS | 13 | 1,448 | 37 | 3,316 |
JavaScript | 57 | 426 | 497 | 1,763 |
PO File | 1 | 317 | 439 | 719 |
Markdown | 4 | 88 | 0 | 229 |
JSON | 2 | 0 | 0 | 81 |
HTML | 1 | 1 | 0 | 0 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 26.84 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 220.00 |
Average method complexity | 5.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 25 | |
Interfaces | 4 | |
Traits | 1 | |
Classes | 68 | |
▷ Abstract classes | 3 | 4.41% |
▷ Concrete classes | 65 | 95.59% |
▷ Final classes | 0 | 0.00% |
Methods | 404 | |
▷ Static methods | 26 | 6.44% |
▷ Public methods | 309 | 76.49% |
▷ Protected methods | 62 | 15.35% |
▷ Private methods | 33 | 8.17% |
Functions | 11 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 11 | 100.00% |
Constants | 10 | |
▷ Global constants | 2 | 20.00% |
▷ Class constants | 8 | 80.00% |
▷ Public constants | 8 | 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
No PNG images were found in this plugin