Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.11MB] [CPU: ▲2.17ms] Passed 4 tests
This is a short check of server-side resources used by Advanced File Manager
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 42.09 ▲3.53 |
Dashboard /wp-admin | 3.44 ▲0.13 | 57.61 ▲3.66 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 51.81 ▼4.79 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 96.52 ▲6.27 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 45.38 ▲10.79 |
Shortcodes /wp-admin/admin.php?page=file_manager_advanced_shortcodes | 3.36 | 36.36 |
Settings /wp-admin/admin.php?page=file_manager_advanced_controls | 3.38 | 36.56 |
File Manager /wp-admin/admin.php?page=file_manager_advanced_ui | 3.41 | 35.16 |
Server storage [IO: ▲8.62MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
It is recommended to fix the following issues
- There were 1 file (0.00KB) illegally modified outside of "wp-content/plugins/file-manager-advanced/" and "wp-content/uploads/"
- (new file) .tmb/.empty
Filesystem: 687 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Advanced File Manager
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 14.25 ▲0.12 | 1.74 ▼0.01 | 43.24 ▲1.48 |
Dashboard /wp-admin | 2,209 ▲32 | 5.64 ▲0.12 | 80.93 ▼9.97 | 70.62 ▲25.52 |
Posts /wp-admin/edit.php | 2,132 ▲29 | 2.01 ▲0.04 | 38.60 ▼1.14 | 34.51 ▼2.17 |
Add New Post /wp-admin/post-new.php | 1,571 ▲39 | 18.35 ▼4.80 | 669.25 ▲53.14 | 51.86 ▼3.68 |
Media Library /wp-admin/upload.php | 1,429 ▲35 | 4.16 ▼0.07 | 98.70 ▼10.99 | 73.80 ▲25.00 |
Shortcodes /wp-admin/admin.php?page=file_manager_advanced_shortcodes | 1,751 | 2.01 | 25.48 | 42.34 |
Settings /wp-admin/admin.php?page=file_manager_advanced_controls | 1,301 | 2.16 | 23.35 | 29.26 |
File Manager /wp-admin/admin.php?page=file_manager_advanced_ui | 4,086 | 5.29 | 206.71 | 97.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 22× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'elFinderVolumeDriver' not found in wp-content/plugins/file-manager-advanced/application/library/php/elFinderVolumeDropbox2.class.php:16
- > PHP Fatal error
Uncaught Error: Class 'elFinderPlugin' not found in wp-content/plugins/file-manager-advanced/application/library/php/plugins/AutoResize/plugin.php:62
- > PHP Fatal error
Uncaught Error: Class 'elFinderPlugin' not found in wp-content/plugins/file-manager-advanced/application/library/php/plugins/Sanitizer/plugin.php:47
- > PHP Fatal error
Uncaught Error: Class 'elFinderVolumeFTP' not found in wp-content/plugins/file-manager-advanced/application/library/php/elFinderVolumeSFTPphpseclib.class.php:10
- > PHP Fatal error
Uncaught Error: Class 'elFinderPlugin' not found in wp-content/plugins/file-manager-advanced/application/library/php/plugins/AutoRotate/plugin.php:52
- > PHP Fatal error
Uncaught Error: Class 'elFinderVolumeMySQL' not found in wp-content/plugins/file-manager-advanced/application/library/php/elFinderVolumeTrashMySQL.class.php:8
- > PHP Fatal error
Uncaught Error: Class 'elFinderVolumeDriver' not found in wp-content/plugins/file-manager-advanced/application/library/php/elFinderVolumeGoogleDrive.class.php:10
- > PHP Fatal error
Uncaught Error: Class 'elFinderEditor' not found in wp-content/plugins/file-manager-advanced/application/library/php/editors/OnlineConvert/editor.php:3
- > PHP Fatal error
Uncaught Error: Class 'elFinderVolumeDriver' not found in wp-content/plugins/file-manager-advanced/application/library/php/elFinderVolumeLocalFileSystem.class.php:34
- > PHP Fatal error
Uncaught Error: Class 'elFinderVolumeDriver' not found in wp-content/plugins/file-manager-advanced/application/library/php/elFinderVolumeGroup.class.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Tags: There are too many tags (11 tag instead of maximum 10)
file-manager-advanced/file_manager_advanced.php 92% from 13 tests
"Advanced File Manager" version 5.1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("file-manager-advanced.php" instead of "file_manager_advanced.php")
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin152,383 lines of code in 568 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 285 | 12,882 | 12,907 | 105,112 |
PHP | 41 | 3,004 | 8,986 | 19,124 |
HTML | 128 | 2,509 | 8 | 13,351 |
CSS | 35 | 1,179 | 724 | 11,734 |
SVG | 71 | 91 | 0 | 2,776 |
PO File | 1 | 48 | 51 | 151 |
Markdown | 5 | 20 | 0 | 59 |
SQL | 1 | 3 | 0 | 44 |
JSON | 1 | 0 | 0 | 32 |
PHP code 0% from 2 tests
An overview of cyclomatic complexity and code structure
These items need your attention
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 1,400)
- Method cyclomatic complexity should be reduced to less than 100 (currently 150)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.64 |
Average class complexity | 132.21 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,400.00 |
Average method complexity | 7.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 150.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 37 | |
▷ Abstract classes | 1 | 2.70% |
▷ Concrete classes | 36 | 97.30% |
▷ Final classes | 0 | 0.00% |
Methods | 810 | |
▷ Static methods | 48 | 5.93% |
▷ Public methods | 255 | 31.48% |
▷ Protected methods | 540 | 66.67% |
▷ Private methods | 15 | 1.85% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 101 | |
▷ Global constants | 24 | 23.76% |
▷ Class constants | 77 | 76.24% |
▷ Public constants | 77 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
84 compressed PNG files occupy 0.22MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
application/library/img/icons-big.png | 6.72KB | 7.17KB | 0.00% |
application/library/img/trashmesh.png | 0.16KB | 0.17KB | 0.00% |
application/library/php/plugins/Watermark/logo.png | 8.72KB | 5.11KB | ▼ 41.43% |
application/library/themes/windows10/images/16px/directory_opened.png | 1.10KB | 1.15KB | 0.00% |
application/library/themes/windows10/images/16px/upload.png | 0.44KB | 0.50KB | 0.00% |