Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.15MB] [CPU: ▼0.84ms] Passed 4 tests
An overview of server-side resources used by Consent Management Platform
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 40.13 ▼2.41 |
Dashboard /wp-admin | 3.45 ▲0.15 | 52.32 ▲3.75 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 52.58 ▲7.07 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.15 | 94.62 ▼8.50 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 38.67 ▲3.81 |
Server storage [IO: ▲0.54MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Consent Management Platform
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,878 ▲143 | 13.79 ▼0.60 | 1.75 ▼0.24 | 43.54 ▼11.79 |
Dashboard /wp-admin | 2,271 ▲83 | 4.88 ▼1.03 | 102.24 ▲1.44 | 37.66 ▼6.28 |
Posts /wp-admin/edit.php | 2,150 ▲61 | 2.05 ▲0.06 | 40.36 ▲0.97 | 36.64 ▲4.04 |
Add New Post /wp-admin/post-new.php | 1,523 ▲9 | 17.36 ▼0.17 | 638.50 ▼38.51 | 54.56 ▲1.05 |
Media Library /wp-admin/upload.php | 1,447 ▲59 | 4.22 ▼0.00 | 98.15 ▲2.73 | 40.53 ▼4.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/gdpr-compliance-tool/templates/gdpr-config.php
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'GDPRComplianceTool\\Plugin_Base' not found in wp-content/plugins/gdpr-compliance-tool/php/class-plugin.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function GDPRComplianceTool\\trailingslashit() in wp-content/plugins/gdpr-compliance-tool/php/class-plugin-base.php:149
- > PHP Fatal error
Uncaught Error: Call to undefined function GDPRComplianceTool\\trailingslashit() in wp-content/plugins/gdpr-compliance-tool/php/class-plugin-base.php:149
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/gdpr-compliance-tool/templates/gdpr-compliance-settings.php:14
- > PHP Fatal error
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
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: sharethis, eu, share this, cookies, compliance...
gdpr-compliance-tool/gdpr-compliance-tool.php 92% from 13 tests
The entry point to "Consent Management Platform" version 2.1.5 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
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
No dangerous file extensions were detected557 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 132 | 362 | 552 |
CSS | 1 | 1 | 0 | 4 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 26.67 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 3.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 1 | 33.33% |
▷ Concrete classes | 2 | 66.67% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 27 | 87.10% |
▷ Protected methods | 1 | 3.23% |
▷ Private methods | 3 | 9.68% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin