10% gdpr-tool-by-wsd

Code Review | GDPR tool by WSD

WordPress plugin GDPR tool by WSD scored10%from 54 tests.

About plugin

  • Plugin page: gdpr-tool-by-wsd
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.0
  • WordPress version: 6.3.1
  • First release: Dec 7, 2018
  • Latest release: Feb 6, 2019
  • Number of updates: 26
  • Update frequency: every 2.4 days
  • Top authors: websystems (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /563 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > User deprecated in wp-includes/functions.php+5453
    Function get_current_theme is deprecated since version 3.4.0! Use wp_get_theme() instead.

Server metrics [RAM: ▼1.53MB] [CPU: ▼52.40ms] Passed 4 tests

A check of server-side resources used by GDPR tool by WSD
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.46 ▼1.006.69 ▼34.33
Dashboard /wp-admin2.48 ▼0.827.28 ▼43.56
Posts /wp-admin/edit.php2.48 ▼0.877.26 ▼38.87
Add New Post /wp-admin/post-new.php2.48 ▼3.406.60 ▼92.85
Media Library /wp-admin/upload.php2.48 ▼0.757.92 ▼28.53

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for GDPR tool by WSD
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,917 ▲15613.95 ▼0.321.56 ▼0.3939.40 ▼3.21
Dashboard /wp-admin2,319 ▲1445.71 ▲0.09111.35 ▲5.5439.80 ▼2.48
Posts /wp-admin/edit.php2,227 ▲1272.73 ▲0.6944.48 ▲7.6128.97 ▼9.37
Add New Post /wp-admin/post-new.php1,800 ▲26423.66 ▲0.51613.19 ▼7.0539.42 ▼54.98
Media Library /wp-admin/upload.php1,524 ▲1215.15 ▲0.95107.14 ▲8.9345.89 ▲4.19

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > User deprecated in wp-includes/functions.php+5453
    Function get_current_theme is deprecated since version 3.4.0! Use wp_get_theme() instead.
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 0% from 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
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/gdpr-tool-by-wsd/new_one.php
  • 7× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/gdpr-tool-by-wsd/new_one.php on line 2
    • > PHP Notice
      Undefined index: argv in wp-content/plugins/gdpr-tool-by-wsd/new_one.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/gdpr-tool-by-wsd/index.php:20
    • > PHP Notice
      Undefined index: argv in wp-content/plugins/gdpr-tool-by-wsd/new_one.php on line 2
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/gdpr-tool-by-wsd/new_one.php on line 3
    • > PHP Notice
      Undefined index: argv in wp-content/plugins/gdpr-tool-by-wsd/new_one.php on line 5
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/gdpr-tool-by-wsd/new_one.php on line 5

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #5, #7, #8 in gdpr-tool-by-wsd/assets to your readme.txt
You can take inspiration from this readme.txt

gdpr-tool-by-wsd/index.php 85% from 13 tests

The entry point to "GDPR tool by WSD" version 1.0.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 280 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("gdpr-tool-by-wsd.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected8,861 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript41,9501,7336,857
PHP111661351,715
CSS31013146
HTML440143

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions33
▷ Named functions3296.97%
▷ Anonymous functions13.03%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin