Benchmarks
Plugin footprint 47% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲1.72MB] [CPU: ▲3.05ms] Passed 4 tests
An overview of server-side resources used by UCM Files Manager Addon (UCM FM)
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.25 ▲1.75 | 48.97 ▲2.88 |
Dashboard /wp-admin | 5.10 ▲1.75 | 60.03 ▲6.61 |
Posts /wp-admin/edit.php | 5.15 ▲1.75 | 59.93 ▲4.11 |
Add New Post /wp-admin/post-new.php | 7.61 ▲1.69 | 99.27 ▼1.40 |
Media Library /wp-admin/upload.php | 4.96 ▲1.69 | 50.83 ▲13.24 |
Server storage [IO: ▲28.92MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
These are issues you should consider
- Total filesystem usage must be limited to 25MB (currently using 28.92MB)
Filesystem: 4,492 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for UCM Files Manager Addon (UCM FM)
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.72 ▲0.58 | 1.52 ▼0.26 | 40.85 ▼2.34 |
Dashboard /wp-admin | 2,195 ▲18 | 5.61 ▼0.15 | 129.53 ▲28.82 | 51.80 ▲6.77 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.99 ▼0.03 | 39.97 ▲4.64 | 36.06 ▲1.79 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.47 ▲0.05 | 700.55 ▲42.28 | 57.76 ▼4.03 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.21 ▲0.09 | 94.03 ▼22.26 | 42.47 ▼4.32 |
Uninstaller [IO: ▲28.92MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the followingZombie WordPress options were found after uninstall: 7 options
- This plugin cannot be uninstalled
- > Error in wp-content/plugins/ucm-files-manager-ucm-fm/includes/classes/PhpRockets_UCM_FileManager_AddOn.php+2067
Uncaught Error: Class 'PhpRockets_UltimateMedia' not found in wp-content/plugins/ucm-files-manager-ucm-fm/includes/classes/PhpRockets_UCM_FileManager_AddOn.php:2067
Stack trace:
#0 wp-includes/class-wp-hook.php(310): PhpRockets_UCM_FileManager_AddOn::whileUnInstall()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-admin/includes/plugin.php(1269): do_action()
#4 wp-admin/includes/plugin.php(960): uninstall_plugin() - Uninstaller has failed for this plugin, leaving 4,492 files (28.92MB) in the plugin directory
- (new file) assets/images/editors/TinyMCE.png
- (new file) assets/images/editors/aceeditor.png
- (new file) assets/images/2019-08-29_16-20-49.jpg
- (new file) assets/images/themes/2019-08-30_16-08-32.jpg
- (new file) assets/images/editors/photopea.png
- (new file) assets/images/themes/2019-08-30_15-55-59.jpg
- (new file) assets/images/2019-08-29_16-20-08.jpg
- (new file) assets/images/editors/tui-editor.jpg
- (new file) assets/images/editors/pixo.jpg
- (new file) assets/images/themes/2019-08-30_16-08-54.jpg
- ...
- can_compress_scripts
- recovery_mode_email_last_sent
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 4× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/ucm-files-manager-ucm-fm/index.php
- > /wp-content/plugins/ucm-files-manager-ucm-fm/vendor/php/connector.minimal.php
- > /wp-content/plugins/ucm-files-manager-ucm-fm/vendor/php/vendor/bin/jp.php
- > /wp-content/plugins/ucm-files-manager-ucm-fm/vendor/php/vendor/league/flysystem-aws-s3-v3/vendor/phpspec/php-diff/example/example.php
- 1808× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/ucm-files-manager-ucm-fm/vendor/php/vendor/league/flysystem-aws-s3-v3/vendor/phpunit/php-code-coverage/tests/_files/NamespaceCoveragePublicTest.php:2
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/ucm-files-manager-ucm-fm/vendor/php/vendor/aws/aws-sdk-php/src/FMS/Exception/FMSException.php:9
- > PHP Fatal error
Uncaught Error: Class 'phpDocumentor\\Reflection\\DocBlock\\Tags\\BaseTag' not found in wp-content/plugins/ucm-files-manager-ucm-fm/vendor/php/vendor/league/flysystem-aws-s3-v3/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Method.php:26
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/ucm-files-manager-ucm-fm/vendor/php/vendor/aws/aws-sdk-php/src/Iot/IotClient.php:366
- > PHP Fatal error
Uncaught Error: Class 'DrSlump\\Protobuf\\Codec\\PhpArray' not found in wp-content/plugins/ucm-files-manager-ucm-fm/vendor/php/vendor/google/cloud-core/src/PhpArray.php:32
- > PHP Fatal error
Uncaught Error: Interface 'Monolog\\Formatter\\FormatterInterface' not found in wp-content/plugins/ucm-files-manager-ucm-fm/vendor/php/vendor/monolog/monolog/src/Monolog/Formatter/FluentdFormatter.php:35
- > PHP Fatal error
Uncaught Error: Interface 'phpDocumentor\\Reflection\\Type' not found in wp-content/plugins/ucm-files-manager-ucm-fm/vendor/php/vendor/league/flysystem-aws-s3-v3/vendor/phpdocumentor/type-resolver/src/Types/Nullable.php:20
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/ucm-files-manager-ucm-fm/vendor/php/vendor/aws/aws-sdk-php/src/MediaPackage/MediaPackageClient.php:39
- > PHP Fatal error
Trait 'League\\Flysystem\\Adapter\\Polyfill\\StreamedReadingTrait' not found in wp-content/plugins/ucm-files-manager-ucm-fm/vendor/php/vendor/league/flysystem-aws-s3-v3/vendor/league/flysystem/src/Adapter/Polyfill/StreamedTrait.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'PhpSpec\\ObjectBehavior' not found in wp-content/plugins/ucm-files-manager-ucm-fm/vendor/php/vendor/league/flysystem-aws-s3-v3/vendor/phpspec/phpspec/spec/PhpSpec/Listener/MethodReturnedNullListenerSpec.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: inline file manager, files manager, wp file manager, elfinder file manager
ucm-files-manager-ucm-fm/ucm_file_manager.php 77% from 13 tests
"UCM Files Manager Addon (UCM FM)" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 383 characters long)
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: The principal plugin file should be the same as the plugin slug ("ucm-files-manager-ucm-fm.php" instead of "ucm_file_manager.php")
Code Analysis 0% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Please make sure to remedy the following
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .exe - Executable in Windows
- ☣ wp-content/plugins/ucm-files-manager-ucm-fm/vendor/php/vendor/league/flysystem-aws-s3-v3/vendor/symfony/console/Resources/bin/hiddeninput.exe
- .bin - Binary Executable in Windows, macOS, Linux
- ☣ wp-content/plugins/ucm-files-manager-ucm-fm/vendor/php/vendor/league/flysystem-aws-s3-v3/vendor/sebastian/diff/tests/fixtures/serialized_diff.bin
- .exe - Executable in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3,048 | 36,398 | 96,112 | 167,320 |
JavaScript | 68 | 6,641 | 16,270 | 66,321 |
JSON | 106 | 32 | 0 | 16,631 |
CSS | 29 | 1,118 | 842 | 11,793 |
Markdown | 116 | 3,077 | 0 | 8,388 |
Cucumber | 43 | 1,244 | 0 | 4,924 |
YAML | 53 | 251 | 121 | 3,815 |
SVG | 73 | 93 | 0 | 1,400 |
XML | 45 | 63 | 1 | 1,003 |
LESS | 14 | 147 | 117 | 792 |
HTML | 10 | 35 | 0 | 209 |
XSLT | 2 | 23 | 20 | 209 |
Ant | 7 | 22 | 0 | 161 |
C | 2 | 35 | 70 | 132 |
reStructuredText | 4 | 70 | 56 | 104 |
XSD | 1 | 9 | 0 | 81 |
make | 3 | 23 | 16 | 64 |
m4 | 1 | 11 | 14 | 38 |
C/C++ Header | 1 | 10 | 18 | 25 |
SQL | 1 | 1 | 0 | 22 |
Bourne Shell | 1 | 4 | 16 | 14 |
PHP code 0% from 2 tests
A short review of cyclomatic complexity and code structure
These items need your attention
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 1,342)
- Method cyclomatic complexity has to be reduced to less than 100 (currently 149)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 7.47 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,342.00 |
Average method complexity | 2.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 149.00 |
Code structure | ||
---|---|---|
Namespaces | 668 | |
Interfaces | 181 | |
Traits | 82 | |
Classes | 2,447 | |
▷ Abstract classes | 77 | 3.15% |
▷ Concrete classes | 2,370 | 96.85% |
▷ Final classes | 167 | 7.05% |
Methods | 12,901 | |
▷ Static methods | 848 | 6.57% |
▷ Public methods | 9,988 | 77.42% |
▷ Protected methods | 1,452 | 11.25% |
▷ Private methods | 1,461 | 11.32% |
Functions | 1,068 | |
▷ Named functions | 156 | 14.61% |
▷ Anonymous functions | 912 | 85.39% |
Constants | 620 | |
▷ Global constants | 45 | 7.26% |
▷ Class constants | 575 | 92.74% |
▷ Public constants | 571 | 99.30% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
80 PNG files occupy 0.20MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/img/volume_icon_local.png | 0.35KB | 0.57KB | 0.00% |
vendor/themes/windows-10/images/16px/sort.png | 0.45KB | 0.44KB | ▼ 1.75% |
vendor/themes/windows-10/images/16px/up.png | 0.37KB | 0.30KB | ▼ 17.91% |
vendor/themes/windows-10/images/16px/file.png | 0.32KB | 0.37KB | 0.00% |
vendor/themes/windows-10/images/close-hover.png | 0.33KB | 0.12KB | ▼ 62.97% |