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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.14 ▲0.67 | 49.87 ▲10.77 |
Dashboard /wp-admin | 3.96 ▲0.62 | 49.46 ▼14.15 |
Posts /wp-admin/edit.php | 4.02 ▲0.66 | 55.11 ▲4.93 |
Add New Post /wp-admin/post-new.php | 6.55 ▲0.66 | 84.31 ▼11.79 |
Media Library /wp-admin/upload.php | 3.89 ▲0.66 | 39.18 ▲3.44 |
Mini WP GDPR /wp-admin/options-general.php?page=mini-wp-gdpr | 3.79 | 35.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲47 | 14.22 ▼0.50 | 1.64 ▼0.19 | 39.06 ▼5.03 |
Dashboard /wp-admin | 2,196 ▲22 | 5.50 ▼0.22 | 95.94 ▲2.94 | 42.17 ▲1.08 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.94 ▼0.07 | 40.92 ▲0.37 | 36.23 ▲4.47 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 23.47 ▲0.37 | 634.85 ▼18.05 | 63.43 ▼5.25 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.18 ▲0.04 | 97.03 ▼4.49 | 44.00 ▼0.01 |
Mini WP GDPR /wp-admin/options-general.php?page=mini-wp-gdpr | 783 | 1.96 | 22.88 | 22.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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 761 | 297 | 2,903 |
PO File | 3 | 210 | 228 | 589 |
SVG | 2 | 0 | 2 | 72 |
JavaScript | 6 | 0 | 0 | 6 |
CSS | 5 | 1 | 0 | 4 |
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 code | 0.39 |
Average class complexity | 18.42 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 2.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 4 | 33.33% |
▷ Concrete classes | 8 | 66.67% |
▷ Final classes | 0 | 0.00% |
Methods | 113 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 110 | 97.35% |
▷ Protected methods | 3 | 2.65% |
▷ Private methods | 0 | 0.00% |
Functions | 73 | |
▷ Named functions | 64 | 87.67% |
▷ Anonymous functions | 9 | 12.33% |
Constants | 64 | |
▷ Global constants | 15 | 23.44% |
▷ Class constants | 49 | 76.56% |
▷ Public constants | 49 | 100.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) pp-assets/pp-logo.png | 1.46KB | 0.00KB | ▼ 100.00% |