10% ez-done-file-manager

Code Review | EZ-done File Manager

WordPress plugin EZ-done File Manager scored10%from 54 tests.

About plugin

  • Plugin page: ez-done-file-manager
  • Plugin version: 3.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.8-4.9
  • WordPress version: 6.3.1
  • First release: Jul 26, 2018
  • Latest release: Aug 23, 2018
  • Number of updates: 7
  • Update frequency: every 5.7 days
  • Top authors: ezdone (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

10+ active /1,049 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, class 'ezdoneAdmin' does not have a method 'activatePlugin'

Server metrics [RAM: ▼1.74MB] [CPU: ▼49.58ms] Passed 4 tests

This is a short check of server-side resources used by EZ-done File Manager
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.32 ▼21.30
Dashboard /wp-admin2.21 ▼1.107.36 ▼41.46
Posts /wp-admin/edit.php2.21 ▼1.156.62 ▼43.55
Add New Post /wp-admin/post-new.php2.21 ▼3.686.43 ▼87.16
Media Library /wp-admin/upload.php2.21 ▼1.027.57 ▼26.15

Server storage [IO: ▲1.77MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 61 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for EZ-done File Manager
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲5114.01 ▼0.301.60 ▼0.4343.30 ▼2.71
Dashboard /wp-admin2,228 ▲405.51 ▲0.60109.39 ▲7.1684.81 ▲47.61
Posts /wp-admin/edit.php2,119 ▲332.60 ▲0.5641.48 ▲4.3734.65 ▲0.15
Add New Post /wp-admin/post-new.php1,555 ▲4121.40 ▲3.89654.37 ▼62.1831.66 ▼23.06
Media Library /wp-admin/upload.php1,413 ▲254.72 ▲0.47116.81 ▲14.8585.80 ▲44.39

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the EZ_loader handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/ez-done-file-manager/EZdoneFileManager-plugin.php:30

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)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: You are using too many tags: 33 tag instead of maximum 10
The official readme.txt might help

ez-done-file-manager/EZdoneFileManager-plugin.php 92% from 13 tests

"EZ-done File Manager" version 3.1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("ez-done-file-manager.php" instead of "EZdoneFileManager-plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin450 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP44731387
CSS117158
JavaScript5505

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 code0.21
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants360.00%
▷ Class constants240.00%
▷ Public constants2100.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
34 PNG files occupy 1.68MB with 0.82MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/base_icon_orange.png5.71KB3.71KB▼ 35.04%
assets/EZ_done_Logo.png161.04KB44.75KB▼ 72.21%
assets/thumbnail-filemanager.png1.55KB1.12KB▼ 27.95%
assets/folder_1.png1.44KB1.21KB▼ 16.21%
assets/deleteia.png40.62KB3.21KB▼ 92.09%