90% wp-frontend-delete-account

Code Review | WP Frontend Delete Account

WordPress plugin WP Frontend Delete Account scored90%from 54 tests.

About plugin

  • Plugin page: wp-frontend-delet...
  • Plugin version: 1.7.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.2
  • WordPress version: 6.3.1
  • First release: May 7, 2019
  • Latest release: Apr 24, 2023
  • Number of updates: 67
  • Update frequency: every 21.6 days
  • Top authors: sanzeeb3 (100%)

Code review

54 tests

User reviews

21 reviews

Install metrics

3,000+ active /19,451 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.25MB] [CPU: ▼4.75ms] Passed 4 tests

Analyzing server-side resources used by WP Frontend Delete Account
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.2441.28 ▲0.96
Dashboard /wp-admin3.60 ▲0.2951.20 ▼0.27
Posts /wp-admin/edit.php3.65 ▲0.2955.86 ▼13.81
Add New Post /wp-admin/post-new.php6.12 ▲0.2494.97 ▼5.86
Media Library /wp-admin/upload.php3.46 ▲0.2340.37 ▲7.15
WP Frontend Delete Account /wp-admin/options-general.php?page=wp-frontend-delete-account3.4335.29

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 41 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for WP Frontend Delete Account
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.32 ▼1.341.78 ▼0.2644.55 ▼1.33
Dashboard /wp-admin2,210 ▲254.85 ▼1.02102.79 ▼13.9243.77 ▼2.15
Posts /wp-admin/edit.php2,093 ▲12.05 ▲0.0239.85 ▼2.6634.74 ▼0.47
Add New Post /wp-admin/post-new.php6,198 ▲4,66519.15 ▼4.02927.73 ▲243.1757.14 ▲1.61
Media Library /wp-admin/upload.php1,395 ▲74.21 ▲0.03113.63 ▲11.2151.79 ▲11.04
WP Frontend Delete Account /wp-admin/options-general.php?page=wp-frontend-delete-account9042.5456.1452.04

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
6 plugin tags: frontend-delete, gdpr-erasure, delete-account, gdpr, remove-account...

wp-frontend-delete-account/wp-frontend-delete-account.php Passed 13 tests

The entry point to "WP Frontend Delete Account" version 1.7.0 is a PHP file that has certain tags in its header comment area
49 characters long description:
Lets customers delete their account by their own.

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
Everything looks great! No dangerous files found in this plugin2,144 lines of code in 34 files:
LanguageFilesBlank linesComment linesLines of code
PHP183375841,177
JavaScript1014143499
Sass2380224
JSON100126
PO File15160116
CSS2002

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity14.10
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.98
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes110.00%
Methods67
▷ Static methods1116.42%
▷ Public methods6597.01%
▷ Protected methods00.00%
▷ Private methods22.99%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
Constants3
▷ Global constants266.67%
▷ Class constants133.33%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/logo.png6.15KB3.92KB▼ 36.28%