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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.67MB] [CPU: ▲1.01ms] Passed 4 tests
This is a short check of server-side resources used by Easy GDPR Consent Forms - MailChimp
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.17 | 41.30 ▲1.49 |
Dashboard /wp-admin | 4.14 ▲0.84 | 56.81 ▲8.43 |
Posts /wp-admin/edit.php | 4.22 ▲0.87 | 53.87 ▲3.76 |
Add New Post /wp-admin/post-new.php | 6.74 ▲0.85 | 94.23 ▼4.26 |
Media Library /wp-admin/upload.php | 4.06 ▲0.83 | 41.11 ▲3.06 |
GDPR Consent Forms /wp-admin/edit.php?post_type=egcf_forms | 4.11 | 43.84 |
Consent Log /wp-admin/edit.php?post_type=egcf_forms&page=egcf-consent-log | 4.04 | 40.02 |
Download /wp-admin/admin.php?page=egcf-download-database | 3.97 | 37.93 |
Add New /wp-admin/post-new.php?post_type=egcf_forms | 4.60 | 57.49 |
Server storage [IO: ▲3.10MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 401 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Easy GDPR Consent Forms - MailChimp
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,021 ▲275 | 13.70 ▼0.44 | 11.07 ▲9.03 | 49.60 ▲6.61 |
Dashboard /wp-admin | 2,252 ▲64 | 4.93 ▲0.07 | 101.76 ▼10.80 | 37.00 ▼4.45 |
Posts /wp-admin/edit.php | 2,132 ▲46 | 2.09 ▲0.08 | 40.21 ▲2.68 | 34.98 ▲2.08 |
Add New Post /wp-admin/post-new.php | 1,548 ▲20 | 23.36 ▲5.06 | 678.10 ▲47.14 | 66.23 ▲10.06 |
Media Library /wp-admin/upload.php | 1,434 ▲49 | 4.28 ▲0.06 | 99.36 ▼9.89 | 42.16 ▲0.49 |
GDPR Consent Forms /wp-admin/edit.php?post_type=egcf_forms | 1,096 | 2.01 | 36.56 | 30.54 |
Consent Log /wp-admin/edit.php?post_type=egcf_forms&page=egcf-consent-log | 861 | 1.80 | 27.85 | 38.86 |
Download /wp-admin/admin.php?page=egcf-download-database | 689 | 1.55 | 7.68 | 18.37 |
Add New /wp-admin/post-new.php?post_type=egcf_forms | 2,875 | 8.48 | 170.28 | 159.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 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)
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 38× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Base' not found in wp-content/plugins/easy-gdpr-consent-mailchimp/vendor/webdevstudios/cmb2/includes/CMB2.php:21
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/easy-gdpr-consent-mailchimp/vendor/webdevstudios/cmb2/includes/types/CMB2_Type_File.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/easy-gdpr-consent-mailchimp/vendor/webdevstudios/cmb2/includes/types/CMB2_Type_Textarea.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/easy-gdpr-consent-mailchimp/vendor/webdevstudios/cmb2/includes/CMB2_hookup.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function cmb2_dir() in wp-content/plugins/easy-gdpr-consent-mailchimp/vendor/webdevstudios/cmb2/includes/rest-api/CMB2_REST_Controller.php:4
- > PHP Fatal error
Uncaught Error: Class 'CMB2_REST_Controller' not found in wp-content/plugins/easy-gdpr-consent-mailchimp/vendor/webdevstudios/cmb2/includes/rest-api/CMB2_REST_Controller_Boxes.php:17
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/easy-gdpr-consent-mailchimp/vendor/webdevstudios/cmb2/includes/types/CMB2_Type_Text_Date.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Radio' not found in wp-content/plugins/easy-gdpr-consent-mailchimp/vendor/webdevstudios/cmb2/includes/types/CMB2_Type_Multicheck.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Multicheck' not found in wp-content/plugins/easy-gdpr-consent-mailchimp/vendor/webdevstudios/cmb2/includes/types/CMB2_Type_Taxonomy_Multicheck_Hierarchical.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/easy-gdpr-consent-mailchimp/vendor/webdevstudios/cmb2/includes/types/CMB2_Type_Taxonomy_Base.php:13
- > 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
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: popup, mc4wp, dsgvo, newsletter, forms...
easy-gdpr-consent-mailchimp/easy-gdpr-consent-mailchimp.php 92% from 13 tests
Analyzing the main PHP file in "Easy GDPR Consent Forms - MailChimp" version 1.0.1
Please take the time to fix the following:
- 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 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin53,842 lines of code in 250 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 120 | 13,787 | 17,890 | 31,582 |
PHP | 76 | 2,436 | 6,287 | 8,576 |
CSS | 14 | 1,165 | 1,177 | 5,167 |
JSON | 5 | 0 | 0 | 4,232 |
Sass | 17 | 331 | 25 | 1,547 |
JavaScript | 9 | 385 | 449 | 1,464 |
Markdown | 6 | 289 | 0 | 776 |
C | 1 | 73 | 15 | 476 |
m4 | 1 | 5 | 0 | 14 |
C/C++ Header | 1 | 4 | 12 | 8 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 17.41 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 182.00 |
Average method complexity | 3.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 79 | |
▷ Abstract classes | 8 | 10.13% |
▷ Concrete classes | 71 | 89.87% |
▷ Final classes | 0 | 0.00% |
Methods | 598 | |
▷ Static methods | 86 | 14.38% |
▷ Public methods | 484 | 80.94% |
▷ Protected methods | 88 | 14.72% |
▷ Private methods | 26 | 4.35% |
Functions | 43 | |
▷ Named functions | 37 | 86.05% |
▷ Anonymous functions | 6 | 13.95% |
Constants | 11 | |
▷ Global constants | 3 | 27.27% |
▷ Class constants | 8 | 72.73% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
16 compressed PNG files occupy 0.14MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/webdevstudios/cmb2/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
vendor/webdevstudios/cmb2/images/ico-delete.png | 0.70KB | 0.72KB | 0.00% |
vendor/webdevstudios/cmb2/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |
vendor/webdevstudios/cmb2/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
vendor/webdevstudios/cmb2/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |