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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 40.66 ▼4.55 |
Dashboard /wp-admin | 2.25 ▼1.06 | 7.07 ▼50.49 |
Posts /wp-admin/edit.php | 2.25 ▼1.11 | 7.32 ▼47.23 |
Add New Post /wp-admin/post-new.php | 2.25 ▼3.64 | 6.75 ▼85.72 |
Media Library /wp-admin/upload.php | 2.25 ▼0.98 | 5.32 ▼33.46 |
File Manager /wp-admin/options-general.php?page=live-editor-file-manager | 2.25 | 6.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲40 | 14.16 ▼0.19 | 2.00 ▲0.23 | 43.00 ▼8.58 |
Dashboard /wp-admin | 2,204 ▲27 | 5.65 ▼0.01 | 95.15 ▲7.42 | 38.07 ▼3.63 |
Posts /wp-admin/edit.php | 2,112 ▲9 | 2.03 ▼0.11 | 40.97 ▼3.07 | 37.05 ▲1.73 |
Add New Post /wp-admin/post-new.php | 1,537 ▲11 | 23.57 ▲0.40 | 644.26 ▼68.29 | 33.85 ▼25.91 |
Media Library /wp-admin/upload.php | 1,412 ▲12 | 4.26 ▲0.07 | 96.50 ▼8.04 | 41.93 ▼3.88 |
File Manager /wp-admin/options-general.php?page=live-editor-file-manager | 854 | 2.03 | 27.15 | 45.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 followingThe uninstall procedure has failed, leaving 8 options in the database
- 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
- ...
- 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
- > PHP Warning
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 197 | 269 | 1,141 |
JavaScript | 4 | 230 | 251 | 1,044 |
CSS | 2 | 50 | 17 | 401 |
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 code | 0.40 |
Average class complexity | 44.00 |
▷ Minimum class complexity | 32.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 2.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 53 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 37 | 69.81% |
▷ Protected methods | 1 | 1.89% |
▷ Private methods | 15 | 28.30% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/twitter/bootstrap/glyphicons-halflings.png | 12.50KB | 10.35KB | ▼ 17.19% |
images/sprites/icons.png | 2.01KB | 1.40KB | ▼ 30.32% |
design/icons.png | 52.50KB | 1.40KB | ▼ 97.33% |