79% remove-gdpr

Code Review | Remove GDPR

WordPress plugin Remove GDPR scored79%from 54 tests.

About plugin

  • Plugin page: remove-gdpr
  • Plugin version: 1.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.6-4.9.8
  • WordPress version: 6.3.1
  • First release: Aug 15, 2018
  • Latest release: Aug 15, 2018
  • Number of updates: 6
  • Update frequency: every 0.3 days
  • Top authors: johndeebdd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /525 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

Server-side resources used by Remove GDPR
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.99 ▼0.73
Dashboard /wp-admin3.33 ▲0.0244.67 ▼6.79
Posts /wp-admin/edit.php3.38 ▲0.0246.68 ▲3.26
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.59 ▼7.85
Media Library /wp-admin/upload.php3.25 ▲0.0234.86 ▲1.28

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments
gdpr-comment-opt-in
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Remove GDPR
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4713.24 ▼0.981.74 ▼0.7644.24 ▼4.04
Dashboard /wp-admin2,213 ▲284.84 ▼0.0298.18 ▼18.0841.25 ▼7.15
Posts /wp-admin/edit.php2,093 ▲42.03 ▼0.0139.35 ▲0.9835.42 ▼1.30
Add New Post /wp-admin/post-new.php1,545 ▲918.33 ▼4.83629.15 ▼52.3959.34 ▲8.85
Media Library /wp-admin/upload.php1,392 ▲44.21 ▼0.0196.75 ▼12.6542.07 ▼7.32
Privacy /wp-admin/values.php260.440.1113.66

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/remove-gdpr/src/RemoveGDPR/values.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function RemoveGDPR\\plugin_dir_path() in wp-content/plugins/remove-gdpr/remove-gdpr.php:20

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
    • > GET request to /wp-admin/values.php
    • > Network (severe)
    wp-admin/values.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 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
3 plugin tags: rollback, feature, gdpr

remove-gdpr/remove-gdpr.php Passed 13 tests

This is the main PHP file of "Remove GDPR" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
55 characters long description:
Activate or deactivate GDPR / privacy related features.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin294 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP45832294

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.37
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity3.00
▷ Minimum method complexity2.00
▷ Maximum method complexity4.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin