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.13MB] [CPU: ▼0.10ms] Passed 4 tests
Server-side resources used by Better GDPR
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.13 | 45.14 ▲2.57 |
Dashboard /wp-admin | 3.44 ▲0.13 | 46.78 ▼4.69 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 52.23 ▲5.63 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 87.73 ▼1.51 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 35.66 ▲3.21 |
Setup /wp-admin/admin.php?page=bettergdpr_setup | 3.30 | 31.23 |
Better GDPR /wp-admin/admin.php?page=bettergdpr | 3.30 | 30.91 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Better 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,827 ▲92 | 13.57 ▼1.02 | 1.60 ▼0.47 | 41.56 ▼6.45 |
Dashboard /wp-admin | 2,230 ▲42 | 5.77 ▼0.11 | 98.09 ▼16.47 | 39.91 ▼5.19 |
Posts /wp-admin/edit.php | 2,116 ▲30 | 2.05 ▲0.01 | 39.01 ▲1.71 | 36.22 ▲1.82 |
Add New Post /wp-admin/post-new.php | 1,541 ▲8 | 23.15 ▲0.01 | 657.06 ▼15.54 | 68.78 ▲9.15 |
Media Library /wp-admin/upload.php | 1,415 ▲27 | 4.23 ▲0.06 | 93.73 ▼3.93 | 42.68 ▼1.29 |
Setup /wp-admin/admin.php?page=bettergdpr_setup | 898 | 2.01 | 23.86 | 25.93 |
Better GDPR /wp-admin/admin.php?page=bettergdpr | 901 | 2.01 | 23.30 | 22.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=bettergdpr
- > User deprecated in wp-includes/functions.php+5453
Function get_settings is deprecated since version 2.1.0! Use get_option() instead.
SRP 50% 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
Please fix the following
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATH/wp-admin/includes/privacy-tools.php' (include_path='.:/usr/share/php') in wp-content/plugins/better-gdpr/better-gdpr.php on line 22
- > PHP Warning
require_once(ABSPATH/wp-admin/includes/privacy-tools.php): failed to open stream: No such file or directory in wp-content/plugins/better-gdpr/better-gdpr.php on line 22
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/better-gdpr/better-gdpr.php on line 22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== better-gdpr ===
) - Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
better-gdpr/better-gdpr.php 92% from 13 tests
The main PHP script in "Better GDPR" version 0.3.2 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Text Domain: Please use dashes and lowercase characters for text domains
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
No dangerous file extensions were detected842 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 59 | 49 | 842 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 45 | |
▷ Named functions | 44 | 97.78% |
▷ Anonymous functions | 1 | 2.22% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo.png | 15.65KB | 7.21KB | ▼ 53.95% |