Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▼2.51ms] Passed 4 tests
An overview of server-side resources used by GDPR4EVERYONE
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 40.00 ▼2.43 |
Dashboard /wp-admin | 3.37 ▲0.07 | 51.76 ▼1.85 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 47.88 ▼2.14 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 102.06 ▲3.47 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 34.03 ▼3.62 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 13 new options
New WordPress options |
---|
widget_recent-posts |
jmgdpr_cookie_link_text |
jmgdpr_cookie_ok_text |
jmgdpr_privacy_checkbox_label |
widget_theysaidso_widget |
jmgdpr_cookie_message |
jmgdpr_show_cookie_message |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
GDPR4EVERYONE: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,876 ▲115 | 14.41 ▲0.13 | 7.16 ▲5.55 | 55.92 ▲14.51 |
Dashboard /wp-admin | 2,207 ▲30 | 5.65 ▲0.07 | 85.93 ▼8.47 | 42.67 ▲0.02 |
Posts /wp-admin/edit.php | 2,112 ▲15 | 1.99 ▲0.01 | 34.31 ▼2.34 | 34.93 ▼1.90 |
Add New Post /wp-admin/post-new.php | 1,541 ▲13 | 23.24 ▲0.15 | 649.88 ▼32.21 | 58.82 ▲4.54 |
Media Library /wp-admin/upload.php | 1,412 ▲15 | 4.21 ▲0.02 | 97.02 ▼15.71 | 42.91 ▼2.83 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 13 options
- widget_theysaidso_widget
- jmgdpr_cookie_link_href
- jmgdpr_show_cookie_message
- jmgdpr_cookie_message
- widget_recent-comments
- jmgdpr_cookie_link_text
- jmgdpr_show_privacy_checkbox
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- ...
Smoke tests 75% 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
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jm-gdpr/jmGDPRAdmin.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: cookies, gdpr, security
jm-gdpr/jm-gdpr-plugin.php 92% from 13 tests
The main PHP script in "GDPR4EVERYONE" version 0.1 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("jm-gdpr.php" instead of "jm-gdpr-plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected309 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 96 | 29 | 232 |
PO File | 1 | 20 | 20 | 70 |
CSS | 1 | 0 | 0 | 6 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 94.12% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 5.88% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
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
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.09MB with 0.07MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 97.03KB | 25.40KB | ▼ 73.82% |