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.07MB] [CPU: ▼140.34ms] Passed 4 tests
Analyzing server-side resources used by SimaCookie
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.94 ▲0.21 | 33.75 ▲6.64 |
Dashboard /wp-admin | 3.14 ▲0.08 | 48.70 ▲1.86 |
Posts /wp-admin/edit.php | 3.19 ▲0.07 | 47.36 ▲9.05 |
Add New Post /wp-admin/post-new.php | 5.49 ▲0.06 | 85.60 ▼573.17 |
Media Library /wp-admin/upload.php | 3.08 ▲0.07 | 35.85 ▲3.31 |
Server storage [IO: ▲0.68MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 2 new options
New WordPress options |
---|
sima_eucookie |
sima_version_number |
Browser metrics Passed 4 tests
SimaCookie: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,837 ▲242 | 16.38 ▲0.85 | 15.15 ▲5.10 | 43.60 ▼10.35 |
Dashboard /wp-admin | 2,990 ▲56 | 5.91 ▼0.07 | 136.43 ▼9.61 | 103.86 ▼8.38 |
Posts /wp-admin/edit.php | 2,756 ▲20 | 2.72 ▲0.02 | 65.04 ▼1.80 | 92.16 ▲9.46 |
Add New Post /wp-admin/post-new.php | 1,684 ▲1 | 18.84 ▲0.16 | 377.43 ▲9.64 | 111.06 ▲4.54 |
Media Library /wp-admin/upload.php | 1,824 ▲17 | 5.04 ▲0.02 | 146.47 ▲8.27 | 119.19 ▲1.42 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 2 options in the database
- sima_version_number
- sima_eucookie
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simasicher-dsgvo-cookie/inc/tinymce.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Tags: You are using too many tags: 12 tag instead of maximum 10
simasicher-dsgvo-cookie/simasicher-dsgvo-cookie.php Passed 13 tests
The main PHP file in "SimaCookie" ver. 1.3.2 adds more information about the plugin and also serves as the entry point for this plugin
88 characters long description:
Blockiere ohne Zustimmung alle Cookies und passe den Cookie-Hinweis deinen Wünschen an.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin15,146 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 2,902 | 2,473 | 13,752 |
PHP | 5 | 102 | 20 | 682 |
CSS | 3 | 62 | 13 | 558 |
PO File | 1 | 64 | 71 | 138 |
XML | 1 | 0 | 0 | 16 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
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 | 32 | |
▷ Named functions | 28 | 87.50% |
▷ Anonymous functions | 4 | 12.50% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.08MB with 0.06MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/simasicher_logo_name.png | 85.51KB | 21.33KB | ▼ 75.06% |