Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼8.70ms] Passed 4 tests
Analyzing server-side resources used by Pwg Cookies by Programación Web Galicia
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.15 ▼1.16 |
Dashboard /wp-admin | 3.32 ▼0.02 | 47.60 ▼14.73 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 45.39 ▼0.21 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 83.00 ▼18.70 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 35.76 ▲1.32 |
Cookies /wp-admin/options-general.php?page=admin-pwg-cookies | 3.22 | 33.00 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 10 new options
New WordPress options |
---|
db_upgraded |
pwg-cookies-url-aviso-titulo |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
pwg-cookies-url-aviso |
pwg-cookies-texto-boton |
pwg-cookies-texto-footer |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Pwg Cookies by Programación Web Galicia
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲64 | 13.20 ▼1.18 | 2.32 ▲0.46 | 43.95 ▲0.19 |
Dashboard /wp-admin | 2,210 ▲19 | 5.81 ▲0.92 | 110.11 ▼8.75 | 45.35 ▼0.41 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.02 ▼0.01 | 34.96 ▼14.12 | 32.72 ▼15.68 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 23.20 ▲5.11 | 637.76 ▼25.71 | 55.83 ▲0.23 |
Media Library /wp-admin/upload.php | 1,389 ▲4 | 4.28 ▲0.03 | 95.83 ▼4.43 | 41.87 ▲1.40 |
Cookies /wp-admin/options-general.php?page=admin-pwg-cookies | 923 | 2.03 | 23.50 | 32.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 10 options
- pwg-cookies-url-aviso
- widget_recent-posts
- theysaidso_admin_options
- pwg-cookies-texto-footer
- pwg-cookies-texto-boton
- pwg-cookies-url-aviso-titulo
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: google analytics, notice cookies, page cookies, cookies, lopd
pwg-cookies/pwg_cookies.php 92% from 13 tests
The main PHP script in "Pwg Cookies by Programación Web Galicia" version 1.2 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("pwg-cookies.php" instead of "pwg_cookies.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected629 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 129 | 136 | 456 |
PO File | 2 | 34 | 2 | 100 |
JavaScript | 1 | 15 | 5 | 40 |
CSS | 1 | 2 | 0 | 30 |
Markdown | 1 | 3 | 0 | 3 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 15.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 15 | |
▷ Static methods | 6 | 40.00% |
▷ Public methods | 15 | 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 | 14 | |
▷ Global constants | 13 | 92.86% |
▷ Class constants | 1 | 7.14% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/cookies.png | 0.76KB | 0.53KB | ▼ 30.58% |
assets/cerrar_pestana.png | 0.38KB | 0.44KB | 0.00% |