Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼142.18ms] Passed 4 tests
Analyzing server-side resources used by WEN Cookie Notice Bar
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.15 | 37.80 ▲15.31 |
Dashboard /wp-admin | 3.09 ▲0.04 | 45.80 ▼2.64 |
Posts /wp-admin/edit.php | 3.14 ▲0.04 | 50.10 ▲5.68 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.02 | 97.96 ▼571.02 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 35.19 ▼0.74 |
Cookie Notice Bar /wp-admin/options-general.php?page=wen-cookie-notice-bar | 3.04 | 25.61 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for WEN Cookie Notice Bar
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,818 ▲222 | 16.11 ▲0.14 | 12.89 ▲3.20 | 51.09 ▲1.10 |
Dashboard /wp-admin | 2,972 ▲38 | 5.84 ▼0.10 | 141.48 ▼25.24 | 115.43 ▲4.83 |
Posts /wp-admin/edit.php | 2,744 ▲8 | 2.70 ▲0.01 | 69.82 ▼2.10 | 96.35 ▲4.08 |
Add New Post /wp-admin/post-new.php | 1,686 ▲3 | 18.70 ▲0.16 | 377.26 ▼9.27 | 123.89 ▲9.81 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.05 ▲0.02 | 161.98 ▼17.52 | 121.98 ▼27.52 |
Cookie Notice Bar /wp-admin/options-general.php?page=wen-cookie-notice-bar | 1,707 | 6.72 | 150.26 | 123.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wen-cookie-notice-bar/inc/classes/class-wcnb.php:5
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Backend: Cookie Notice Bar Settings), #2 (Frontend: Cookie Notice Bar with WP default Twenty Nineteen theme)
wen-cookie-notice-bar/wen-cookie-notice-bar.php Passed 13 tests
The principal PHP file in "WEN Cookie Notice Bar" v. 1.0 is loaded by WordPress automatically on each request
95 characters long description:
Allow to add a simple cookie notice bar for making your site GDPR compliant according to EU law
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected203 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 19 | 23 | 128 |
CSS | 1 | 0 | 0 | 47 |
JavaScript | 1 | 3 | 0 | 28 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 4.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
There are no PNG files in this plugin