Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Warning in wp-content/plugins/privacy-consent-assistant/trm-gdpr-assistant.php+205
file_get_contents(wp-content/plugins/privacy-consent-assistant/css/dynamic.css): failed to open stream: No such file or directory
Server metrics [RAM: ▲0.22MB] [CPU: ▲11.04ms] Passed 4 tests
A check of server-side resources used by Privacy & Consent Assistant
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.24 | 55.73 ▲12.66 |
Dashboard /wp-admin | 3.51 ▲0.21 | 62.53 ▲11.40 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 63.11 ▲13.66 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 100.93 ▲10.93 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 47.78 ▲9.17 |
Add New /wp-admin/post-new.php?post_type=gdpr-policy | 3.59 | 63.06 |
Policies /wp-admin/edit.php?post_type=gdpr-policy | 3.54 | 60.86 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 13 new options
New WordPress options |
---|
db_upgraded |
__trm_gdpr_version |
widget_recent-comments |
trm_gdpr_dynamic_style |
trm_gdpr_default_notice_consent_bar |
trm_gdpr_inserted_privacy_policy |
can_compress_scripts |
trm_gdpr_default_notice_form_consent |
trm_gdpr_inserted_terms_of_service |
widget_recent-posts |
... |
Browser metrics Passed 4 tests
Privacy & Consent Assistant: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,909 ▲148 | 14.70 ▲0.44 | 2.98 ▲1.34 | 56.24 ▲12.80 |
Dashboard /wp-admin | 2,240 ▲63 | 5.61 ▲0.02 | 92.29 ▼0.97 | 41.63 ▼0.91 |
Posts /wp-admin/edit.php | 2,142 ▲39 | 1.98 ▼0.05 | 39.96 ▼4.25 | 35.01 ▼5.15 |
Add New Post /wp-admin/post-new.php | 1,569 ▲26 | 23.11 ▲0.02 | 710.54 ▲80.35 | 52.36 ▲2.85 |
Media Library /wp-admin/upload.php | 1,448 ▲45 | 4.19 ▲0.01 | 105.70 ▲5.56 | 47.30 ▼0.55 |
Add New /wp-admin/post-new.php?post_type=gdpr-policy | 2,289 | 7.63 | 183.59 | 63.82 |
Policies /wp-admin/edit.php?post_type=gdpr-policy | 1,947 | 1.97 | 33.81 | 34.85 |
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
- This plugin did not uninstall successfully, leaving 13 options in the database
- trm_gdpr_inserted_terms_of_service
- trm_gdpr_dynamic_style
- __trm_gdpr_version
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- trm_gdpr_inserted_privacy_policy
- widget_recent-comments
- trm_gdpr_default_notice_consent_bar
- can_compress_scripts
- ...
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
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 90% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
1 plugin tags: third river marketing
privacy-consent-assistant/trm-gdpr-assistant.php 77% from 13 tests
The principal PHP file in "Privacy & Consent Assistant" v. 1.2.0.2 is loaded by WordPress automatically on each request
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 169 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("privacy-consent-assistant.php" instead of "trm-gdpr-assistant.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,340 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 118 | 79 | 690 |
CSS | 4 | 63 | 17 | 383 |
JavaScript | 7 | 57 | 26 | 267 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 100.00 |
▷ Minimum class complexity | 100.00 |
▷ Maximum class complexity | 100.00 |
Average method complexity | 4.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.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 | 30 | |
▷ Static methods | 1 | 3.33% |
▷ Public methods | 29 | 96.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 3.33% |
Functions | 6 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 6 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected