Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼6.21ms] Passed 4 tests
An overview of server-side resources used by Cookie Panda
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 34.59 ▼3.59 |
Dashboard /wp-admin | 3.38 ▲0.03 | 46.74 ▼9.09 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 47.38 ▼4.19 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 95.68 ▼7.96 |
Media Library /wp-admin/upload.php | 3.31 ▲0.07 | 33.22 ▲2.46 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_cookie_panda_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Cookie Panda
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,904 ▲133 | 14.27 ▼0.47 | 6.35 ▲4.50 | 36.50 ▼3.58 |
Dashboard /wp-admin | 2,224 ▲33 | 6.01 ▲1.13 | 99.20 ▼3.86 | 39.00 ▼3.78 |
Posts /wp-admin/edit.php | 2,112 ▲44 | 2.33 ▲0.29 | 41.49 ▲2.28 | 34.48 ▼1.75 |
Add New Post /wp-admin/post-new.php | 1,541 ▲22 | 23.13 ▲0.04 | 623.45 ▼23.72 | 34.13 ▼25.15 |
Media Library /wp-admin/upload.php | 1,400 ▲15 | 4.52 ▲0.33 | 98.49 ▼6.73 | 40.81 ▼4.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_cookie_panda_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 fix the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/cookie-panda/cookie-panda.php
- > /wp-content/plugins/cookie-panda/cookie-panda-widget.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 Passed 29 tests
readme.txt Passed 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
6 plugin tags: cookie notice, gdpr, cookie banner, ccpa, cookie consent...
cookie-panda/cookie-panda.php Passed 13 tests
The principal PHP file in "Cookie Panda" v. 1.2.0 is loaded by WordPress automatically on each request
46 characters long description:
Simple GDPR cookie notice plugin for WordPress
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
Everything looks great! No dangerous files found in this plugin451 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 41 | 24 | 232 |
JavaScript | 2 | 22 | 12 | 104 |
CSS | 1 | 9 | 0 | 68 |
Markdown | 1 | 22 | 0 | 47 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 28.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 8.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.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 | 9 | |
▷ Static methods | 2 | 22.22% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 4 | 100.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
PNG images were not found in this plugin