84% woo-invoice-online-rechnungen-de

Code Review | WooCommerce Online-Rechnungen.de

WordPress plugin WooCommerce Online-Rechnungen.de scored84%from 54 tests.

About plugin

  • Plugin page: woo-invoice-onlin...
  • Plugin version: 20180716...
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.7
  • WordPress version: 6.3.1
  • First release: Jul 25, 2018
  • Latest release: Jul 25, 2018
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: iwvor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /978 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.33ms] Passed 4 tests

This is a short check of server-side resources used by WooCommerce Online-Rechnungen.de
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.99 ▲0.75
Dashboard /wp-admin3.33 ▲0.0244.14 ▼2.06
Posts /wp-admin/edit.php3.38 ▲0.0247.07 ▼1.19
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.75 ▼12.21
Media Library /wp-admin/upload.php3.25 ▲0.0233.46 ▼1.85

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for WooCommerce Online-Rechnungen.de
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.26 ▼1.171.52 ▼0.1939.66 ▲0.53
Dashboard /wp-admin2,206 ▲215.86 ▼0.15109.57 ▲7.8944.32 ▼1.55
Posts /wp-admin/edit.php2,089 ▼02.02 ▼0.0039.33 ▲3.7235.30 ▼2.17
Add New Post /wp-admin/post-new.php1,513 ▼2017.44 ▼5.28646.91 ▲13.3251.97 ▼14.88
Media Library /wp-admin/upload.php1,388 ▼34.23 ▲0.0196.26 ▼4.5841.35 ▼3.69

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/woo-invoice-online-rechnungen-de/woocommerce-online-rechnungen.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: woocommerce, rechnungen, rechnung pdf, rechnungen erstellen, kostenlos rechnungen...

woo-invoice-online-rechnungen-de/woocommerce-online-rechnungen.php 85% from 13 tests

The primary PHP file in "WooCommerce Online-Rechnungen.de" version 20180716... is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Version: The version number should only use digits and periods (ex. "1.0.3" instead of "20180716...")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woo-invoice-online-rechnungen-de.php" instead of "woocommerce-online-rechnungen.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin536 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP55076473
PO File124063
HTML1100

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity8.00
▷ Minimum class complexity1.00
▷ Maximum class complexity13.00
Average method complexity3.15
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods1184.62%
▷ Protected methods215.38%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin