Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼1.81ms] Passed 4 tests
An overview of server-side resources used by DN Cookie Notice
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 43.02 ▲2.51 |
Dashboard /wp-admin | 3.39 ▲0.08 | 51.96 ▲5.07 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 51.76 ▼7.07 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 92.09 ▼7.76 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 45.04 ▲10.30 |
Cookie Notice /wp-admin/options-general.php?page=dn_cookie_notice_manage | 3.30 | 42.93 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
dn_cookie_notice_settings |
Browser metrics Passed 4 tests
An overview of browser requirements for DN Cookie Notice
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲35 | 13.23 ▼1.16 | 1.90 ▼0.25 | 45.95 ▼6.26 |
Dashboard /wp-admin | 2,212 ▲27 | 5.89 ▲1.05 | 111.36 ▼6.78 | 42.19 ▼8.38 |
Posts /wp-admin/edit.php | 2,098 ▲9 | 2.00 ▼0.02 | 39.17 ▼4.09 | 32.22 ▼6.25 |
Add New Post /wp-admin/post-new.php | 1,532 ▲13 | 22.12 ▼0.89 | 698.20 ▼15.57 | 54.45 ▼7.82 |
Media Library /wp-admin/upload.php | 1,394 ▲9 | 4.20 ▼0.01 | 113.67 ▼12.45 | 49.08 ▼3.06 |
Cookie Notice /wp-admin/options-general.php?page=dn_cookie_notice_manage | 842 | 2.03 | 30.03 | 33.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- dn_cookie_notice_settings
- widget_theysaidso_widget
- can_compress_scripts
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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/dn-cookie-notice/dn-cookie-notice.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: banner, cookie, notice, popup, info banner
dn-cookie-notice/dn-cookie-notice.php 92% from 13 tests
The entry point to "DN Cookie Notice" version 1.4 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Text Domain: Please use dashes and lowercase characters for text domains
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
There were no executable files found in this plugin353 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 5 | 26 | 262 |
PO File | 1 | 94 | 182 | 84 |
CSS | 1 | 0 | 0 | 7 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
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 | 20 | |
▷ Named functions | 20 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo.png | 15.59KB | 3.79KB | ▼ 75.67% |
images/icon.png | 6.66KB | 0.64KB | ▼ 90.44% |