Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼144.50ms] Passed 4 tests
Server-side resources used by Cookie Panel, GDPR - By Yo Cookie Team
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 38.63 ▲12.83 |
Dashboard /wp-admin | 3.07 ▲0.02 | 45.92 ▼1.41 |
Posts /wp-admin/edit.php | 3.12 ▲0.02 | 49.41 ▲0.70 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 88.59 ▼581.56 |
Media Library /wp-admin/upload.php | 3.02 ▲0.01 | 37.25 ▲4.26 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 27 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Cookie Panel, GDPR - By Yo Cookie Team: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲112 | 15.74 ▼0.06 | 8.32 ▼6.72 | 48.77 ▼4.13 |
Dashboard /wp-admin | 2,999 ▲68 | 5.92 ▼0.07 | 146.04 ▼9.87 | 115.92 ▼8.39 |
Posts /wp-admin/edit.php | 2,768 ▲29 | 2.70 ▼0.12 | 70.96 ▼2.58 | 86.21 ▼6.03 |
Add New Post /wp-admin/post-new.php | 1,545 ▼138 | 18.72 ▼0.00 | 388.75 ▲25.16 | 113.83 ▼0.84 |
Media Library /wp-admin/upload.php | 1,836 ▲29 | 5.00 ▼0.01 | 155.63 ▼0.97 | 132.05 ▲2.75 |
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 completely, with no zombie files or tables
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Screenshots: Screenshot #1 (Yo Cookie - cookie panel) image missing
yo-cookie/yo-cookie.php Passed 13 tests
Analyzing the main PHP file in "Cookie Panel, GDPR - By Yo Cookie Team" version 1.0.2
76 characters long description:
Yo Cookie - flexible plugins to show and manage cookie and privacy agreement
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin4,147 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 507 | 371 | 2,172 |
CSS | 3 | 11 | 317 | 1,086 |
PHP | 3 | 85 | 30 | 386 |
HTML | 1 | 46 | 3 | 259 |
JSON | 2 | 0 | 0 | 103 |
Sass | 1 | 15 | 0 | 86 |
Markdown | 2 | 12 | 0 | 39 |
YAML | 1 | 1 | 0 | 16 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 33.00 |
▷ Minimum class complexity | 33.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 2.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 20 | |
▷ Static methods | 3 | 15.00% |
▷ Public methods | 12 | 60.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 40.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin