Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲1.03MB] [CPU: ▲1.94ms] Passed 4 tests
A check of server-side resources used by Lightweight Cookie Notice
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.90 ▲0.44 | 48.12 ▲9.80 |
Dashboard /wp-admin | 4.53 ▲1.23 | 51.62 ▲2.37 |
Posts /wp-admin/edit.php | 4.65 ▲1.29 | 49.24 ▲0.78 |
Add New Post /wp-admin/post-new.php | 7.11 ▲1.23 | 88.67 ▼2.79 |
Media Library /wp-admin/upload.php | 4.46 ▲1.23 | 42.80 ▲7.40 |
Help /wp-admin/admin.php?page=daextlwcnf-help | 4.42 | 36.22 |
Pro Version /wp-admin/admin.php?page=daextlwcnf-pro-version | 4.43 | 36.13 |
Options /wp-admin/admin.php?page=daextlwcnf-options | 4.45 | 32.62 |
Server storage [IO: ▲1.44MB] [DB: ▲0.02MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 186 new files
Database: no new tables, 108 new options
New WordPress options |
---|
daextlwcnf_cookie_notice_button_2_border_color_hover |
daextlwcnf_cookie_notice_button_2_text |
daextlwcnf_cookie_notice_button_dismiss_url |
widget_recent-posts |
daextlwcnf_revisit_consent_button_tooltip_text |
daextlwcnf_cookie_settings_button_1_url |
theysaidso_admin_options |
daextlwcnf_cookie_notice_button_2_url |
daextlwcnf_cookie_settings_button_2_background_color |
daextlwcnf_cookie_settings_button_1_background_color_hover |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Lightweight Cookie Notice
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,890 ▲129 | 14.13 ▼0.45 | 4.88 ▲3.35 | 50.13 ▲3.24 |
Dashboard /wp-admin | 2,242 ▲62 | 5.66 ▼0.00 | 83.71 ▼3.90 | 39.69 ▼0.13 |
Posts /wp-admin/edit.php | 2,153 ▲53 | 1.99 ▼0.02 | 36.86 ▲0.79 | 33.35 ▼5.44 |
Add New Post /wp-admin/post-new.php | 1,551 ▲25 | 23.31 ▲0.20 | 659.32 ▼34.01 | 62.90 ▲11.64 |
Media Library /wp-admin/upload.php | 1,450 ▲50 | 4.25 ▲0.02 | 96.41 ▼5.30 | 39.90 ▼6.68 |
Help /wp-admin/admin.php?page=daextlwcnf-help | 857 | 2.03 | 25.56 | 24.66 |
Pro Version /wp-admin/admin.php?page=daextlwcnf-pro-version | 906 | 2.00 | 23.75 | 28.86 |
Options /wp-admin/admin.php?page=daextlwcnf-options | 1,021 | 2.51 | 34.69 | 29.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 37× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'MaxMind\\Exception\\WebServiceException' not found in wp-content/plugins/lightweight-cookie-notice-free/vendor/maxmind/web-service-common/src/Exception/HttpException.php:10
- > PHP Fatal error
Uncaught Error: Class 'GeoIp2\\Exception\\GeoIp2Exception' not found in wp-content/plugins/lightweight-cookie-notice-free/vendor/geoip2/geoip2/src/Exception/HttpException.php:10
- > PHP Fatal error
Uncaught Error: Interface 'MaxMind\\WebService\\Http\\Request' not found in wp-content/plugins/lightweight-cookie-notice-free/vendor/maxmind/web-service-common/src/WebService/Http/CurlRequest.php:14
- > PHP Fatal error
Uncaught Error: Class 'GeoIp2\\Model\\AbstractModel' not found in wp-content/plugins/lightweight-cookie-notice-free/vendor/geoip2/geoip2/src/Model/Domain.php:21
- > PHP Fatal error
Uncaught Error: Class 'MaxMind\\Exception\\InvalidRequestException' not found in wp-content/plugins/lightweight-cookie-notice-free/vendor/maxmind/web-service-common/src/Exception/InsufficientFundsException.php:10
- > PHP Fatal error
Uncaught Error: Class 'MaxMind\\Exception\\InvalidRequestException' not found in wp-content/plugins/lightweight-cookie-notice-free/vendor/maxmind/web-service-common/src/Exception/AuthenticationException.php:10
- > PHP Fatal error
Uncaught Error: Class 'MaxMind\\Exception\\InvalidRequestException' not found in wp-content/plugins/lightweight-cookie-notice-free/vendor/maxmind/web-service-common/src/Exception/IpAddressNotFoundException.php:7
- > PHP Fatal error
Uncaught Error: Class 'GeoIp2\\Record\\AbstractPlaceRecord' not found in wp-content/plugins/lightweight-cookie-notice-free/vendor/geoip2/geoip2/src/Record/City.php:25
- > PHP Fatal error
Uncaught Error: Class 'GeoIp2\\Model\\City' not found in wp-content/plugins/lightweight-cookie-notice-free/vendor/geoip2/geoip2/src/Model/Insights.php:14
- > PHP Fatal error
Uncaught Error: Class 'GeoIp2\\Model\\AbstractModel' not found in wp-content/plugins/lightweight-cookie-notice-free/vendor/geoip2/geoip2/src/Model/Isp.php:27
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Tags: You are using too many tags: 12 tag instead of maximum 10
lightweight-cookie-notice-free/init.php 92% from 13 tests
The main file in "Lightweight Cookie Notice" v. 1.09 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("lightweight-cookie-notice-free.php" instead of "init.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin21,891 lines of code in 175 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 74 | 2,884 | 1,090 | 10,943 |
PHP | 73 | 2,138 | 2,110 | 7,241 |
CSS | 8 | 249 | 28 | 1,438 |
Markdown | 10 | 439 | 0 | 1,001 |
C | 1 | 117 | 24 | 665 |
JSON | 6 | 0 | 0 | 507 |
XML | 1 | 4 | 0 | 56 |
m4 | 1 | 8 | 0 | 32 |
C/C++ Header | 1 | 4 | 12 | 8 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 9.51 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 72.00 |
Average method complexity | 2.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 15 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 59 | |
▷ Abstract classes | 3 | 5.08% |
▷ Concrete classes | 56 | 94.92% |
▷ Final classes | 0 | 0.00% |
Methods | 425 | |
▷ Static methods | 33 | 7.76% |
▷ Public methods | 357 | 84.00% |
▷ Protected methods | 15 | 3.53% |
▷ Private methods | 53 | 12.47% |
Functions | 7 | |
▷ Named functions | 3 | 42.86% |
▷ Anonymous functions | 4 | 57.14% |
Constants | 19 | |
▷ Global constants | 1 | 5.26% |
▷ Class constants | 18 | 94.74% |
▷ Public constants | 2 | 11.11% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.03MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/img/help-f7f7f7.png | 15.86KB | 0.59KB | ▼ 96.25% |
admin/assets/img/select2-multiple-choice-close.png | 1.87KB | 0.29KB | ▼ 84.67% |
admin/assets/img/help-fdfdfd.png | 15.52KB | 0.53KB | ▼ 96.60% |