Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.59ms] Passed 4 tests
An overview of server-side resources used by Privacy Policy Message
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.35 ▼3.43 |
Dashboard /wp-admin | 3.33 ▲0.03 | 49.38 ▼5.68 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 52.37 ▼1.77 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 90.87 ▼11.49 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 40.65 ▲2.66 |
Privacy Policy Message /wp-admin/options-general.php?page=prvpmsg | 3.20 | 28.21 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
prvpmsg_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Privacy Policy Message
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,946 ▲185 | 13.43 ▼0.84 | 10.46 ▲8.85 | 48.18 ▲5.96 |
Dashboard /wp-admin | 2,205 ▲28 | 5.65 ▼0.00 | 93.47 ▲1.70 | 40.13 ▼1.75 |
Posts /wp-admin/edit.php | 2,110 ▲10 | 2.00 ▲0.00 | 37.28 ▲0.95 | 35.88 ▼2.32 |
Add New Post /wp-admin/post-new.php | 1,536 ▲1 | 23.23 ▲4.78 | 670.63 ▲12.87 | 59.56 ▼2.09 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.19 ▼0.01 | 100.28 ▼27.48 | 47.08 ▼1.53 |
Privacy Policy Message /wp-admin/options-general.php?page=prvpmsg | 911 | 2.16 | 28.86 | 28.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- prvpmsg_options
- theysaidso_admin_options
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
- > GET request to /wp-admin/options-general.php?page=prvpmsg
- > Notice in wp-content/plugins/privacy-policy-message/class.privacypolicymessage-admin.php+172
Undefined index: prvpmsg_field_message
- > GET request to /wp-admin/options-general.php?page=prvpmsg
- > Notice in wp-content/plugins/privacy-policy-message/class.privacypolicymessage-admin.php+183
Undefined index: prvpmsg_field_link_label
- > GET request to /wp-admin/options-general.php?page=prvpmsg
- > Notice in wp-content/plugins/privacy-policy-message/class.privacypolicymessage-admin.php+129
Undefined index: prvpmsg_field_custom_link_uri
- > GET request to /wp-admin/options-general.php?page=prvpmsg
- > Notice in wp-content/plugins/privacy-policy-message/class.privacypolicymessage-admin.php+177
Undefined index: prvpmsg_field_button_label
- > GET request to /wp-admin/options-general.php?page=prvpmsg
- > Notice in wp-content/plugins/privacy-policy-message/class.privacypolicymessage-admin.php+134
Undefined index: prvpmsg_field_cookie_expire_days
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/privacy-policy-message/privacy-policy-message.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: eu cookie, privacy, message, cookie, policy
privacy-policy-message/privacy-policy-message.php 92% from 13 tests
The entry point to "Privacy Policy Message" version 1.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
Everything looks great! No dangerous files found in this plugin788 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
Sass | 3 | 27 | 31 | 326 |
PHP | 4 | 50 | 63 | 193 |
CSS | 3 | 5 | 9 | 109 |
JavaScript | 2 | 23 | 26 | 94 |
PO File | 1 | 25 | 25 | 66 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin