10% filesystem-unlocker

Code Review | Filesystem Unlocker

WordPress plugin Filesystem Unlocker scored10%from 54 tests.

About plugin

  • Plugin page: filesystem-unlocker
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-4.4.2
  • WordPress version: 6.3.1
  • First release: Mar 9, 2016
  • Latest release: Mar 9, 2016
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: duke_justice (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /957 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
  • The plugin did not install without errors
    • > Warning in wp-content/plugins/filesystem-unlocker/filesystem-unlocker.php+24
    Use of undefined constant REQUEST_URI - assumed 'REQUEST_URI' (this will throw an Error in a future version of PHP)

Server metrics [RAM: ▼1.90MB] [CPU: ▼52.95ms] Passed 4 tests

This is a short check of server-side resources used by Filesystem Unlocker
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.10 ▼1.365.75 ▼33.25
Dashboard /wp-admin2.12 ▼1.235.39 ▼52.71
Posts /wp-admin/edit.php2.12 ▼1.245.91 ▼38.65
Add New Post /wp-admin/post-new.php2.12 ▼3.775.32 ▼87.20
Media Library /wp-admin/upload.php2.12 ▼1.115.29 ▼30.57
Filesystem Unlocker /wp-admin/options-general.php?page=filesystem_unlocker_plugin2.126.22

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
filesystem_unlocker_plugin_lock_state
widget_recent-posts
theysaidso_admin_options
filesystem_unlocker_plugin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Filesystem Unlocker
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,853 ▲11814.35 ▲0.001.93 ▲0.1840.75 ▲3.11
Dashboard /wp-admin2,224 ▲475.62 ▼0.0685.89 ▼2.6872.98 ▲26.30
Posts /wp-admin/edit.php2,126 ▲291.98 ▲0.0236.42 ▼0.3534.20 ▼2.39
Add New Post /wp-admin/post-new.php1,561 ▲3523.11 ▲0.01683.89 ▲39.4959.87 ▲2.36
Media Library /wp-admin/upload.php1,423 ▲234.17 ▼0.05108.19 ▼0.0984.58 ▲40.16
Filesystem Unlocker /wp-admin/options-general.php?page=filesystem_unlocker_plugin1,0431.9924.8029.14

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-content/plugins/filesystem-unlocker/filesystem-unlocker.php+24
    Use of undefined constant REQUEST_URI - assumed 'REQUEST_URI' (this will throw an Error in a future version of PHP)
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • filesystem_unlocker_plugin_options
    • filesystem_unlocker_plugin_lock_state

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=filesystem_unlocker_plugin
    • > Warning in wp-content/plugins/filesystem-unlocker/filesystem-unlocker.php+24
    Use of undefined constant REQUEST_URI - assumed 'REQUEST_URI' (this will throw an Error in a future version of PHP)
    • > GET request to /wp-admin/options-general.php?page=filesystem_unlocker_plugin
    • > Notice in wp-content/plugins/filesystem-unlocker/filesystem-unlocker.php+104
    Undefined index: filesystem_unlocker_plugin_options
    • > GET request to /wp-admin/options-general.php?page=filesystem_unlocker_plugin
    • > Notice in wp-content/plugins/filesystem-unlocker/filesystem-unlocker.php+104
    Trying to access array offset on value of type null

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
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/filesystem-unlocker/filesystem-unlocker.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === filesystem-unlocker === )
  • Donate link: Please fix this invalid url: ""
  • Tags: Please delete some tags, you are using 17 tag instead of maximum 10
The official readme.txt might help

filesystem-unlocker/filesystem-unlocker.php Passed 13 tests

The principal PHP file in "Filesystem Unlocker" v. 1.0 is loaded by WordPress automatically on each request
74 characters long description:
This plugin helps to unlock the local filesystem for a set amount of time.

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
There were no executable files found in this plugin148 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11211148

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.96
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/fsu.png0.69KB0.91KB0.00%