84% um-lock-down

Code Review | Lock Down ( Privacy ) for Ultimate Member

WordPress plugin Lock Down ( Privacy ) for Ultimate Member scored84%from 54 tests.

About plugin

  • Plugin page: um-lock-down
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.1.1
  • WordPress version: 6.3.1
  • First release: Apr 27, 2019
  • Latest release: Apr 27, 2019
  • Number of updates: 6
  • Update frequency: every 2.8 days
  • Top authors: suiteplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /725 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.06MB] [CPU: ▼6.99ms] Passed 4 tests

This is a short check of server-side resources used by Lock Down ( Privacy ) for Ultimate Member
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0744.87 ▲7.16
Dashboard /wp-admin3.37 ▲0.0649.32 ▼5.08
Posts /wp-admin/edit.php3.48 ▲0.1250.42 ▼3.51
Add New Post /wp-admin/post-new.php5.95 ▲0.0690.62 ▼17.25
Media Library /wp-admin/upload.php3.29 ▲0.0635.02 ▼2.10

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

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

Browser metrics Passed 4 tests

Lock Down ( Privacy ) for Ultimate Member: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.24 ▼0.041.93 ▲0.3148.55 ▲4.31
Dashboard /wp-admin2,195 ▲155.58 ▼0.0884.89 ▼11.5241.02 ▲1.06
Posts /wp-admin/edit.php2,097 ▼01.99 ▲0.0136.20 ▼2.0932.75 ▼2.79
Add New Post /wp-admin/post-new.php1,534 ▲818.45 ▼4.53614.84 ▼70.0671.21 ▲18.44
Media Library /wp-admin/upload.php1,400 ▲34.21 ▲0.03102.10 ▼15.7543.69 ▼5.69

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 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 50% from 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
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/um-lock-down/um-lock-down.php:375

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 Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: ultimate member privacy, ultimate member, um lock down, ultimatemember, ultimate member lock down

um-lock-down/um-lock-down.php Passed 13 tests

This is the main PHP file of "Lock Down ( Privacy ) for Ultimate Member" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
58 characters long description:
Let users pause their account and lock it down from others

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin16,338 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JSON10015,885
PHP262294269
JavaScript141145174
XML12410

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity18.00
▷ Minimum class complexity16.00
▷ Maximum class complexity20.00
Average method complexity2.48
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods23
▷ Static methods417.39%
▷ Public methods2295.65%
▷ Protected methods14.35%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin