94% eis-online-ordering

Code Review | Essensinformationssystem (EIS 2.0)

WordPress plugin Essensinformationssystem (EIS 2.0) scored 94% from 54 tests.

About plugin

  • Plugin page: eis-online-ordering
  • Plugin version: 0.6.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.7
  • WordPress version: 5.8.1
  • First release: Jan 3, 2021
  • Latest release: Mar 12, 2021
  • Number of updates: 4
  • Update frequency: every 17.5 days
  • Top authors: hzindler (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 121 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

Analyzing server-side resources used by Essensinformationssystem (EIS 2.0)
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1244.60 ▲17.22
Dashboard /wp-admin3.07 ▲0.0252.59 ▲9.22
Posts /wp-admin/edit.php3.12 ▲0.0249.95 ▼8.79
Add New Post /wp-admin/post-new.php5.43 ▼0.0096.32 ▼575.31
Media Library /wp-admin/upload.php3.02 ▲0.0135.61 ▼1.14

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Essensinformationssystem (EIS 2.0)
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,693 ▲9715.75 ▲0.038.26 ▼2.5954.15 ▲4.26
Dashboard /wp-admin2,982 ▲485.94 ▲0.00148.33 ▼14.84111.26 ▼20.46
Posts /wp-admin/edit.php2,754 ▲152.72 ▲0.0070.83 ▼12.9394.26 ▼12.82
Add New Post /wp-admin/post-new.php1,693 ▲1018.75 ▲0.21380.89 ▼33.54117.07 ▼2.99
Media Library /wp-admin/upload.php1,822 ▲155.04 ▲0.01161.00 ▼9.21130.68 ▲0.99

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

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 take a closer look at the following
  • 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/eis-online-ordering/eis-online-ordering.php:23

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 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
7 plugin tags: kantine, kita, bestellung, online, mensa...

eis-online-ordering/eis-online-ordering.php 92% from 13 tests

The main PHP script in "Essensinformationssystem (EIS 2.0)" version 0.6.0 is automatically included on every request by WordPress
You should first fix the following items:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin122 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12727113
JavaScript1019

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected