94% esbleibtdabeiat

Code Review | esbleibtdabei.at

WordPress plugin esbleibtdabei.at scored 94% from 54 tests.

About plugin

  • Plugin page: esbleibtdabeiat
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.6.1
  • WordPress version: 5.8.1
  • First release: Oct 15, 2016
  • Latest release: Oct 15, 2016
  • Number of updates: 5
  • Update frequency: every 5.2 days
  • Top authors: harmr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 498 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼139.49ms] Passed 4 tests

Server-side resources used by esbleibtdabei.at
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0130.53 ▲0.68
Dashboard /wp-admin3.07 ▲0.0248.24 ▲1.52
Posts /wp-admin/edit.php3.12 ▲0.0241.58 ▼1.90
Add New Post /wp-admin/post-new.php5.43 ▼0.0087.89 ▼555.60
Media Library /wp-admin/upload.php3.02 ▲0.0132.01 ▼1.12
esbleibtdabei.at /wp-admin/options-general.php?page=ebd_settings_page2.9929.36

Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by esbleibtdabei.at
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,720 ▲12415.90 ▲0.7611.34 ▲2.3548.47 ▲1.20
Dashboard /wp-admin2,984 ▲535.94 ▼0.01153.41 ▲6.60103.68 ▼8.28
Posts /wp-admin/edit.php2,756 ▲172.72 ▼0.0073.59 ▲3.1992.89 ▲1.49
Add New Post /wp-admin/post-new.php1,694 ▲1118.81 ▲0.41381.34 ▲2.68110.05 ▼2.83
Media Library /wp-admin/upload.php1,827 ▲205.01 ▼0.02152.81 ▲5.85122.96 ▲7.42
esbleibtdabei.at /wp-admin/options-general.php?page=ebd_settings_page1,1772.0962.9173.85

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/esbleibtdabeiat/esbleibtdabei-at.php
    • > /wp-content/plugins/esbleibtdabeiat/ebd-settings.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: bwp, campaign, wahl, bwp2016, vdb...

esbleibtdabeiat/esbleibtdabei-at.php 92% from 13 tests

The main PHP file in "esbleibtdabei.at" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("esbleibtdabeiat.php" instead of "esbleibtdabei-at.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected181 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP3216128
CSS22053

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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
2 PNG files occupy 0.35MB with 0.25MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/ebd-klein.png34.65KB10.35KB▼ 70.14%
img/ebd-gross.png324.86KB95.75KB▼ 70.52%