90% delete-me

Code Review | Delete Me

WordPress plugin Delete Me scored90%from 54 tests.

About plugin

  • Plugin page: delete-me
  • Plugin version: 3.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-6.2
  • WordPress version: 6.3.1
  • First release: Apr 9, 2011
  • Latest release: May 7, 2023
  • Number of updates: 153
  • Update frequency: every 28.9 days
  • Top authors: cmc3215 (80.39%)clintcaldwell (20.26%)

Code review

54 tests

User reviews

21 reviews

Install metrics

10,000+ active /81,683 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▼3.35ms] Passed 4 tests

Analyzing server-side resources used by Delete Me
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0637.64 ▼0.47
Dashboard /wp-admin3.37 ▲0.0744.35 ▼2.45
Posts /wp-admin/edit.php3.49 ▲0.1343.53 ▼4.54
Add New Post /wp-admin/post-new.php5.95 ▲0.0793.83 ▼5.94
Media Library /wp-admin/upload.php3.29 ▲0.0734.26 ▲3.63
/wp-admin/options.php?page=plugin_delete_me_confirmation3.3229.33
Delete Me /wp-admin/options-general.php?page=plugin_delete_me_settings3.5533.07

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
plugin_delete_me
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Delete Me
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.32 ▼1.061.89 ▼0.0743.72 ▼1.75
Dashboard /wp-admin2,210 ▲275.79 ▲0.6794.08 ▼13.1038.36 ▼5.76
Posts /wp-admin/edit.php2,093 ▲42.16 ▲0.1638.69 ▲3.1534.66 ▼0.20
Add New Post /wp-admin/post-new.php1,537 ▲2318.59 ▲1.08690.45 ▲72.3954.60 ▲0.08
Media Library /wp-admin/upload.php1,395 ▲44.18 ▼0.0597.70 ▼1.2343.63 ▼0.24
/wp-admin/options.php?page=plugin_delete_me_confirmation7651.9925.3222.77
Delete Me /wp-admin/options-general.php?page=plugin_delete_me_settings1,3112.0623.5634.20

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: delete, unsubscribe, gdpr, user management, multisite

delete-me/delete-me.php 92% from 13 tests

The main PHP script in "Delete Me" version 3.0 is automatically included on every request by WordPress
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 327 characters long)

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
Success! There were no dangerous files found in this plugin890 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP9343153890

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity39.00
▷ Minimum class complexity39.00
▷ Maximum class complexity39.00
Average method complexity2.46
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods26
▷ Static methods00.00%
▷ Public methods1765.38%
▷ Protected methods00.00%
▷ Private methods934.62%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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