84% dsgvo-tools-kommentar-ip-entfernen

Code Review | GDPR Tools: comment ip removement

WordPress plugin GDPR Tools: comment ip removement scored84%from 54 tests.

About plugin

  • Plugin page: dsgvo-tools-komme...
  • Plugin version: 1.4
  • PHP compatiblity: 6.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.3-6.0
  • WordPress version: 6.3.1
  • First release: Jun 15, 2018
  • Latest release: Jun 20, 2022
  • Number of updates: 23
  • Update frequency: every 63.8 days
  • Top authors: fhwebdesign (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

1,000+ active /7,777 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.98ms] Passed 4 tests

Analyzing server-side resources used by GDPR Tools: comment ip removement
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0343.14 ▼2.40
Dashboard /wp-admin3.34 ▼0.0152.89 ▼16.70
Posts /wp-admin/edit.php3.39 ▲0.0350.27 ▲0.18
Add New Post /wp-admin/post-new.php5.92 ▲0.0389.71 ▼8.87
Media Library /wp-admin/upload.php3.26 ▲0.0339.51 ▲0.05
GDPR tools: comment ip /wp-admin/edit-comments.php?page=fhw_dsgvo_kommentar_options3.2833.66
All Comments /wp-admin/edit-comments.php3.3344.26

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

GDPR Tools: comment ip removement: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲4514.28 ▼0.071.80 ▲0.0744.04 ▼0.46
Dashboard /wp-admin2,212 ▲325.60 ▼0.0890.24 ▼1.5739.67 ▼0.75
Posts /wp-admin/edit.php2,114 ▲142.00 ▲0.0336.24 ▲0.4729.78 ▼5.11
Add New Post /wp-admin/post-new.php1,551 ▲2623.09 ▲0.12691.36 ▲18.3460.58 ▲11.90
Media Library /wp-admin/upload.php1,417 ▲174.23 ▼0.00112.48 ▲7.3847.67 ▼0.49
GDPR tools: comment ip /wp-admin/edit-comments.php?page=fhw_dsgvo_kommentar_options8272.0325.6526.04
All Comments /wp-admin/edit-comments.php1,8242.2736.6536.29

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dsgvo-tools-kommentar-ip-entfernen/admin/settings.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dsgvo-tools-kommentar-ip-entfernen/admin/looper.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/dsgvo-tools-kommentar-ip-entfernen/main.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • License uri: Invalid url: "license.txt"
You can take inspiration from this readme.txt

dsgvo-tools-kommentar-ip-entfernen/main.php 92% from 13 tests

The main file in "GDPR Tools: comment ip removement" v. 1.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("dsgvo-tools-kommentar-ip-entfernen.php" instead of "main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected103 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3129103

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions787.50%
▷ Anonymous functions112.50%
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
There were not PNG files found in your plugin