90% mini-wp-gdpr

Code Review | Mini WP GDPR

WordPress plugin Mini WP GDPR scored90%from 54 tests.

About plugin

  • Plugin page: mini-wp-gdpr
  • Plugin version: 1.4.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Feb 22, 2022
  • Latest release: Nov 22, 2023
  • Number of updates: 52
  • Update frequency: every 12.3 days
  • Top authors: powerplugins (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

100+ active /3,217 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.65MB] [CPU: ▼4.39ms] Passed 4 tests

This is a short check of server-side resources used by Mini WP GDPR
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.14 ▲0.6749.87 ▲10.77
Dashboard /wp-admin3.96 ▲0.6249.46 ▼14.15
Posts /wp-admin/edit.php4.02 ▲0.6655.11 ▲4.93
Add New Post /wp-admin/post-new.php6.55 ▲0.6684.31 ▼11.79
Media Library /wp-admin/upload.php3.89 ▲0.6639.18 ▲3.44
Mini WP GDPR /wp-admin/options-general.php?page=mini-wp-gdpr3.7935.05

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 53 new files
Database: no new tables, 8 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
mwg_is_cookie_consent_popup_enabled
can_compress_scripts
db_upgraded
theysaidso_admin_options
mwg_always_show_consent

Browser metrics Passed 4 tests

Mini WP GDPR: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲4714.22 ▼0.501.64 ▼0.1939.06 ▼5.03
Dashboard /wp-admin2,196 ▲225.50 ▼0.2295.94 ▲2.9442.17 ▲1.08
Posts /wp-admin/edit.php2,104 ▲41.94 ▼0.0740.92 ▲0.3736.23 ▲4.47
Add New Post /wp-admin/post-new.php1,534 ▲823.47 ▲0.37634.85 ▼18.0563.43 ▼5.25
Media Library /wp-admin/upload.php1,404 ▲14.18 ▲0.0497.03 ▼4.4944.00 ▼0.01
Mini WP GDPR /wp-admin/options-general.php?page=mini-wp-gdpr7831.9622.8822.15

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 8 options
    • mwg_always_show_consent
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • mwg_is_cookie_consent_popup_enabled

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: gdpr, privacy policy, microsoft clarity, google analytics, cookie consent...

mini-wp-gdpr/mini-wp-gdpr.php Passed 13 tests

The principal PHP file in "Mini WP GDPR" v. 1.4.0 is loaded by WordPress automatically on each request
74 characters long description:
Mini GDPR compliance plugin with cookie and tracking-script consent popup.

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
Everything looks great! No dangerous files found in this plugin3,574 lines of code in 40 files:
LanguageFilesBlank linesComment linesLines of code
PHP247612972,903
PO File3210228589
SVG20272
JavaScript6006
CSS5104

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity18.42
▷ Minimum class complexity2.00
▷ Maximum class complexity41.00
Average method complexity2.92
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes12
▷ Abstract classes433.33%
▷ Concrete classes866.67%
▷ Final classes00.00%
Methods113
▷ Static methods00.00%
▷ Public methods11097.35%
▷ Protected methods32.65%
▷ Private methods00.00%
Functions73
▷ Named functions6487.67%
▷ Anonymous functions912.33%
Constants64
▷ Global constants1523.44%
▷ Class constants4976.56%
▷ Public constants49100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
(invalid) pp-assets/pp-logo.png1.46KB0.00KB▼ 100.00%