Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.24MB] [CPU: ▼7.44ms] Passed 4 tests
An overview of server-side resources used by Klaro Consent Manager
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 37.77 ▲0.63 |
Dashboard /wp-admin | 3.55 ▲0.25 | 44.89 ▼0.80 |
Posts /wp-admin/edit.php | 3.66 ▲0.31 | 44.55 ▼5.33 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.27 | 79.96 ▼24.24 |
Media Library /wp-admin/upload.php | 3.47 ▲0.25 | 36.78 ▲1.90 |
Settings /wp-admin/edit.php?post_type=klaro_consent&page=klaro-settings | 3.45 | 32.25 |
Applications /wp-admin/edit.php?post_type=klaro_consent | 3.51 | 35.96 |
Add New /wp-admin/post-new.php?post_type=klaro_consent | 3.51 | 44.43 |
Server storage [IO: ▲0.24MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
klaro_option_name |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Klaro Consent Manager
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,960 ▲214 | 14.54 ▲0.18 | 11.78 ▲10.08 | 40.90 ▼0.21 |
Dashboard /wp-admin | 2,260 ▲72 | 5.04 ▼0.83 | 108.68 ▲3.63 | 39.94 ▼11.27 |
Posts /wp-admin/edit.php | 2,145 ▲56 | 2.37 ▲0.31 | 39.80 ▼0.36 | 30.84 ▼4.78 |
Add New Post /wp-admin/post-new.php | 1,558 ▲25 | 17.79 ▼5.34 | 667.44 ▲68.75 | 37.55 ▼5.60 |
Media Library /wp-admin/upload.php | 1,445 ▲63 | 4.45 ▲0.27 | 100.65 ▲4.64 | 42.37 ▲1.58 |
Settings /wp-admin/edit.php?post_type=klaro_consent&page=klaro-settings | 1,634 | 3.07 | 70.29 | 28.33 |
Applications /wp-admin/edit.php?post_type=klaro_consent | 1,109 | 2.27 | 35.21 | 26.45 |
Add New /wp-admin/post-new.php?post_type=klaro_consent | 1,934 | 3.22 | 65.77 | 47.20 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
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 take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/klaro-consent-manager/klaro.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: gdpr, cookie, eu law, cookies, consent
klaro-consent-manager/klaro.php 92% from 13 tests
Analyzing the main PHP file in "Klaro Consent Manager" version 1.1.7
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("klaro-consent-manager.php" instead of "klaro.php")
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
Everything looks great! No dangerous files found in this plugin3,869 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 140 | 1 | 2,497 |
PHP | 3 | 391 | 124 | 969 |
PO File | 2 | 173 | 186 | 391 |
CSS | 1 | 0 | 0 | 12 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 41.33 |
▷ Minimum class complexity | 29.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 4.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 39 | 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 | 1 | |
▷ Global constants | 1 | 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
There were not PNG files found in your plugin