Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼12.27ms] Passed 4 tests
Server-side resources used by Cookie Notice | inventivo
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.39 ▼0.07 | 29.34 ▼10.39 |
Dashboard /wp-admin | 3.34 ▲0.03 | 45.85 ▼8.28 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 46.61 ▼5.19 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 83.94 ▼25.23 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 38.07 ▲2.64 |
Cookie Notice | inventivo /wp-admin/options-general.php?page=inventivo_cookienotice_setting_admin | 3.20 | 26.71 |
Server storage [IO: ▲2.12MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Cookie Notice | inventivo
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,995 ▲234 | 13.45 ▼0.91 | 12.04 ▲10.37 | 43.01 ▼3.95 |
Dashboard /wp-admin | 2,247 ▲70 | 5.53 ▼0.13 | 85.02 ▼5.58 | 69.81 ▲26.41 |
Posts /wp-admin/edit.php | 2,155 ▲55 | 2.12 ▲0.10 | 38.27 ▲1.99 | 35.35 ▲0.57 |
Add New Post /wp-admin/post-new.php | 1,732 ▲205 | 22.47 ▼0.52 | 763.28 ▲126.87 | 73.85 ▲17.89 |
Media Library /wp-admin/upload.php | 1,446 ▲49 | 4.24 ▲0.11 | 102.06 ▲4.76 | 69.50 ▲26.42 |
Cookie Notice | inventivo /wp-admin/options-general.php?page=inventivo_cookienotice_setting_admin | 1,022 | 2.20 | 25.13 | 30.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=inventivo_cookienotice_setting_admin
- > Notice in wp-content/plugins/inventivo-cookie-notice/inventivo-cookie-notice.php+503
Trying to access array offset on value of type bool
- > GET request to /wp-admin/options-general.php?page=inventivo_cookienotice_setting_admin
- > Notice in wp-content/plugins/inventivo-cookie-notice/inventivo-cookie-notice.php+506
Undefined variable: selected1
- > GET request to /wp-admin/options-general.php?page=inventivo_cookienotice_setting_admin
- > Notice in wp-content/plugins/inventivo-cookie-notice/inventivo-cookie-notice.php+507
Undefined variable: selected2
- > GET request to /wp-admin/options-general.php?page=inventivo_cookienotice_setting_admin
- > Notice in wp-content/plugins/inventivo-cookie-notice/inventivo-cookie-notice.php+508
Undefined variable: selected3
- > GET request to /wp-admin/options-general.php?page=inventivo_cookienotice_setting_admin
- > Notice in wp-content/plugins/inventivo-cookie-notice/inventivo-cookie-notice.php+509
Undefined variable: selected4
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: cookie popup, cookie notice, inventivo, cookie hinweis
inventivo-cookie-notice/inventivo-cookie-notice.php Passed 13 tests
The main file in "Cookie Notice | inventivo" v. 1.0.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
34 characters long description:
Display a Cookie Notice in a popup
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin1,030 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 83 | 57 | 435 |
PO File | 2 | 88 | 102 | 241 |
Sass | 6 | 6 | 0 | 153 |
JavaScript | 2 | 26 | 15 | 143 |
Markdown | 1 | 27 | 0 | 35 |
XML | 1 | 0 | 0 | 17 |
CSS | 6 | 0 | 0 | 6 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 42.00 |
▷ Minimum class complexity | 42.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 2.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 29 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 2.04MB with 1.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 698.00KB | 270.18KB | ▼ 61.29% |
screenshot-4.png | 623.18KB | 242.22KB | ▼ 61.13% |
screenshot-2.png | 95.23KB | 43.82KB | ▼ 53.98% |
screenshot-3.png | 639.57KB | 233.36KB | ▼ 63.51% |
admin/images/icon-256x256-1.png | 33.55KB | 11.45KB | ▼ 65.87% |