84% ajdg-user-cleaner

Code Review | AJdG User Cleaner

WordPress plugin AJdG User Cleaner scored84%from 54 tests.

About plugin

  • Plugin page: ajdg-user-cleaner
  • Plugin version: 1.0.6
  • PHP compatiblity: 5.7+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.1.1
  • WordPress version: 6.3.1
  • First release: Apr 3, 2020
  • Latest release: Feb 1, 2023
  • Number of updates: 8
  • Update frequency: every 129.3 days
  • Top authors: adegans (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,487 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

A check of server-side resources used by AJdG User Cleaner
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.88 ▼5.96
Dashboard /wp-admin3.31 ▲0.0151.76 ▼0.44
Posts /wp-admin/edit.php3.36 ▲0.0144.15 ▼4.16
Add New Post /wp-admin/post-new.php5.89 ▲0.0185.96 ▼10.75
Media Library /wp-admin/upload.php3.24 ▲0.0138.48 ▲1.62

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by AJdG User Cleaner
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.72 ▲0.442.06 ▲0.2643.37 ▼0.07
Dashboard /wp-admin2,198 ▲215.58 ▼0.0094.66 ▼0.6443.01 ▲0.85
Posts /wp-admin/edit.php2,097 ▼32.04 ▲0.0233.67 ▼3.8835.47 ▼7.27
Add New Post /wp-admin/post-new.php1,526 ▼023.07 ▲0.01618.77 ▼36.4552.43 ▼4.28
Media Library /wp-admin/upload.php1,400 ▼34.16 ▼0.0397.47 ▼5.1343.05 ▼3.13

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/ajdg-user-cleaner/ajdg-user-cleaner.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side


Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
The official readme.txt might help

ajdg-user-cleaner/ajdg-user-cleaner.php 92% from 13 tests

The main PHP script in "AJdG User Cleaner" version 1.0.6 is automatically included on every request by WordPress
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 148 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 plugin61 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
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 functions4100.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
There were not PNG files found in your plugin