84% eis-online-ordering

Code Review | Essensinformationssystem (EIS 2.0)

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

About plugin

  • Plugin page: eis-online-ordering
  • Plugin version: 0.7.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0.1
  • WordPress version: 6.3.1
  • First release: Jan 3, 2021
  • Latest release: Aug 21, 2022
  • Number of updates: 6
  • Update frequency: every 99.5 days
  • Top authors: hzindler (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /397 total downloads

Benchmarks

Plugin footprint 83% from 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: ▼4.78ms] 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 /3.47 ▲0.0034.66 ▼0.28
Dashboard /wp-admin3.32 ▲0.0243.06 ▼4.37
Posts /wp-admin/edit.php3.37 ▲0.0143.22 ▼1.08
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.20 ▼13.40
Media Library /wp-admin/upload.php3.24 ▲0.0134.99 ▲2.01

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, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_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 /2,801 ▲1514.27 ▼0.081.56 ▼0.3239.22 ▼0.13
Dashboard /wp-admin2,210 ▲305.63 ▼0.0186.16 ▲1.7535.75 ▼6.78
Posts /wp-admin/edit.php2,109 ▲122.01 ▲0.0132.65 ▼1.8932.01 ▼2.92
Add New Post /wp-admin/post-new.php1,539 ▼223.19 ▲0.15601.71 ▼67.5445.21 ▼11.79
Media Library /wp-admin/upload.php1,412 ▲154.19 ▼0.0392.58 ▼5.7242.85 ▼2.96

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

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

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

The main PHP script in "Essensinformationssystem (EIS 2.0)" version 0.7.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