Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.14ms] Passed 4 tests
A check of server-side resources used by illow - Cookies Consent
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.20 ▲0.09 |
Dashboard /wp-admin | 3.32 ▲0.01 | 48.01 ▲1.63 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.94 ▼1.26 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 84.99 ▼9.03 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.22 ▲2.06 |
Configurações /wp-admin/admin.php?page=wibson-menu | 3.26 | 31.95 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
wibson_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for illow - Cookies Consent
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲106 | 14.73 ▲0.06 | 2.10 ▲0.43 | 46.09 ▼2.82 |
Dashboard /wp-admin | 2,222 ▲37 | 5.80 ▼0.10 | 97.82 ▼0.02 | 37.98 ▼5.71 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.00 ▼0.01 | 35.10 ▲0.37 | 32.10 ▼5.85 |
Add New Post /wp-admin/post-new.php | 1,546 ▲13 | 23.19 ▲0.01 | 640.92 ▼24.70 | 52.34 ▼1.27 |
Media Library /wp-admin/upload.php | 1,407 ▲16 | 4.19 ▲0.03 | 104.14 ▲4.82 | 46.99 ▼2.64 |
Configurações /wp-admin/admin.php?page=wibson-menu | 875 | 2.02 | 25.96 | 31.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 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
Please fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/lgpd-compliant-cookie-banner/wibson-plugin.php
- > /wp-content/plugins/lgpd-compliant-cookie-banner/admin/partials/success-admin-notice.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/lgpd-compliant-cookie-banner/admin/partials/wibson-plugin-admin-display.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
lgpd-compliant-cookie-banner/wibson-plugin.php 85% from 13 tests
This is the main PHP file of "illow - Cookies Consent" version 0.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("lgpd-compliant-cookie-banner.php" instead of "wibson-plugin.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
Good job! No executable or dangerous file extensions detected1,055 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 11 | 165 | 176 | 762 |
PHP | 7 | 75 | 18 | 293 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 2 | 8.00% |
▷ Public methods | 17 | 68.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 32.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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.07MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/partials/images/copy_code_illow.png | 49.18KB | 17.06KB | ▼ 65.30% |
admin/partials/images/sign-up_illow.png | 27.36KB | 9.41KB | ▼ 65.60% |