Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.61ms] Passed 4 tests
An overview of server-side resources used by Dadi Cookie Consent Lite
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 47.26 ▼6.27 |
Dashboard /wp-admin | 3.31 ▲0.00 | 52.44 ▼6.14 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 54.60 ▼9.85 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 94.08 ▼4.19 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.07 ▲3.55 |
Server storage [IO: ▲0.43MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 64 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Dadi Cookie Consent Lite
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▼0 | 13.30 ▲0.07 | 2.00 ▲0.19 | 43.30 ▲1.55 |
Dashboard /wp-admin | 2,203 ▼3 | 5.79 ▼0.10 | 98.15 ▲0.63 | 40.04 ▲0.09 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.00 ▼0.04 | 36.44 ▼3.87 | 36.53 ▲0.47 |
Add New Post /wp-admin/post-new.php | 1,537 ▲18 | 23.22 ▼0.21 | 658.92 ▼77.64 | 62.63 ▲6.51 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.19 ▼0.01 | 98.54 ▼2.87 | 41.62 ▼1.64 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/dadi-cookie-consent-lite/uninstall.php+12
Trying to access array offset on value of type null
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 11× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/dadi-cookie-consent-lite/css/index.php
- > /wp-content/plugins/dadi-cookie-consent-lite/css/images/index.php
- > /wp-content/plugins/dadi-cookie-consent-lite/inc/admin/modules/index.php
- > /wp-content/plugins/dadi-cookie-consent-lite/index.php
- > /wp-content/plugins/dadi-cookie-consent-lite/css/fontello/index.php
- > /wp-content/plugins/dadi-cookie-consent-lite/inc/admin/index.php
- > /wp-content/plugins/dadi-cookie-consent-lite/inc/commons/index.php
- > /wp-content/plugins/dadi-cookie-consent-lite/js/index.php
- > /wp-content/plugins/dadi-cookie-consent-lite/inc/index.php
- > /wp-content/plugins/dadi-cookie-consent-lite/languages/index.php
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dadi-cookie-consent-lite/inc/admin/modules/about.php:86
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/dadi-cookie-consent-lite/inc/admin/validation.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dadi-cookie-consent-lite/inc/admin/modules/services.php:74
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dadi-cookie-consent-lite/inc/admin/modules/premium.php:52
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dadi-cookie-consent-lite/inc/admin/modules/sticky-bar.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dadi-cookie-consent-lite/inc/admin/modules/internal.php:69
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots require images: #1 (Page Settings), #2 (Mini Banner), #3 (Extended Banner)
- Screenshots: Please add descriptions for these screenshots #0, #0 in dadi-cookie-consent-lite/assets to your readme.txt
dadi-cookie-consent-lite/cookie-consent.php 92% from 13 tests
"Dadi Cookie Consent Lite" version 1.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("dadi-cookie-consent-lite.php" instead of "cookie-consent.php")
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
No dangerous file extensions were detected4,087 lines of code in 43 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 30 | 859 | 710 | 2,395 |
CSS | 8 | 213 | 76 | 1,040 |
JavaScript | 2 | 76 | 52 | 329 |
HTML | 1 | 11 | 0 | 295 |
JSON | 1 | 0 | 0 | 16 |
SVG | 1 | 0 | 0 | 12 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 111 | |
▷ Named functions | 111 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 27 | |
▷ Global constants | 27 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.21MB with 0.15MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/default-dadicc.png | 217.11KB | 63.87KB | ▼ 70.58% |