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 gracefully, with no errors
Server metrics [RAM: ▲0.09MB] [CPU: ▼4.35ms] Passed 4 tests
A check of server-side resources used by Simple GDPR
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 44.46 ▲1.25 |
Dashboard /wp-admin | 3.39 ▲0.09 | 48.29 ▼2.82 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 48.55 ▼6.57 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 90.75 ▼9.27 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 38.15 ▲4.29 |
Simple GDPR /wp-admin/options-general.php?page=simple-gdpr | 3.29 | 34.44 |
Server storage [IO: ▲7.18MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Simple GDPR
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,849 ▲88 | 14.42 ▲0.07 | 6.66 ▲4.98 | 52.34 ▲8.06 |
Dashboard /wp-admin | 2,201 ▲27 | 5.63 ▲0.05 | 92.12 ▼5.46 | 39.33 ▼0.86 |
Posts /wp-admin/edit.php | 2,109 ▲7 | 1.97 ▲0.03 | 41.06 ▲2.88 | 33.30 ▼0.38 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.25 ▼0.41 | 661.84 ▼15.67 | 53.46 ▼1.04 |
Media Library /wp-admin/upload.php | 1,409 ▲9 | 4.21 ▼0.01 | 95.07 ▼13.43 | 40.84 ▼9.22 |
Simple GDPR /wp-admin/options-general.php?page=simple-gdpr | 1,121 | 2.00 | 29.29 | 52.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=simple-gdpr
- > Notice in wp-content/plugins/simple-gdpr/simple-gdpr.php+247
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/simple-gdpr/simple-gdpr.php:430
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: google analytics, privacy, gdpr
simple-gdpr/simple-gdpr.php 92% from 13 tests
"Simple GDPR" version 1.51's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 372 characters long)
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
Success! There were no dangerous files found in this plugin700 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 86 | 153 | 540 |
CSS | 3 | 26 | 4 | 159 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 34 | |
▷ Named functions | 34 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
7 PNG files occupy 3.04MB with 2.53MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-1000x200.png | 606.38KB | 83.19KB | ▼ 86.28% |
assets/icon-128x128.png | 220.81KB | 11.35KB | ▼ 94.86% |
assets/banner-772x250.png | 747.41KB | 94.73KB | ▼ 87.33% |
assets/curl-result.png | 4.43KB | 2.02KB | ▼ 54.31% |
assets/icon-256x256.png | 574.18KB | 36.31KB | ▼ 93.68% |