Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼1.01MB] [CPU: ▼186.19ms] Passed 4 tests
An overview of server-side resources used by Krankenkassentest
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.59 ▼0.13 | 15.78 ▼4.34 |
Dashboard /wp-admin | 2.64 ▼0.41 | 19.13 ▼27.43 |
Posts /wp-admin/edit.php | 2.64 ▼0.47 | 15.91 ▼42.03 |
Add New Post /wp-admin/post-new.php | 2.64 ▼2.79 | 15.44 ▼656.63 |
Media Library /wp-admin/upload.php | 2.64 ▼0.36 | 15.54 ▼18.68 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 27 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Krankenkassentest
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲80 | 15.90 ▲0.30 | 11.54 ▲3.34 | 46.40 ▼4.47 |
Dashboard /wp-admin | 2,995 ▲64 | 5.92 ▼0.09 | 154.04 ▼7.94 | 107.41 ▲3.04 |
Posts /wp-admin/edit.php | 2,761 ▲22 | 2.72 ▲0.01 | 64.67 ▼6.23 | 86.57 ▼6.61 |
Add New Post /wp-admin/post-new.php | 1,698 ▲15 | 16.30 ▼2.42 | 405.69 ▼8.43 | 115.08 ▲12.27 |
Media Library /wp-admin/upload.php | 1,829 ▲22 | 5.04 ▼0.06 | 153.20 ▼9.74 | 112.65 ▼2.98 |
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
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/krankenkassentest/public/class-testergebnis-public.php+107
Trying to access array offset on value of type bool
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
The following issues need your attention
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/krankenkassentest/public/partials/testergebnis-public-display.php
- > /wp-content/plugins/krankenkassentest/includes/class-testergebnis-FakePage.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/krankenkassentest/admin/partials/testergebnis-admin-display.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 76% from 29 tests
readme.txt 75% from 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
Please fix the following attributes:
- Screenshots: These screenshots require images: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
- Contributors: There were no tags found
- Contributors: The plugin contributors field is not present
- Plugin Name: Please specify the plugin name on the first line (
=== krankenkassentest ===
)
krankenkassentest/testergebnis.php 77% from 13 tests
"Krankenkassentest" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("krankenkassentest.php" instead of "testergebnis.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 493 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin471 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 197 | 586 | 425 |
CSS | 2 | 8 | 8 | 46 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 1.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 5 | |
▷ Named functions | 5 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/stern-0_2.png | 0.72KB | 0.42KB | ▼ 41.52% |
images/stern-2_2.png | 1.48KB | 1.32KB | ▼ 10.88% |
images/stern-3_2.png | 1.40KB | 1.28KB | ▼ 8.17% |
images/stern-1_2.png | 1.16KB | 0.99KB | ▼ 14.56% |