99% admin-user-delete-with-contents-disabled

Code Review | Admin User Delete With Contents Disabled

WordPress plugin Admin User Delete With Contents Disabled scored 99% from 54 tests.

About plugin

  • Plugin page: admin-user-delete...
  • Plugin version: 1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9.1
  • WordPress version: 5.9.2
  • First release: Mar 12, 2022
  • Latest release: Mar 14, 2022
  • Number of updates: 8
  • Update frequency: every 0.6 days
  • Top authors: mikumo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 61 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by Admin User Delete With Contents Disabled
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0254.95 ▲3.58
Dashboard /wp-admin3.42 ▲0.0132.29 ▼1.47
Posts /wp-admin/edit.php3.65 ▲0.0135.27 ▼1.96
Add New Post /wp-admin/post-new.php6.89 ▼0.0897.85 ▼1,194.10
Media Library /wp-admin/upload.php3.31 ▲0.0123.92 ▼1.68

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Admin User Delete With Contents Disabled
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲4116.24 ▲0.296.55 ▲0.382.66 ▼0.20
Dashboard /wp-admin2,895 ▲415.97 ▼0.29128.05 ▼8.30156.88 ▼1.61
Posts /wp-admin/edit.php2,694 ▲63.24 ▲0.0064.48 ▲0.04136.32 ▼6.31
Add New Post /wp-admin/post-new.php1,628 ▼13221.00 ▼1.70386.99 ▼72.87159.59 ▲2.24
Media Library /wp-admin/upload.php1,698 ▼05.53 ▲0.00139.60 ▼4.43182.40 ▼1.20

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Donate link: Invalid url: ""
You can look at the official readme.txt

admin-user-delete-with-contents-disabled/plugin.php 85% from 13 tests

"Admin User Delete With Contents Disabled" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("admin-user-delete-with-contents-disabled.php" instead of "plugin.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 228 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected61 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2112237
PO File12221
Markdown1203

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected