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.00MB] [CPU: ▼7.67ms] Passed 4 tests
Analyzing server-side resources used by Bandeau Cookie : RGPD/GPDR Cookie Consent
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 39.04 ▼5.58 |
Dashboard /wp-admin | 3.33 ▼0.02 | 49.95 ▼17.07 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 49.13 ▼0.88 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 87.03 ▼7.13 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 38.04 ▼0.68 |
Bandeau Cookie : RGPD/GPDR Cookie Consent /wp-admin/options-general.php?page=bandeau-cookie | 3.22 | 30.40 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Bandeau Cookie : RGPD/GPDR Cookie Consent
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.09 ▼0.43 | 1.85 ▼0.31 | 43.38 ▲1.51 |
Dashboard /wp-admin | 2,202 ▲25 | 5.57 ▲0.03 | 96.65 ▼5.02 | 42.77 ▼1.31 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.03 ▲0.00 | 37.54 ▲0.22 | 33.84 ▼2.64 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.13 ▲0.33 | 693.12 ▲26.98 | 48.52 ▼1.85 |
Media Library /wp-admin/upload.php | 1,404 ▲13 | 4.28 ▲0.11 | 97.24 ▼5.38 | 46.71 ▼3.41 |
Bandeau Cookie : RGPD/GPDR Cookie Consent /wp-admin/options-general.php?page=bandeau-cookie | 821 | 2.17 | 26.00 | 30.12 |
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
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bandeau-cookie/bandeau-cookie.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bandeau-cookie/inc/admin-bandeau-cookie.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 96% from 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
7 plugin tags: rgpd, bandeau cookie, bandeau cookies, cookie, gestion des consentements...
bandeau-cookie/bandeau-cookie.php 92% from 13 tests
This is the main PHP file of "Bandeau Cookie : RGPD/GPDR Cookie Consent" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 150 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin168 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 23 | 26 | 141 |
PO File | 1 | 5 | 5 | 27 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/logo_BC_v02_SA.png | 7.89KB | 2.87KB | ▼ 63.64% |