Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.09MB] [CPU: ▼2.11ms] Passed 4 tests
Analyzing server-side resources used by tarteaucitron.js - Cookies legislation & GDPR
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 47.18 ▲1.37 |
Dashboard /wp-admin | 3.39 ▲0.09 | 51.46 ▼3.78 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 48.79 ▲2.10 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 96.33 ▼8.13 |
Media Library /wp-admin/upload.php | 3.31 ▲0.09 | 42.23 ▲5.55 |
tarteaucitron.js /wp-admin/options-general.php?page=tarteaucitronjs | 3.28 | 34.29 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for tarteaucitron.js - Cookies legislation & GDPR
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,862 ▲116 | 13.25 ▼0.95 | 2.25 ▲0.51 | 37.80 ▼8.07 |
Dashboard /wp-admin | 2,227 ▲39 | 4.85 ▼0.05 | 98.57 ▼5.45 | 37.66 ▼6.10 |
Posts /wp-admin/edit.php | 2,128 ▲57 | 2.01 ▼0.02 | 40.38 ▲4.28 | 34.49 ▼1.24 |
Add New Post /wp-admin/post-new.php | 1,529 ▲10 | 23.36 ▼0.04 | 654.56 ▼26.66 | 60.41 ▲10.85 |
Media Library /wp-admin/upload.php | 1,412 ▲27 | 4.22 ▼0.09 | 99.56 ▲0.08 | 47.87 ▲0.77 |
tarteaucitron.js /wp-admin/options-general.php?page=tarteaucitronjs | 835 | 2.03 | 25.57 | 29.51 |
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
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% 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 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 items
- 4× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/tarteaucitronjs/Sidebars.php
- > /wp-content/plugins/tarteaucitronjs/Widgets.php
- > /wp-content/plugins/tarteaucitronjs/Admin.php
- > /wp-content/plugins/tarteaucitronjs/tarteaucitron.php
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: rgpd, gdpr, tarteaucitron, cookie
tarteaucitronjs/tarteaucitron.php 92% from 13 tests
The main PHP script in "tarteaucitron.js - Cookies legislation & GDPR" version 1.6.5 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("tarteaucitronjs.php" instead of "tarteaucitron.php")
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
No dangerous file extensions were detected642 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 110 | 27 | 417 |
CSS | 3 | 8 | 7 | 108 |
PO File | 1 | 35 | 46 | 77 |
JavaScript | 1 | 5 | 0 | 40 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 14 | 93.33% |
▷ Anonymous functions | 1 | 6.67% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin