78% mitfahrgelegenheit

Code Review | Mitfahrgelegenheit

WordPress plugin Mitfahrgelegenheit scored 78% from 54 tests.

About plugin

  • Plugin page: mitfahrgelegenheit
  • Plugin version: 1.1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Feb 25, 2017
  • Latest release: Jul 22, 2023
  • Number of updates: 34
  • Update frequency: every 68.8 days
  • Top authors: bessermitfahren (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 1,385 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.08ms] Passed 4 tests

Analyzing server-side resources used by Mitfahrgelegenheit
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0540.05 ▼0.37
Dashboard /wp-admin3.35 ▲0.0445.07 ▼2.74
Posts /wp-admin/edit.php3.40 ▲0.0446.50 ▼1.99
Add New Post /wp-admin/post-new.php5.93 ▲0.0485.13 ▼11.23
Media Library /wp-admin/upload.php3.27 ▲0.0434.69 ▼4.37
Mitfahrgelegenheit /wp-admin/options-general.php?page=bmf-mfg3.2830.89

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
de.bessermitfahren.options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Mitfahrgelegenheit: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲8714.48 ▲0.091.89 ▼0.3939.16 ▼9.69
Dashboard /wp-admin2,222 ▲315.84 ▲0.94102.61 ▲1.7340.61 ▼2.43
Posts /wp-admin/edit.php2,107 ▲182.02 ▼0.0436.08 ▼1.4434.64 ▲0.09
Add New Post /wp-admin/post-new.php1,554 ▲2123.38 ▲0.10657.04 ▼6.6967.12 ▲16.50
Media Library /wp-admin/upload.php1,401 ▲104.27 ▲0.0695.28 ▼0.4041.56 ▼4.28
Mitfahrgelegenheit /wp-admin/options-general.php?page=bmf-mfg8482.1625.4230.60

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
The following issues need your attention
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/mitfahrgelegenheit/functions.php
    • > /wp-content/plugins/mitfahrgelegenheit/mitfahrgelegenheit.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/mitfahrgelegenheit/options.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (https://www.bessermitfahren.de/images/wordpress_example.png) image required
Please take inspiration from this readme.txt

mitfahrgelegenheit/mitfahrgelegenheit.php 92% from 13 tests

The main PHP file in "Mitfahrgelegenheit" ver. 1.1.5 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
Everything looks great! No dangerous files found in this plugin453 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP43120432
JavaScript10121

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.53
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
2 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
bmf_button.png18.30KB7.72KB▼ 57.79%
wordpress_example.png33.18KB11.17KB▼ 66.34%