Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼4.17ms] Passed 4 tests
An overview of server-side resources used by File Manager Pro - Filester
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 39.46 ▼1.88 |
Dashboard /wp-admin | 3.36 ▲0.06 | 49.91 ▼4.81 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 52.67 ▼1.79 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 96.39 ▼8.19 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 36.33 ▲0.40 |
Recommended Plugins /wp-admin/admin.php?page=filester_recommended_plugins | 3.25 | 33.06 |
File Manager /wp-admin/admin.php?page=njt-fs-filemanager | 3.31 | 36.34 |
Settings /wp-admin/admin.php?page=filester-settings | 3.36 | 30.29 |
Server storage [IO: ▲5.95MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Please fix the following
- Illegal file modification found: 1 file (0.00KB) outside of "wp-content/plugins/filester/" and "wp-content/uploads/"
- (new file) .tmb/.empty
Filesystem: 314 new files
Database: no new tables, 13 new options
New WordPress options |
---|
njt_popup_filebird_cross |
theysaidso_admin_options |
njt_fs_first_time_active |
njt_fs_review |
njt_fs_settings |
can_compress_scripts |
njt_fs_version |
db_upgraded |
njt_fs_selector_themes |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
A check of browser resources used by File Manager Pro - Filester
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,908 ▲162 | 13.23 ▼1.17 | 1.65 ▼0.17 | 21.16 ▼24.22 |
Dashboard /wp-admin | 2,317 ▲129 | 5.86 ▲0.94 | 100.55 ▼4.65 | 81.32 ▲37.23 |
Posts /wp-admin/edit.php | 2,123 ▲31 | 2.02 ▼0.02 | 39.06 ▼5.92 | 34.04 ▼2.95 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 17.74 ▼5.34 | 606.38 ▼31.10 | 63.63 ▲11.44 |
Media Library /wp-admin/upload.php | 1,433 ▲45 | 4.33 ▲0.03 | 97.71 ▼7.20 | 44.22 ▲1.00 |
Recommended Plugins /wp-admin/admin.php?page=filester_recommended_plugins | 1,103 | 2.37 | 33.42 | 31.30 |
File Manager /wp-admin/admin.php?page=njt-fs-filemanager | 4,293 | 4.93 | 216.56 | 86.02 |
Settings /wp-admin/admin.php?page=filester-settings | 1,775 | 3.05 | 67.68 | 72.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 13 options
- njt_popup_filebird_cross
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- njt_fs_selector_themes
- njt_fs_review
- widget_recent-posts
- njt_fs_settings
- can_compress_scripts
- njt_notification_filebird_cross
- ...
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/filester/views/pages/html-filemanager-list-operations.php
- 24× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'elFinderPlugin' not found in wp-content/plugins/filester/includes/File_manager/lib/php/plugins/Watermark/plugin.php:70
- > PHP Fatal error
Uncaught Error: Class 'elFinderEditor' not found in wp-content/plugins/filester/includes/File_manager/lib/php/editors/OnlineConvert/editor.php:3
- > PHP Fatal error
Uncaught Error: Class 'elFinder' not found in wp-content/plugins/filester/includes/File_manager/lib/php/elFinderFlysystemGoogleDriveNetmount.php:12
- > PHP Fatal error
Uncaught Error: Interface 'elFinderSessionInterface' not found in wp-content/plugins/filester/includes/File_manager/lib/php/elFinderSession.php:11
- > PHP Fatal error
Uncaught Error: Class 'elFinderVolumeFTP' not found in wp-content/plugins/filester/includes/File_manager/lib/php/elFinderVolumeSFTPphpseclib.class.php:10
- > PHP Fatal error
Uncaught Error: Class 'elFinderVolumeMySQL' not found in wp-content/plugins/filester/includes/File_manager/lib/php/elFinderVolumeTrashMySQL.class.php:8
- > PHP Fatal error
Uncaught Error: Class 'elFinderVolumeDriver' not found in wp-content/plugins/filester/includes/File_manager/lib/php/elFinderVolumeMySQL.class.php:8
- > PHP Fatal error
Uncaught Error: Class 'elFinderVolumeDriver' not found in wp-content/plugins/filester/includes/File_manager/lib/php/elFinderVolumeOneDrive.class.php:10
- > PHP Fatal error
Uncaught Error: Class 'elFinderEditor' not found in wp-content/plugins/filester/includes/File_manager/lib/php/editors/ZipArchive/editor.php:3
- > PHP Fatal error
Uncaught Error: Class 'elFinderPlugin' not found in wp-content/plugins/filester/includes/File_manager/lib/php/plugins/Normalizer/plugin.php:55
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=njt-fs-filemanager
- > Network (severe)
wp-content/plugins/filester/includes/File_manager/lib/js/i18n/elfinder..js - 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
The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: file manager, document management, wp media manager, real media library, wp file manager...
filester/ninja-file-manager.php 92% from 13 tests
The main PHP file in "File Manager Pro - Filester" ver. 1.8.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("filester.php" instead of "ninja-file-manager.php")
Code Analysis 95% from 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
Everything looks great! No dangerous files found in this plugin85,438 lines of code in 177 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 65 | 3,385 | 6,015 | 49,446 |
PHP | 44 | 3,299 | 9,371 | 20,894 |
CSS | 22 | 1,137 | 901 | 12,533 |
SVG | 20 | 93 | 0 | 1,182 |
LESS | 14 | 147 | 117 | 792 |
Markdown | 5 | 58 | 0 | 231 |
HTML | 2 | 12 | 19 | 133 |
PO File | 1 | 41 | 82 | 103 |
JSON | 3 | 0 | 0 | 80 |
SQL | 1 | 3 | 0 | 44 |
PHP code 0% from 2 tests
An overview of cyclomatic complexity and code structure
It is recommended to fix the following
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 1,401)
- Please reduce cyclomatic complexity of methods to less than 100 (currently 150)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.64 |
Average class complexity | 129.27 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,401.00 |
Average method complexity | 7.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 150.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 40 | |
▷ Abstract classes | 1 | 2.50% |
▷ Concrete classes | 39 | 97.50% |
▷ Final classes | 0 | 0.00% |
Methods | 885 | |
▷ Static methods | 53 | 5.99% |
▷ Public methods | 281 | 31.75% |
▷ Protected methods | 580 | 65.54% |
▷ Private methods | 24 | 2.71% |
Functions | 6 | |
▷ Named functions | 3 | 50.00% |
▷ Anonymous functions | 3 | 50.00% |
Constants | 102 | |
▷ Global constants | 25 | 24.51% |
▷ Class constants | 77 | 75.49% |
▷ Public constants | 77 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
89 compressed PNG files occupy 0.13MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/File_manager/lib/jquery/images/ui-icons_555555_256x240.png | 6.91KB | 4.18KB | ▼ 39.47% |
includes/File_manager/lib/themes/windows-10/images/16px/download.png | 0.37KB | 0.39KB | 0.00% |
includes/File_manager/lib/img/icons-small.png | 3.59KB | 3.68KB | 0.00% |
includes/File_manager/lib/themes/windows-10/images/16px/extract.png | 0.47KB | 0.55KB | 0.00% |
includes/File_manager/lib/img/toolbar.png | 7.33KB | 7.62KB | 0.00% |