84% delete-my-account-addon-for-ultimate-membership-pro

Code Review | Delete My Account for Ultimate Membership Pro

WordPress plugin Delete My Account for Ultimate Membership Pro scored84%from 54 tests.

About plugin

  • Plugin page: delete-my-account...
  • Plugin version: 1.7
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1.1-6.2
  • WordPress version: 6.3.1
  • First release: Aug 12, 2022
  • Latest release: Apr 20, 2023
  • Number of updates: 21
  • Update frequency: every 12.0 days
  • Top authors: wpindeed (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /694 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.08MB] [CPU: ▼3.40ms] Passed 4 tests

Server-side resources used by Delete My Account for Ultimate Membership Pro
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0936.94 ▼7.88
Dashboard /wp-admin3.39 ▲0.0844.94 ▼6.40
Posts /wp-admin/edit.php3.50 ▲0.1449.01 ▲4.59
Add New Post /wp-admin/post-new.php5.97 ▲0.0895.45 ▼3.77
Media Library /wp-admin/upload.php3.31 ▲0.0836.07 ▲4.46

Server storage [IO: ▲4.05MB] [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: 49 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Delete My Account for Ultimate Membership Pro
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.20 ▼1.361.60 ▼0.5438.02 ▼5.71
Dashboard /wp-admin2,201 ▲165.90 ▼0.11109.76 ▼13.6942.60 ▼4.53
Posts /wp-admin/edit.php2,092 ▲32.03 ▲0.0540.23 ▼0.2637.01 ▲0.58
Add New Post /wp-admin/post-new.php1,518 ▼2517.45 ▼0.70683.79 ▲33.7252.90 ▼13.22
Media Library /wp-admin/upload.php1,395 ▲74.33 ▲0.11100.59 ▼5.3946.91 ▲2.65

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 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
The following issues need your attention
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/delete-my-account-addon-for-ultimate-membership-pro/views/admin.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/delete-my-account-addon-for-ultimate-membership-pro/delete-my-account-for-ultimate-membership-pro.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/delete-my-account-addon-for-ultimate-membership-pro/views/public.php:2

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 93% from 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: member, ultimate membership pro, delete, user, accounts...

delete-my-account-addon-for-ultimate-membership-pro/delete-my-account-for-ultimate-membership-pro.php 85% from 13 tests

"Delete My Account for Ultimate Membership Pro" version 1.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("delete-my-account-addon-for-ultimate-membership-pro.php" instead of "delete-my-account-for-ultimate-membership-pro.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected10,437 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
SVG3009,552
PHP16152335780
JavaScript29487
JSON10011
CSS2277

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity10.38
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.56
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods50
▷ Static methods918.00%
▷ Public methods4794.00%
▷ Protected methods00.00%
▷ Private methods36.00%
Functions4
▷ Named functions250.00%
▷ Anonymous functions250.00%
Constants0
▷ 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
PNG images were not found in this plugin