Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼5.57ms] Passed 4 tests
Server-side resources used by TRUENDO | GDPR Compliant Cookie Manager
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 41.31 ▲1.66 |
Dashboard /wp-admin | 3.39 ▲0.04 | 45.46 ▼14.15 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 43.45 ▼4.18 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 92.08 ▼5.60 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 38.62 ▲4.78 |
TRUENDO settings /wp-admin/options-general.php?page=truendo_wordpress | 3.30 | 31.93 |
Server storage [IO: ▲0.56MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for TRUENDO | GDPR Compliant Cookie Manager
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,903 ▲142 | 13.49 ▼0.91 | 8.16 ▲6.42 | 40.55 ▼1.66 |
Dashboard /wp-admin | 2,228 ▲48 | 5.70 ▲0.06 | 83.75 ▼1.18 | 78.04 ▲32.56 |
Posts /wp-admin/edit.php | 2,139 ▲39 | 2.03 ▼0.05 | 35.35 ▲0.76 | 32.01 ▼3.96 |
Add New Post /wp-admin/post-new.php | 1,710 ▲184 | 19.97 ▼2.83 | 783.49 ▲125.33 | 48.36 ▼7.20 |
Media Library /wp-admin/upload.php | 1,430 ▲30 | 4.19 ▲0.04 | 112.60 ▲13.84 | 73.56 ▲29.31 |
TRUENDO settings /wp-admin/options-general.php?page=truendo_wordpress | 990 | 2.05 | 25.88 | 42.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/truendo/admin/partials/truendo-admin-display.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/truendo/includes/truendo_contactform.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
truendo/truendo.php Passed 13 tests
This is the main PHP file of "TRUENDO | GDPR Compliant Cookie Manager" version 2.3.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
71 characters long description:
For quick and easy GDPR & Cookie compliance add Truendo to your website
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
Success! There were no dangerous files found in this plugin1,500 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 175 | 513 | 610 |
CSS | 2 | 79 | 13 | 356 |
PO File | 1 | 61 | 71 | 167 |
JavaScript | 2 | 18 | 57 | 147 |
JSON | 1 | 0 | 0 | 118 |
HTML | 3 | 0 | 0 | 96 |
SVG | 1 | 0 | 0 | 6 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 3.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 2 | 6.06% |
▷ Public methods | 28 | 84.85% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 15.15% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/icon-128x128.png | 4.37KB | 0.75KB | ▼ 82.82% |