77% krankenkassentest

Code Review | Krankenkassentest

WordPress plugin Krankenkassentest scored 77% from 54 tests.

About plugin

  • Plugin page: krankenkassentest
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.9.6
  • WordPress version: 5.8.1
  • First release: Jun 14, 2018
  • Latest release: Jun 14, 2018
  • Number of updates: 5
  • Update frequency: every 2.6 days
  • Top authors: krankenkasseninfo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 295 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.59 ▼0.1315.78 ▼4.34
Dashboard /wp-admin2.64 ▼0.4119.13 ▼27.43
Posts /wp-admin/edit.php2.64 ▼0.4715.91 ▼42.03
Add New Post /wp-admin/post-new.php2.64 ▼2.7915.44 ▼656.63
Media Library /wp-admin/upload.php2.64 ▼0.3615.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲8015.90 ▲0.3011.54 ▲3.3446.40 ▼4.47
Dashboard /wp-admin2,995 ▲645.92 ▼0.09154.04 ▼7.94107.41 ▲3.04
Posts /wp-admin/edit.php2,761 ▲222.72 ▲0.0164.67 ▼6.2386.57 ▼6.61
Add New Post /wp-admin/post-new.php1,698 ▲1516.30 ▼2.42405.69 ▼8.43115.08 ▲12.27
Media Library /wp-admin/upload.php1,829 ▲225.04 ▼0.06153.20 ▼9.74112.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

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 === )
You can look at the official readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP13197586425
CSS28846

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 code0.15
Average class complexity4.00
▷ Minimum class complexity1.00
▷ Maximum class complexity17.00
Average method complexity1.64
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods33
▷ Static methods26.06%
▷ Public methods2884.85%
▷ Protected methods00.00%
▷ Private methods515.15%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
images/stern-0_2.png0.72KB0.42KB▼ 41.52%
images/stern-2_2.png1.48KB1.32KB▼ 10.88%
images/stern-3_2.png1.40KB1.28KB▼ 8.17%
images/stern-1_2.png1.16KB0.99KB▼ 14.56%