74% auto-delete-user

Code Review | Auto Delete User

WordPress plugin Auto Delete User scored74%from 54 tests.

About plugin

  • Plugin page: auto-delete-user
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7
  • WordPress version: 6.3.1
  • First release: Dec 27, 2016
  • Latest release: Dec 22, 2016
  • Number of updates: 4
  • Update frequency: every 1.0 days
  • Top authors: harry005 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,340 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.11ms] Passed 4 tests

Server-side resources used by Auto Delete User
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.56 ▼1.81
Dashboard /wp-admin3.34 ▲0.0446.19 ▼6.19
Posts /wp-admin/edit.php3.39 ▲0.0345.66 ▼3.24
Add New Post /wp-admin/post-new.php5.94 ▲0.0589.19 ▼9.21
Media Library /wp-admin/upload.php3.26 ▲0.0336.43 ▲1.63
Auto Delete User /wp-admin/users.php?page=hsadu3.3132.85

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: 1 new table, 7 new options
New tables
wp_hs_autodeleteuser
New WordPress options
db_upgraded
widget_theysaidso_widget
hs_autodeleteuser_db_version
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Auto Delete User
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲9813.26 ▼1.052.31 ▲0.3249.21 ▲6.06
Dashboard /wp-admin2,217 ▲265.86 ▲0.79104.91 ▼11.2240.32 ▼6.76
Posts /wp-admin/edit.php2,100 ▲112.05 ▲0.0836.43 ▲0.1729.14 ▼6.36
Add New Post /wp-admin/post-new.php1,521 ▲223.48 ▲0.51673.92 ▲0.3858.06 ▲4.95
Media Library /wp-admin/upload.php1,390 ▲54.23 ▼0.1799.57 ▼7.6943.63 ▼2.95
Auto Delete User /wp-admin/users.php?page=hsadu8622.0424.6333.20

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
  • Zombie tables were found after uninstall: 1 table
    • wp_hs_autodeleteuser
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • hs_autodeleteuser_db_version
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
    • > GET request to /wp-admin/users.php?page=hsadu
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/auto-delete-user/includes/admin/js/autodeleteuser.js?ver=6.3.1:47:28)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/users.php?page=hsadu
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).live is not a function

Optimizations

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
9 plugin tags: custom, js editor, custom css, custom js, jss...

auto-delete-user/auto-delete-user.php 92% from 13 tests

The principal PHP file in "Auto Delete User" v. 1.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 158 characters long)

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
Success! There were no dangerous files found in this plugin424 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP31815204
CSS130156
JavaScript112464

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity5.00
▷ Minimum class complexity3.00
▷ Maximum class complexity7.00
Average method complexity1.92
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods13
▷ Static methods430.77%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/admin/images/icon.png0.71KB0.48KB▼ 32.88%
includes/admin/images/support-us.png15.67KB5.80KB▼ 62.98%