83% mobel-wergwerf-kalkulator-widget

Code Review | Möbel Wegwerf Kalkulator - Widget

WordPress plugin Möbel Wegwerf Kalkulator - Widget scored 83% from 53 tests.

About plugin

  • Plugin page: mobel-wergwerf-ka...
  • Plugin version: 2019.09.001
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7.2
  • WordPress version: 5.8.1
  • First release: Sep 10, 2019
  • Latest release: May 20, 2021
  • Number of updates: 8
  • Update frequency: every 77.4 days
  • Top authors: weitergebenorgtech (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 267 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
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼1,255.80ms] Passed 4 tests

An overview of server-side resources used by Möbel Wegwerf Kalkulator - Widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1332.72 ▲3.98
Dashboard /wp-admin3.07 ▲0.0139.34 ▼3.35
Posts /wp-admin/edit.php3.12 ▲0.0137.58 ▼3.33
Add New Post /wp-admin/post-new.php5.32 ▼0.0174.28 ▼5,011.08
Media Library /wp-admin/upload.php3.01 ▲0.0127.88 ▼5.42

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 1 new option
New WordPress options
widget_furniture_calculator_widget

Browser metrics Passed 4 tests

Möbel Wegwerf Kalkulator - Widget: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,674 ▲6815.93 ▲0.308.27 ▲0.4649.47 ▲0.98
Dashboard /wp-admin2,919 ▲696.11 ▲0.28138.33 ▼27.41106.77 ▲5.64
Posts /wp-admin/edit.php2,707 ▲12.70 ▲0.0164.20 ▼3.3696.13 ▲4.36
Add New Post /wp-admin/post-new.php1,857 ▼1,85019.16 ▲3.74364.49 ▼61.60108.56 ▲3.77
Media Library /wp-admin/upload.php1,779 ▲75.00 ▼0.01147.60 ▲4.24107.36 ▼6.59

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 1 option
    • widget_furniture_calculator_widget

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)
Even though everything seems fine, this is not an exhaustive test

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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mobel-wergwerf-kalkulator-widget/wegwerf-kalkulator-widget.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Contributors: The plugin contributors field is not present
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

mobel-wergwerf-kalkulator-widget/wegwerf-kalkulator-widget.php 85% from 13 tests

The primary PHP file in "Möbel Wegwerf Kalkulator - Widget" version 2019.09.001 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 213 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("mobel-wergwerf-kalkulator-widget.php" instead of "wegwerf-kalkulator-widget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin209 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1193193
PHP1184069
CSS10447

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin