78% disable-user

Code Review | Disable User

WordPress plugin Disable User scored78%from 54 tests.

About plugin

  • Plugin page: disable-user
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.1
  • WordPress version: 6.3.1
  • First release: Apr 12, 2014
  • Latest release: Dec 26, 2014
  • Number of updates: 9
  • Update frequency: every 29.2 days
  • Top authors: narin1975 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /3,138 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.89ms] Passed 4 tests

This is a short check of server-side resources used by Disable User
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0136.16 ▼5.05
Dashboard /wp-admin3.31 ▲0.0143.75 ▼5.34
Posts /wp-admin/edit.php3.36 ▲0.0146.31 ▼1.28
Add New Post /wp-admin/post-new.php5.89 ▲0.0187.68 ▼11.87
Media Library /wp-admin/upload.php3.23 ▲0.0136.12 ▲1.30
Edit User /wp-admin/admin.php?page=d_edit_user3.1728.54
Disable User /wp-admin/admin.php?page=disable_options3.2029.18

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Disable User
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲7013.25 ▼0.964.59 ▲2.7044.99 ▲2.09
Dashboard /wp-admin2,233 ▲444.79 ▼0.18100.96 ▼16.7241.51 ▼4.03
Posts /wp-admin/edit.php2,116 ▲272.04 ▼0.0240.16 ▼1.1234.81 ▼1.07
Add New Post /wp-admin/post-new.php1,564 ▲5018.24 ▲0.50635.51 ▼35.1858.71 ▲8.37
Media Library /wp-admin/upload.php1,418 ▲334.23 ▲0.01102.31 ▼2.8942.65 ▼1.56
Edit User /wp-admin/admin.php?page=d_edit_user8352.0622.1824.69
Disable User /wp-admin/admin.php?page=disable_options7942.0324.4528.90

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% 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)
Please fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=d_edit_user
    • > Notice in wp-content/plugins/disable-user/disable-user.php+91
    Undefined index: submit

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/disable-user/disable-user.php:13

User-side errors Passed 1 test

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


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: user, temporary, suspend, logon, account...

disable-user/disable-user.php 92% from 13 tests

The main file in "Disable User" v. 2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 391 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected87 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot review 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.29
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions5100.00%
▷ Anonymous functions00.00%
▷ 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
PNG images were not found in this plugin