10% live-editor-file-manager

Code Review | Live Editor File Manager

WordPress plugin Live Editor File Manager scored10%from 54 tests.

About plugin

  • Plugin page: live-editor-file-...
  • Plugin version: 0.5.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.9
  • WordPress version: 6.3.1
  • First release: Mar 15, 2013
  • Latest release: Apr 17, 2014
  • Number of updates: 39
  • Update frequency: every 10.2 days
  • Top authors: liveeditor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /4,325 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/live-editor-file-manager/LiveEditorFileManagerPlugin.php+647
    Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`

Server metrics [RAM: ▼1.70MB] [CPU: ▼54.23ms] Passed 4 tests

This is a short check of server-side resources used by Live Editor File Manager
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.66 ▼4.55
Dashboard /wp-admin2.25 ▼1.067.07 ▼50.49
Posts /wp-admin/edit.php2.25 ▼1.117.32 ▼47.23
Add New Post /wp-admin/post-new.php2.25 ▼3.646.75 ▼85.72
Media Library /wp-admin/upload.php2.25 ▼0.985.32 ▼33.46
File Manager /wp-admin/options-general.php?page=live-editor-file-manager2.256.47

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
live_editor_file_manager_plugin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Live Editor File Manager: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲4014.16 ▼0.192.00 ▲0.2343.00 ▼8.58
Dashboard /wp-admin2,204 ▲275.65 ▼0.0195.15 ▲7.4238.07 ▼3.63
Posts /wp-admin/edit.php2,112 ▲92.03 ▼0.1140.97 ▼3.0737.05 ▲1.73
Add New Post /wp-admin/post-new.php1,537 ▲1123.57 ▲0.40644.26 ▼68.2933.85 ▼25.91
Media Library /wp-admin/upload.php1,412 ▲124.26 ▲0.0796.50 ▼8.0441.93 ▼3.88
File Manager /wp-admin/options-general.php?page=live-editor-file-manager8542.0327.1545.93

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/live-editor-file-manager/LiveEditorFileManagerPlugin.php+647
    Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
  • Uninstaller has failed for this plugin, leaving 27 files (0.21MB) in the plugin directory
    • (new file) images/sprites/icons.png
    • (new file) .gitignore
    • (new file) images/twitter/bootstrap/glyphicons-halflings.png
    • (new file) .env.dev.php-sample
    • (new file) .env.php
    • (new file) design/icons.png
    • (new file) api/LiveEditor.php
    • (new file) LiveEditorFileManagerPlugin.php
    • (new file) helpers/files_helper.php
    • (new file) images/ajax-loader.gif
    • ...
  • The uninstall procedure has failed, leaving 8 options in the database
    • recovery_mode_email_last_sent
    • can_compress_scripts
    • live_editor_file_manager_plugin_options
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=live-editor-file-manager
    • > Deprecated in wp-content/plugins/live-editor-file-manager/LiveEditorFileManagerPlugin.php+647
    Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`

SRP 0% 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
Please fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/live-editor-file-manager/views/layouts/header.php
  • 17× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/live-editor-file-manager/views/resources/index.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/live-editor-file-manager/views/layouts/global_navigation.php:18
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-content/plugins/live-editor-file-manager/views/layouts/header.php' (include_path='.:/usr/share/php') in wp-content/plugins/live-editor-file-manager/views/exceptions/unauthorized.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/live-editor-file-manager/liveeditor.php:28
    • > PHP Warning
      require_once(ABSPATHwp-content/plugins/live-editor-file-manager/views/layouts/header.php): failed to open stream: No such file or directory in wp-content/plugins/live-editor-file-manager/views/exceptions/unauthorized.php on line 1
    • > PHP Warning
      require_once(ABSPATHwp-content/plugins/live-editor-file-manager/views/layouts/header.php): failed to open stream: No such file or directory in wp-content/plugins/live-editor-file-manager/views/exceptions/error.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/live-editor-file-manager/.env.php:4
    • > PHP Warning
      require_once(ABSPATHwp-content/plugins/live-editor-file-manager/views/layouts/header.php): failed to open stream: No such file or directory in wp-content/plugins/live-editor-file-manager/views/resources/new.php on line 1
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-content/plugins/live-editor-file-manager/views/layouts/header.php' (include_path='.:/usr/share/php') in wp-content/plugins/live-editor-file-manager/views/resources/new.php on line 1
    • > PHP Fatal error
      Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/live-editor-file-manager/views/layouts/footer.php:5

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
    • > GET request to /wp-admin/options-general.php?page=live-editor-file-manager
    • > Javascript (severe) in unknown
    /wp-content/plugins/live-editor-file-manager/javascripts/jquery.ba-postmessage.js?ver=0.5.7 66:56 Uncaught TypeError: Cannot read properties of undefined (reading 'opera')

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
These attributes need your attention:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

live-editor-file-manager/liveeditor.php 92% from 13 tests

The primary PHP file in "Live Editor File Manager" version 0.5.7 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("live-editor-file-manager.php" instead of "liveeditor.php")

Code Analysis Passed 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
No dangerous file extensions were detected2,586 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP131972691,141
JavaScript42302511,044
CSS25017401

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity44.00
▷ Minimum class complexity32.00
▷ Maximum class complexity56.00
Average method complexity2.62
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods53
▷ Static methods00.00%
▷ Public methods3769.81%
▷ Protected methods11.89%
▷ Private methods1528.30%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants00.00%
▷ Class constants4100.00%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/twitter/bootstrap/glyphicons-halflings.png12.50KB10.35KB▼ 17.19%
images/sprites/icons.png2.01KB1.40KB▼ 30.32%
design/icons.png52.50KB1.40KB▼ 97.33%