84% impressum

Code Review | Impressum

WordPress plugin Impressum scored84%from 54 tests.

About plugin

  • Plugin page: impressum
  • Plugin version: 2.0.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Apr 14, 2018
  • Latest release: Aug 5, 2023
  • Number of updates: 53
  • Update frequency: every 36.7 days
  • Top authors: epiphyt (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

5,000+ active /40,290 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.30MB] [CPU: ▼3.42ms] Passed 4 tests

An overview of server-side resources used by Impressum
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2538.85 ▲0.14
Dashboard /wp-admin3.62 ▲0.2851.29 ▼11.58
Posts /wp-admin/edit.php3.74 ▲0.3848.40 ▲3.15
Add New Post /wp-admin/post-new.php6.23 ▲0.3484.23 ▼5.39
Media Library /wp-admin/upload.php3.55 ▲0.3241.62 ▲9.72
Impressum /wp-admin/options-general.php?page=impressum3.5533.79

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Impressum
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲5514.38 ▲0.001.71 ▼0.1043.84 ▲5.28
Dashboard /wp-admin2,222 ▲425.65 ▲0.0392.96 ▲8.1340.43 ▼3.99
Posts /wp-admin/edit.php2,128 ▲282.02 ▲0.0736.08 ▼1.7235.10 ▼1.73
Add New Post /wp-admin/post-new.php6,392 ▲4,86427.60 ▲4.52907.88 ▲251.7839.77 ▼15.29
Media Library /wp-admin/upload.php1,430 ▲304.15 ▼0.04107.04 ▼2.9946.93 ▲0.12
Impressum /wp-admin/options-general.php?page=impressum1,3951.7424.6470.48

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix 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 plugin_basename() in wp-content/plugins/impressum/impressum.php:82

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: impressum, terms, legal notice

impressum/impressum.php 92% from 13 tests

The principal PHP file in "Impressum" v. 2.0.3 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • 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 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin1,689 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP81714491,392
JavaScript53784189
CSS33679
Markdown127029

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity34.00
▷ Minimum class complexity1.00
▷ Maximum class complexity62.00
Average method complexity4.62
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods46
▷ Static methods715.22%
▷ Public methods4495.65%
▷ Protected methods00.00%
▷ Private methods24.35%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants2
▷ Global constants2100.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
PNG images were not found in this plugin