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: ▲0.22MB] [CPU: ▼0.61ms] Passed 4 tests
This is a short check of server-side resources used by File Manager, Code Editor, and Backup by Managefy
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 38.05 ▼4.44 |
Dashboard /wp-admin | 3.63 ▲0.33 | 47.02 ▲1.98 |
Posts /wp-admin/edit.php | 3.68 ▲0.32 | 47.27 ▼0.22 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.26 | 86.21 ▲0.26 |
Media Library /wp-admin/upload.php | 3.49 ▲0.26 | 36.15 ▲3.43 |
Backups /wp-admin/admin.php?page=flmbkp_page_backups | 3.80 | 35.37 |
Settings /wp-admin/admin.php?page=flmbkp_page_settings | 3.71 | 36.08 |
Database /wp-admin/admin.php?page=flmbkp_page_database | 3.75 | 43.86 |
File Manager /wp-admin/admin.php?page=flmbkp_file_manager | 3.76 | 36.66 |
Server storage [IO: ▲13.51MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 984 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_flmbkp_backup |
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
flmbkpbuild_version |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for File Manager, Code Editor, and Backup by Managefy
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲99 | 13.25 ▼1.19 | 4.55 ▲2.80 | 40.94 ▼1.64 |
Dashboard /wp-admin | 2,243 ▲71 | 5.82 ▼0.09 | 98.05 ▼7.21 | 78.73 ▲38.09 |
Posts /wp-admin/edit.php | 2,126 ▲37 | 1.99 ▼0.03 | 35.08 ▼4.21 | 33.64 ▼2.86 |
Add New Post /wp-admin/post-new.php | 1,551 ▲23 | 23.03 ▲4.68 | 690.95 ▲41.88 | 50.57 ▼4.53 |
Media Library /wp-admin/upload.php | 1,422 ▲31 | 4.13 ▼0.10 | 96.27 ▼4.11 | 64.21 ▲20.93 |
Backups /wp-admin/admin.php?page=flmbkp_page_backups | 1,123 | 2.19 | 22.54 | 79.11 |
Settings /wp-admin/admin.php?page=flmbkp_page_settings | 1,004 | 2.19 | 24.11 | 37.72 |
Database /wp-admin/admin.php?page=flmbkp_page_database | 1,290 | 1.80 | 12.91 | 30.45 |
File Manager /wp-admin/admin.php?page=flmbkp_file_manager | 4,976 | 6.48 | 234.30 | 161.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=flmbkp_file_manager
- > Deprecated in wp-content/plugins/softdiscover-db-file-manager/libraries/elfinder/php/elFinder.class.php+2614
Array and string offset access syntax with curly braces is deprecated
SRP 0% 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
Please fix the following
- 37× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/softdiscover-db-file-manager/modules/settings/controllers/backend.php
- > /wp-content/plugins/softdiscover-db-file-manager/modules/filemanager/controllers/backup.php
- > /wp-content/plugins/softdiscover-db-file-manager/modules/database/views/backend/list_tables.php
- > /wp-content/plugins/softdiscover-db-file-manager/classes/Pagination.php
- > /wp-content/plugins/softdiscover-db-file-manager/modules/filemanager/views/backend/load_file_manager.php
- > /wp-content/plugins/softdiscover-db-file-manager/classes/uiform-bootstrap.php
- > /wp-content/plugins/softdiscover-db-file-manager/db-file-manager.php
- > /wp-content/plugins/softdiscover-db-file-manager/modules/filemanager/views/backup/list_backups.php
- > /wp-content/plugins/softdiscover-db-file-manager/views/layout_blank.php
- > /wp-content/plugins/softdiscover-db-file-manager/modules/optbuilder/views/fields/parsehtml_button.php
- 22× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'elFinderEditor' not found in wp-content/plugins/softdiscover-db-file-manager/libraries/elfinder/php/editors/OnlineConvert/editor.php:3
- > PHP Fatal error
Uncaught Error: Class 'elFinderVolumeDriver' not found in wp-content/plugins/softdiscover-db-file-manager/libraries/elfinder/php/elFinderVolumeMySQL.class.php:8
- > PHP Fatal error
Uncaught Error: Class 'elFinderPlugin' not found in wp-content/plugins/softdiscover-db-file-manager/libraries/elfinder/php/plugins/AutoRotate/plugin.php:52
- > PHP Fatal error
Uncaught Error: Class 'elFinderVolumeDriver' not found in wp-content/plugins/softdiscover-db-file-manager/libraries/elfinder/php/elFinderVolumeOneDrive.class.php:10
- > PHP Fatal error
Uncaught Error: Class 'elFinderVolumeDriver' not found in wp-content/plugins/softdiscover-db-file-manager/libraries/elfinder/php/elFinderVolumeBox.class.php:10
- > PHP Fatal error
Uncaught Error: Class 'elFinderVolumeDriver' not found in wp-content/plugins/softdiscover-db-file-manager/libraries/elfinder/php/elFinderVolumeDropbox2.class.php:16
- > PHP Fatal error
Uncaught Error: Class 'elFinderVolumeLocalFileSystem' not found in wp-content/plugins/softdiscover-db-file-manager/libraries/elfinder/php/elFinderVolumeTrash.class.php:8
- > PHP Fatal error
Uncaught Error: Class 'elFinderEditor' not found in wp-content/plugins/softdiscover-db-file-manager/libraries/elfinder/php/editors/ZohoOffice/editor.php:3
- > PHP Fatal error
Uncaught Error: Class 'elFinderPlugin' not found in wp-content/plugins/softdiscover-db-file-manager/libraries/elfinder/php/plugins/Sanitizer/plugin.php:47
- > PHP Fatal error
Uncaught Error: Class 'elFinderPlugin' not found in wp-content/plugins/softdiscover-db-file-manager/libraries/elfinder/php/plugins/Watermark/plugin.php:70
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Tags: You are using too many tags: 12 tag instead of maximum 10
softdiscover-db-file-manager/db-file-manager.php 85% from 13 tests
"File Manager, Code Editor, and Backup by Managefy" version 1.3.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 201 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("softdiscover-db-file-manager.php" instead of "db-file-manager.php")
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected191,635 lines of code in 774 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 399 | 12,449 | 12,715 | 112,505 |
CSS | 111 | 3,788 | 1,266 | 34,746 |
PHP | 70 | 3,976 | 10,222 | 21,240 |
HTML | 136 | 2,641 | 8 | 14,192 |
SVG | 25 | 93 | 0 | 4,871 |
Sass | 15 | 38 | 35 | 1,796 |
LESS | 14 | 34 | 44 | 1,758 |
Markdown | 1 | 65 | 0 | 242 |
PO File | 1 | 99 | 112 | 217 |
JSON | 1 | 0 | 0 | 46 |
SQL | 1 | 1 | 0 | 22 |
PHP code 0% from 2 tests
An overview of cyclomatic complexity and code structure
The following items need your attention
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 1,342)
- Method cyclomatic complexity should be reduced to less than 100 (currently 149)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 108.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,342.00 |
Average method complexity | 6.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 149.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 46 | |
▷ Abstract classes | 2 | 4.35% |
▷ Concrete classes | 44 | 95.65% |
▷ Final classes | 1 | 2.27% |
Methods | 1,010 | |
▷ Static methods | 85 | 8.42% |
▷ Public methods | 404 | 40.00% |
▷ Protected methods | 573 | 56.73% |
▷ Private methods | 33 | 3.27% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 120 | |
▷ Global constants | 35 | 29.17% |
▷ Class constants | 85 | 70.83% |
▷ Public constants | 85 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
135 PNG files occupy 0.62MB with 0.26MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/backend/img/uifm_field_recaptcha_prev_white_img.png | 4.97KB | 3.17KB | ▼ 36.26% |
assets/common/css/jqueryui/1.11.4/themes/start/images/ui-bg_gloss-wave_50_6eac2c_500x100.png | 5.77KB | 2.11KB | ▼ 63.49% |
libraries/elfinder/img/volume_icon_dropbox.png | 0.40KB | 0.53KB | 0.00% |
assets/backend/image/express/express-banner-get-pro.png | 327.03KB | 108.94KB | ▼ 66.69% |
assets/backend/image/about/logo.png | 6.26KB | 3.67KB | ▼ 41.47% |