90% fullestop-lock-down-admin

Code Review | Lock Down Admin

WordPress plugin Lock Down Admin scored 90% from 54 tests.

About plugin

  • Plugin page: fullestop-lock-do...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-5.2
  • WordPress version: 6.3.1
  • First release: Nov 21, 2016
  • Latest release: May 11, 2019
  • Number of updates: 11
  • Update frequency: every 81.5 days
  • Top authors: Fullestop (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

4,000+ active / 22,875 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.66ms] Passed 4 tests

A check of server-side resources used by Lock Down Admin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.45 ▲0.46
Dashboard /wp-admin3.33 ▲0.0245.50 ▼10.20
Posts /wp-admin/edit.php3.38 ▲0.0245.14 ▼4.71
Add New Post /wp-admin/post-new.php5.91 ▲0.0293.24 ▲5.13
Media Library /wp-admin/upload.php3.25 ▲0.0236.83 ▲3.81

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Lock Down Admin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8113.28 ▼1.101.85 ▲0.0442.95 ▼4.09
Dashboard /wp-admin2,219 ▲345.85 ▼0.2399.01 ▼16.2638.06 ▼9.61
Posts /wp-admin/edit.php2,105 ▲162.06 ▲0.0435.90 ▲0.9935.97 ▲0.54
Add New Post /wp-admin/post-new.php1,550 ▲3023.34 ▲0.29656.62 ▼10.1470.97 ▲13.70
Media Library /wp-admin/upload.php1,407 ▲194.18 ▼0.0293.95 ▼3.8443.23 ▼1.44

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: login, hide wp-admin, hide admin, security, rename login...

fullestop-lock-down-admin/fullestop-lock-down-admin.php 92% from 13 tests

"Lock Down Admin" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 205 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin155 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP25980155

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.45
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%
Functions8
▷ Named functions8100.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
No PNG files were detected