77% value-analysis-nutzwertanalyse

Code Review | Value Analysis - Nutzwertanalyse

WordPress plugin Value Analysis - Nutzwertanalyse scored77%from 54 tests.

About plugin

  • Plugin page: value-analysis-nu...
  • Plugin version: 0.11
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.2.2
  • WordPress version: 6.3.1
  • First release: Mar 17, 2021
  • Latest release: Jul 12, 2023
  • Number of updates: 11
  • Update frequency: every 77.2 days
  • Top authors: severinroth (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /363 total downloads

Benchmarks

Plugin footprint 82% 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.16MB] [CPU: ▼8.57ms] Passed 4 tests

A check of server-side resources used by Value Analysis - Nutzwertanalyse
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1745.12 ▼0.22
Dashboard /wp-admin3.47 ▲0.1253.04 ▼18.49
Posts /wp-admin/edit.php3.58 ▲0.2364.24 ▲12.65
Add New Post /wp-admin/post-new.php6.07 ▲0.1896.24 ▼22.06
Media Library /wp-admin/upload.php3.39 ▲0.1643.72 ▲6.50
All Value Analysis /wp-admin/edit.php?post_type=value_analysis3.4443.64
Add New /wp-admin/post-new.php?post_type=value_analysis3.5354.90

Server storage [IO: ▲28.12MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
It is recommended to fix the following issues
  • Try to limit filesystem usage to 25MB (currently using 28.12MB)
Filesystem: 47 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Value Analysis - Nutzwertanalyse
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,239 ▲47830.03 ▲15.4794.89 ▲93.3144.37 ▲1.81
Dashboard /wp-admin2,382 ▲20515.20 ▲9.54184.63 ▲94.4043.77 ▼0.66
Posts /wp-admin/edit.php2,291 ▲18812.51 ▲10.53138.88 ▲96.8438.59 ▲2.56
Add New Post /wp-admin/post-new.php1,579 ▲5329.87 ▲6.76803.81 ▲111.0835.03 ▼24.22
Media Library /wp-admin/upload.php1,654 ▲25415.18 ▲10.99221.05 ▲115.9848.67 ▲2.65
All Value Analysis /wp-admin/edit.php?post_type=value_analysis1,29512.27141.9030.77
Add New /wp-admin/post-new.php?post_type=value_analysis2,33812.89275.4272.17
Value Analysis /wp-admin/vave_admin.php260.420.0813.83

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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
The following issues need your attention
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/value-analysis-nutzwertanalyse/PHP/vave_admin.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/value-analysis-nutzwertanalyse/PHP/vave_page.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/value-analysis-nutzwertanalyse/PHP/vave_mainPHP.php:60
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/value-analysis-nutzwertanalyse/PHP/vave_request.php:2

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
    • > GET request to /wp-admin/vave_admin.php
    • > Network (severe)
    wp-admin/vave_admin.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention: The official readme.txt might help

value-analysis-nutzwertanalyse/init.php 85% from 13 tests

The main PHP file in "Value Analysis - Nutzwertanalyse" ver. 0.11 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("value-analysis-nutzwertanalyse.php" instead of "init.php")

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 plugin4,545 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP61811131,522
SVG2001,393
JavaScript32161211,119
PO File2196206428
CSS4742782
XML1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Constants2
▷ Global constants2100.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
No PNG files were detected