84% baw-delete-my-account

Code Review | Delete My Account

WordPress plugin Delete My Account scored 84% from 54 tests.

About plugin

  • Plugin page: baw-delete-my-acc...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.3
  • WordPress version: 6.3.1
  • First release: Apr 22, 2014
  • Latest release: Aug 12, 2015
  • Number of updates: 11
  • Update frequency: every 43.4 days
  • Top authors: juliobox (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

20+ active / 3,313 total downloads


Plugin footprint 83% 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: ▼1.30ms] Passed 4 tests

An overview of server-side resources used by Delete My Account
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0341.80 ▲1.33
Dashboard /wp-admin3.34 ▲0.0446.54 ▼2.93
Posts /wp-admin/edit.php3.39 ▲0.0449.31 ▼1.01
Add New Post /wp-admin/post-new.php5.92 ▲0.0496.25 ▼2.57
Media Library /wp-admin/upload.php3.26 ▲0.0336.42 ▲1.94

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Delete My Account
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲5713.20 ▼1.184.59 ▲2.7444.48 ▲5.42
Dashboard /wp-admin2,203 ▲245.85 ▼0.00107.31 ▼11.1440.21 ▼5.49
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0339.85 ▼1.7733.73 ▼6.60
Add New Post /wp-admin/post-new.php1,542 ▲918.47 ▼4.73621.14 ▼71.2053.75 ▼6.66
Media Library /wp-admin/upload.php1,382 ▼64.20 ▼0.1595.86 ▼6.8443.66 ▲2.79

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

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 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/baw-delete-my-account/baw-delete-my-account.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found


Plugin configuration 97% 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
Attributes that require attention: You can look at the official readme.txt

baw-delete-my-account/baw-delete-my-account.php Passed 13 tests

The entry point to "Delete My Account" version 1.2 is a PHP file that has certain tags in its header comment area
61 characters long description:
This plugin permits your members to delete their own account.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin112 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
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin