Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲3.78MB] [CPU: ▲84.57ms] Passed 4 tests
Analyzing server-side resources used by Complianz - GDPR/CCPA Cookie Consent
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.41 ▲2.95 | 99.50 ▲56.03 |
Dashboard /wp-admin | 7.47 ▲4.13 | 203.42 ▲141.52 |
Posts /wp-admin/edit.php | 7.48 ▲4.12 | 209.61 ▲156.81 |
Add New Post /wp-admin/post-new.php | 9.92 ▲4.04 | 159.39 ▲52.80 |
Media Library /wp-admin/upload.php | 7.26 ▲4.03 | 122.80 ▲87.94 |
Wizard /wp-admin/admin.php?page=cmplz-wizard | 7.40 | 158.33 |
Integrations /wp-admin/admin.php?page=cmplz-script-center | 7.40 | 104.43 |
Proof of consent /wp-admin/admin.php?page=cmplz-proof-of-consent | 7.31 | 100.83 |
Dashboard /wp-admin/admin.php?page=complianz | 7.35 | 139.45 |
Cookie banner /wp-admin/admin.php?page=cmplz-cookiebanner | 7.26 | 98.37 |
Settings /wp-admin/admin.php?page=cmplz-settings | 7.54 | 105.27 |
Server storage [IO: ▲21.30MB] [DB: ▲0.03MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 1,412 new files
Database: 4 new tables, 17 new options
New tables |
---|
wp_cmplz_cookies |
wp_cmplz_dnsmpd |
wp_cmplz_cookiebanners |
wp_cmplz_services |
New WordPress options |
---|
cmplz_detected_stats |
cmplz_last_cookie_scan |
db_upgraded |
cmplz_cbdb_version |
widget_recent-comments |
can_compress_scripts |
cmplz_show_terms_conditions_notice |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Complianz - GDPR/CCPA Cookie Consent
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,394 ▲633 | 13.69 ▼1.02 | 19.92 ▲18.16 | 42.54 ▼0.76 |
Dashboard /wp-admin | 2,642 ▲462 | 6.06 ▲0.40 | 116.98 ▲25.35 | 89.52 ▲47.21 |
Posts /wp-admin/edit.php | 2,541 ▲438 | 2.50 ▲0.46 | 55.54 ▲17.36 | 32.66 ▼6.50 |
Add New Post /wp-admin/post-new.php | 1,584 ▲58 | 19.25 ▼3.92 | 765.55 ▲99.80 | 64.23 ▲14.84 |
Media Library /wp-admin/upload.php | 1,472 ▲72 | 4.20 ▼0.00 | 105.58 ▼5.47 | 68.30 ▲20.51 |
Wizard /wp-admin/admin.php?page=cmplz-wizard | 1,673 | 4.04 | 102.60 | 74.35 |
Integrations /wp-admin/admin.php?page=cmplz-script-center | 2,088 | 3.98 | 96.88 | 101.23 |
Proof of consent /wp-admin/admin.php?page=cmplz-proof-of-consent | 1,253 | 3.19 | 53.78 | 45.35 |
Dashboard /wp-admin/admin.php?page=complianz | 2,100 | 3.46 | 66.85 | 118.61 |
Cookie banner /wp-admin/admin.php?page=cmplz-cookiebanner | 4,786 | 8.40 | 380.90 | 163.42 |
Settings /wp-admin/admin.php?page=cmplz-settings | 3,139 | 8.40 | 160.93 | 149.22 |
Uninstaller [IO: ▲0.01MB] [DB: ▲0.04MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie tables were found after uninstall: 4 tables
- wp_cmplz_dnsmpd
- wp_cmplz_cookiebanners
- wp_cmplz_cookies
- wp_cmplz_services
- Zombie WordPress options were found after uninstall: 17 options
- cmplz_show_terms_conditions_notice
- can_compress_scripts
- cmplz_cbdb_version
- widget_recent-posts
- cmplz_detected_stats
- cmplz_changed_cookies
- widget_theysaidso_widget
- cmplz_detected_thirdparty_services
- cmplz_detected_social_media
- cmplz_last_cookie_scan
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
Please take a closer look at the following
- 168× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/complianz-gdpr/class-wizard.php
- > /wp-content/plugins/complianz-gdpr/integrations/plugins/hcaptcha.php
- > /wp-content/plugins/complianz-gdpr/integrations/plugins/user-registration.php
- > /wp-content/plugins/complianz-gdpr/templates/dashboard/tips-tricks-footer.php
- > /wp-content/plugins/complianz-gdpr/integrations/services/advertising.php
- > /wp-content/plugins/complianz-gdpr/templates/dashboard/other-plugins.php
- > /wp-content/plugins/complianz-gdpr/integrations/plugins/google-site-kit.php
- > /wp-content/plugins/complianz-gdpr/integrations/plugins/facebook-for-woocommerce.php
- > /wp-content/plugins/complianz-gdpr/complianz-gpdr.php
- > /wp-content/plugins/complianz-gdpr/integrations/services/dailymotion.php
- 259× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\Tag' not found in wp-content/plugins/complianz-gdpr/assets/vendor/mpdf/mpdf/src/Tag/Option.php:7
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\MpdfException' not found in wp-content/plugins/complianz-gdpr/assets/vendor/mpdf/mpdf/src/Barcode/BarcodeException.php:5
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Barcode\\AbstractBarcode' not found in wp-content/plugins/complianz-gdpr/assets/vendor/mpdf/mpdf/src/Barcode/Codabar.php:9
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\Type\\PdfType' not found in wp-content/plugins/complianz-gdpr/assets/vendor/setasign/fpdi/src/PdfParser/Type/PdfIndirectObjectReference.php:16
- > PHP Fatal error
Uncaught Error: Interface 'DeepCopy\\Matcher\\Matcher' not found in wp-content/plugins/complianz-gdpr/assets/vendor/myclabs/deep-copy/src/DeepCopy/Matcher/PropertyTypeMatcher.php:16
- > PHP Fatal error
Trait 'Mpdf\\Strict' not found in wp-content/plugins/complianz-gdpr/assets/vendor/mpdf/mpdf/src/Writer/FontWriter.php on line 10
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\InlineTag' not found in wp-content/plugins/complianz-gdpr/assets/vendor/mpdf/mpdf/src/Tag/Tt.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Log\\LoggerAwareInterface' not found in wp-content/plugins/complianz-gdpr/assets/vendor/mpdf/mpdf/src/Mpdf.php:28
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\Tag' not found in wp-content/plugins/complianz-gdpr/assets/vendor/mpdf/mpdf/src/Tag/Br.php:5
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\TTFontFile' not found in wp-content/plugins/complianz-gdpr/assets/vendor/mpdf/mpdf/src/TTFontFileAnalysis.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: There are too many tags (12 tag instead of maximum 10)
complianz-gdpr/complianz-gpdr.php 92% from 13 tests
Analyzing the main PHP file in "Complianz - GDPR/CCPA Cookie Consent" version 6.5.5
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("complianz-gdpr.php" instead of "complianz-gpdr.php")
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin148,402 lines of code in 1,052 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 643 | 17,159 | 19,184 | 109,359 |
JavaScript | 150 | 5,021 | 4,730 | 23,310 |
CSS | 130 | 129 | 232 | 7,441 |
LESS | 84 | 802 | 251 | 5,852 |
Markdown | 14 | 518 | 0 | 1,467 |
JSON | 12 | 1 | 0 | 742 |
SVG | 14 | 1 | 0 | 137 |
XML | 4 | 11 | 0 | 91 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code 0% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
It is recommended to fix the following
- Class cyclomatic complexity should be reduced to less than 1000 (currently 7,024)
- Please reduce cyclomatic complexity of methods to less than 100 (currently 460)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 59.09 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7,024.00 |
Average method complexity | 10.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 460.00 |
Code structure | ||
---|---|---|
Namespaces | 50 | |
Interfaces | 25 | |
Traits | 6 | |
Classes | 325 | |
▷ Abstract classes | 9 | 2.77% |
▷ Concrete classes | 316 | 97.23% |
▷ Final classes | 15 | 4.75% |
Methods | 2,174 | |
▷ Static methods | 160 | 7.36% |
▷ Public methods | 1,894 | 87.12% |
▷ Protected methods | 80 | 3.68% |
▷ Private methods | 200 | 9.20% |
Functions | 624 | |
▷ Named functions | 568 | 91.03% |
▷ Anonymous functions | 56 | 8.97% |
Constants | 467 | |
▷ Global constants | 43 | 9.21% |
▷ Class constants | 424 | 90.79% |
▷ Public constants | 424 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
17 PNG files occupy 0.11MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon-128x128.png | 2.41KB | 1.13KB | ▼ 53.23% |
assets/images/down.png | 2.64KB | 1.63KB | ▼ 38.33% |
assets/images/gutenberg-preview.png | 20.25KB | 12.11KB | ▼ 40.20% |
upgrade/img/really-simple-ssl.png | 11.96KB | 6.41KB | ▼ 46.40% |
assets/vendor/myclabs/deep-copy/doc/graph.png | 6.29KB | 3.03KB | ▼ 51.86% |