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.01MB] [CPU: ▼2.82ms] Passed 4 tests
An overview of server-side resources used by BST DSGVO Cookie
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 42.55 ▲0.02 |
Dashboard /wp-admin | 3.32 ▲0.01 | 56.74 ▼18.27 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 55.24 ▲3.22 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 120.27 ▲27.57 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 45.64 ▲3.77 |
BST DSGVO Cookie /wp-admin/options-general.php?page=bst-settings | 3.22 | 36.83 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for BST DSGVO Cookie
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,941 ▲130 | 13.79 ▲0.61 | 10.95 ▲8.71 | 41.82 ▼2.79 |
Dashboard /wp-admin | 2,233 ▲24 | 5.07 ▲0.22 | 111.38 ▼5.61 | 41.31 ▼2.30 |
Posts /wp-admin/edit.php | 2,121 ▲32 | 2.32 ▲0.31 | 41.32 ▲5.66 | 36.29 ▼1.95 |
Add New Post /wp-admin/post-new.php | 1,535 ▲2 | 23.30 ▼0.07 | 791.83 ▲131.43 | 37.81 ▼14.93 |
Media Library /wp-admin/upload.php | 1,418 ▲30 | 4.35 ▲0.19 | 110.12 ▼2.95 | 48.08 ▼0.24 |
BST DSGVO Cookie /wp-admin/options-general.php?page=bst-settings | 1,964 | 2.67 | 84.31 | 34.97 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 4× 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/bst-dsgvo-cookie/includes/enqueue.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bst-dsgvo-cookie/includes/admin-menu.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/bst-dsgvo-cookie/bst.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bst-dsgvo-cookie/includes/register-settings.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Screenshots: Add descriptions for screenshots #2, #4 in bst-dsgvo-cookie/assets to your readme.txt
- Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
bst-dsgvo-cookie/bst.php 92% from 13 tests
The primary PHP file in "BST DSGVO Cookie" version 1.2.9 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("bst-dsgvo-cookie.php" instead of "bst.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin2,241 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 273 | 305 | 1,114 |
CSS | 4 | 99 | 2 | 589 |
PHP | 6 | 120 | 48 | 462 |
PO File | 1 | 30 | 34 | 76 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
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 | 12 | |
▷ Named functions | 12 | 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
PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/img/eu-info.png | 1.67KB | 1.56KB | ▼ 6.15% |