78% euleo-ubersetzungsburo

Code Review | Euleo Übersetzungsbüro

WordPress plugin Euleo Übersetzungsbüro scored 78% from 54 tests.

About plugin

  • Plugin page: euleo-ubersetzung...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.0
  • WordPress version: 6.3.1
  • First release: Jan 17, 2014
  • Latest release: Sep 5, 2014
  • Number of updates: 21
  • Update frequency: every 11.0 days
  • Top authors: euleogmbh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,010 total downloads

Benchmarks

Plugin footprint 83% from 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.16MB] [CPU: ▼4.88ms] Passed 4 tests

This is a short check of server-side resources used by Euleo Übersetzungsbüro
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1639.96 ▼0.58
Dashboard /wp-admin3.47 ▲0.1645.52 ▼2.35
Posts /wp-admin/edit.php3.58 ▲0.2347.07 ▼0.79
Add New Post /wp-admin/post-new.php6.05 ▲0.1682.91 ▼15.80
Media Library /wp-admin/upload.php3.39 ▲0.1635.83 ▼0.48
Euleo /wp-admin/admin.php?page=euleo3.3532.34
Configuration /wp-admin/admin.php?page=euleo_conf3.3330.91

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
recovery_mode_email_last_sent
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Euleo Übersetzungsbüro
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,851 ▲11613.58 ▼1.012.00 ▲0.2339.09 ▼1.38
Dashboard /wp-admin2,235 ▲445.95 ▲1.0796.39 ▼7.4071.47 ▲24.74
Posts /wp-admin/edit.php2,112 ▲232.00 ▼0.0534.77 ▼7.5233.05 ▼5.49
Add New Post /wp-admin/post-new.php1,554 ▲1018.23 ▼0.35685.57 ▲61.5769.49 ▲5.02
Media Library /wp-admin/upload.php1,417 ▲324.13 ▼0.0598.60 ▼2.3372.99 ▲30.46
Euleo /wp-admin/admin.php?page=euleo7041.147.4117.23
Configuration /wp-admin/admin.php?page=euleo_conf7001.356.8216.88

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • recovery_mode_email_last_sent
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/admin.php?page=euleo
    • > Warning in wp-content/plugins/euleo-ubersetzungsburo/euleo_core.php+24
    require_once(wp-content/plugins/euleo-ubersetzungsburo/Classes/Euleo/Backend/.php): failed to open stream: No such file or directory
    • > GET request to /wp-admin/admin.php?page=euleo
    • > Compile error in wp-content/plugins/euleo-ubersetzungsburo/euleo_core.php+24
    require_once(): Failed opening required 'wp-content/plugins/euleo-ubersetzungsburo/Classes/Euleo/Backend/.php' (include_path='.:/usr/share/php')
    • > GET request to /wp-admin/admin.php?page=euleo_conf
    • > Error in wp-content/plugins/euleo-ubersetzungsburo/Classes/Euleo/Cms.php+37
    Uncaught Error: Class 'SoapClient' not found in wp-content/plugins/euleo-ubersetzungsburo/Classes/Euleo/Cms.php:37
    Stack trace:
    #0 wp-content/plugins/euleo-ubersetzungsburo/Classes/Euleo/Client.php(60): Euleo_Cms->__construct()
    #1 wp-content/plugins/euleo-ubersetzungsburo/euleo_configuration.php(27): Euleo_Client->connect()
    #2 wp-includes/class-wp-hook.php(310): euleo_conf()
    #3 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #4 wp-includes/plugin.php(517): WP_Hook->do_action()
    #5 wp-admin/admin.php(259): do_action()
    #6 {main}
    thrown

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 fix the following items
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/euleo-ubersetzungsburo/euleo_hooks.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/euleo-ubersetzungsburo/euleo_core.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/euleo-ubersetzungsburo/euleo_core.php:18
    • > PHP Fatal error
      Uncaught Error: Interface 'Euleo_Backend' not found in wp-content/plugins/euleo-ubersetzungsburo/Classes/Euleo/Backend/Qtranslate.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
You can take inspiration from this readme.txt

euleo-ubersetzungsburo/euleo.php 92% from 13 tests

The principal PHP file in "Euleo Übersetzungsbüro" v. 1.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("euleo-ubersetzungsburo.php" instead of "euleo.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,370 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP112402161,180
PO File1363995
CSS114088
JavaScript13137

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity25.00
▷ Minimum class complexity1.00
▷ Maximum class complexity69.00
Average method complexity3.94
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods54
▷ Static methods00.00%
▷ Public methods4990.74%
▷ Protected methods59.26%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
12 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/remove.png1.06KB1.22KB0.00%
images/showCart.png2.49KB1.65KB▼ 33.52%
logo.png3.97KB1.60KB▼ 59.62%
images/logo.png4.76KB1.99KB▼ 58.20%
images/status_open.png1.05KB0.30KB▼ 71.51%