83% weitergeben-org

Code Review | Weitergeben.org

WordPress plugin Weitergeben.org scored83%from 54 tests.

About plugin

  • Plugin page: weitergeben-org
  • Plugin version: 1.1.1
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.4
  • WordPress version: 6.3.1
  • First release: Mar 13, 2020
  • Latest release: Apr 7, 2020
  • Number of updates: 12
  • Update frequency: every 2.1 days
  • Top authors: ffetech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /382 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼5.38ms] Passed 4 tests

Analyzing server-side resources used by Weitergeben.org
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0841.34 ▲1.85
Dashboard /wp-admin3.39 ▲0.0447.88 ▼17.47
Posts /wp-admin/edit.php3.44 ▲0.0851.35 ▲0.94
Add New Post /wp-admin/post-new.php5.97 ▲0.0889.46 ▼6.84
Media Library /wp-admin/upload.php3.31 ▲0.0840.45 ▲3.39

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Weitergeben.org
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.42 ▼0.201.88 ▲0.2745.20 ▲4.19
Dashboard /wp-admin2,195 ▲175.63 ▼0.1392.41 ▼10.4237.21 ▼3.29
Posts /wp-admin/edit.php2,097 ▼32.03 ▲0.0439.08 ▲1.2937.08 ▲4.56
Add New Post /wp-admin/post-new.php1,534 ▲818.10 ▼5.09630.37 ▼5.7267.39 ▲12.28
Media Library /wp-admin/upload.php1,400 ▼04.27 ▲0.0696.78 ▼4.0139.97 ▼3.44

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_weitergeben-org
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

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)
Good news, no errors were detected

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 take a closer look at the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/weitergeben-org/ffetech-weitergeben-widget.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/weitergeben-org/ffetech-weitergeben.php:29

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 90% from 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
3 plugin tags: gebraucht, widget, mbel

weitergeben-org/ffetech-weitergeben.php 77% from 13 tests

The principal PHP file in "Weitergeben.org" v. 1.1.1 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("weitergeben-org.php" instead of "ffetech-weitergeben.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin707 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP311927460
JavaScript3019247

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity19.50
▷ Minimum class complexity2.00
▷ Maximum class complexity37.00
Average method complexity5.00
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
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
No PNG files were detected