79% mail-nachricht

Code Review | Mail Nachricht

WordPress plugin Mail Nachricht scored 79% from 54 tests.

About plugin

  • Plugin page: mail-nachricht
  • Plugin version: 2.5
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.3
  • WordPress version: 6.3.1
  • First release: Jun 25, 2020
  • Latest release: Aug 11, 2023
  • Number of updates: 140
  • Update frequency: every 8.2 days
  • Top authors: wolfgangac (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 3,861 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
Installer ran successfully

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

A check of server-side resources used by Mail Nachricht
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.08 ▼3.39
Dashboard /wp-admin3.32 ▲0.0145.02 ▼5.13
Posts /wp-admin/edit.php3.37 ▲0.0150.51 ▲1.00
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.62 ▼13.56
Media Library /wp-admin/upload.php3.24 ▲0.0133.94 ▼0.24
Mail Nachricht /wp-admin/options-general.php?page=mail_nachricht_options3.1833.66

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Mail Nachricht
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.32 ▼1.241.83 ▲0.0943.06 ▼5.79
Dashboard /wp-admin2,210 ▲254.81 ▼0.10102.41 ▼13.0040.96 ▼1.20
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0439.83 ▼1.3234.73 ▼0.27
Add New Post /wp-admin/post-new.php1,538 ▲2423.26 ▲5.71640.86 ▼33.3161.63 ▲5.69
Media Library /wp-admin/upload.php1,395 ▲104.17 ▼0.0394.84 ▼4.6640.55 ▼2.52
Mail Nachricht /wp-admin/options-general.php?page=mail_nachricht_options9092.0522.1233.04

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=mail_nachricht_options
    • > Notice in wp-content/plugins/mail-nachricht/mail-nachricht.php+194
    Undefined variable: email
    • > GET request to /wp-admin/options-general.php?page=mail_nachricht_options
    • > Notice in wp-content/plugins/mail-nachricht/mail-nachricht.php+127
    Undefined index: REQUEST_URL

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/mail-nachricht/mail-nachricht.php:259

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: benachrichtigung, e-mail

mail-nachricht/mail-nachricht.php Passed 13 tests

The primary PHP file in "Mail Nachricht" version 2.5 is used by WordPress to initiate all plugin functionality
99 characters long description:
Mit diesem Mail-Plugin bekommt man eine E-Mail Nachricht, wenn jemand eine bestimmte Seite besucht.

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
Good job! No executable or dangerous file extensions detected186 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP15266164
PO File16822

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.06
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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