Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Error in wp-content/plugins/kdisk/mydisk/class-kdisk-mydisk.php+52
Uncaught Error: Class 'KDisk_Base' not found in wp-content/plugins/kdisk/mydisk/class-kdisk-mydisk.php:52
Stack trace:
#0 wp-content/plugins/kdisk/templates/tem-mydisk.php(64): KDisk_MyDisk->initialize()
#1 wp-content/plugins/kdisk/kdisk.php(181): include('/var/www/wordpr...')
#2 wp-content/plugins/kdisk/kdisk.php(75): kdisk_upgrate_function()
#3 wp-includes/class-wp-hook.php(310): kdisk_plugin_activation()
#4 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#5 wp-includes/plugin.php(517): WP_Hook->do_action()
#6 wp-admin/includes/plugin.php(693): do_action()
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.95ms] Passed 4 tests
This is a short check of server-side resources used by KDisk
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.26 ▼1.41 |
Dashboard /wp-admin | 3.31 ▲0.00 | 49.68 ▼3.53 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.48 ▼4.19 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 94.77 ▼0.64 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.49 ▼2.68 |
Server storage [IO: ▲1.26MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 59 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for KDisk
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.56 ▲0.19 | 2.11 ▲0.30 | 48.20 ▲2.40 |
Dashboard /wp-admin | 2,195 ▲15 | 5.66 ▲0.01 | 85.38 ▼6.72 | 40.49 ▼6.71 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.01 ▲0.02 | 39.81 ▼0.82 | 37.64 ▲0.18 |
Add New Post /wp-admin/post-new.php | 1,526 ▼19 | 17.67 ▼5.49 | 636.55 ▲9.13 | 53.49 ▲8.37 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.19 ▲0.01 | 103.40 ▼0.65 | 48.16 ▲2.01 |
Uninstaller [IO: ▲1.26MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attentionZombie WordPress options were found after uninstall: 7 options
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/kdisk/uninstall.php+27
Trying to access array offset on value of type null
- The plugin did not uninstall correctly, leaving 59 files (1.26MB) in the plugin directory
- (new file) mydisk/class-kdisk-in-command.php
- (new file) lang/kdisk-ru_RU.mo
- (new file) mydisk/class-kdisk-mydisk.php
- (new file) kdisk.php
- (new file) lang/kdisk-ru_RU.po
- (new file) index.php
- (new file) css/style-admin.css
- (new file) mydisk/css/kv-elements.css
- (new file) mydisk/css/mydisk.css
- (new file) include/class-kdisk-wp.php
- ...
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- recovery_mode_email_last_sent
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Please take a closer look at the following
- 8× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/kdisk/mydisk/include/class-kdisk-make-info-file.php
- > /wp-content/plugins/kdisk/mydisk/class-kdisk-mydisk.php
- > /wp-content/plugins/kdisk/templates/tem-mydisk.php
- > /wp-content/plugins/kdisk/mydisk/include/class-kdisk-basemy.php
- > /wp-content/plugins/kdisk/mydisk/include/class-kdisk-stat.php
- > /wp-content/plugins/kdisk/mydisk/include/class-kdisk-tasks.php
- > /wp-content/plugins/kdisk/mydisk/include/class-kdisk-base.php
- > /wp-content/plugins/kdisk/mydisk/include/class-kdisk-ffmpeg.php
- 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Notice
Undefined variable: ranges in wp-content/plugins/kdisk/mydisk/include/class-kdisk-stat.php on line 138
- > PHP Warning
fwrite() expects parameter 1 to be resource, bool given in wp-content/plugins/kdisk/mydisk/include/class-kdisk-stat.php on line 203
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kdisk/kdisk.php:34
- > PHP Warning
fopen(wp-content/temporary/14-10-23dwn.log): failed to open stream: No such file or directory in /var/www/wordpress/wp-content/plugins/kdisk/mydisk/include/class-kdisk-stat.php on line 199
- > PHP Fatal error
Uncaught Error: Class 'KDisk_WP' not found in wp-content/plugins/kdisk/templates/tem-mydisk.php:18
- > PHP Warning
fclose() expects parameter 1 to be resource, bool given in wp-content/plugins/kdisk/mydisk/include/class-kdisk-stat.php on line 204
- > PHP Notice
Undefined index: User-Agent in wp-content/plugins/kdisk/mydisk/include/class-kdisk-stat.php on line 133
- > PHP Warning
fwrite() expects parameter 1 to be resource, bool given in wp-content/plugins/kdisk/mydisk/include/class-kdisk-stat.php on line 202
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/kdisk/mydisk/include/class-kdisk-stat.php on line 167
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (Пример папки с файлами), #2 (Процесс конвертации видео файла используя ffmpeg), #3 (Properties file)
kdisk/kdisk.php Passed 13 tests
This is the main PHP file of "KDisk" version 1.0.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
111 characters long description:
Плагин загрузка, хранение, скачивание файлов пользователями
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
Success! There were no dangerous files found in this plugin7,415 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 966 | 520 | 4,644 |
JavaScript | 6 | 232 | 67 | 1,722 |
CSS | 3 | 103 | 11 | 844 |
PO File | 1 | 90 | 108 | 205 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 44.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 116.00 |
Average method complexity | 4.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 41.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 104 | |
▷ Static methods | 24 | 23.08% |
▷ Public methods | 103 | 99.04% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 0.96% |
Functions | 18 | |
▷ Named functions | 18 | 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 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
24 PNG files occupy 0.97MB with 0.63MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
mydisk/imgs/kvrecovert.png | 28.93KB | 6.59KB | ▼ 77.24% |
mydisk/imgs/kvtrasht.png | 36.41KB | 9.48KB | ▼ 73.97% |
screenshot-2.png | 122.37KB | 36.32KB | ▼ 70.32% |
mydisk/imgs/folder.png | 26.04KB | 3.72KB | ▼ 85.71% |
mydisk/imgs/kvmenu.png | 1.74KB | 1.44KB | ▼ 17.06% |