83% billbee-auftragsabwicklung-warenwirtschaft-automatisierung

Code Review | Billbee - Auftragsabwicklung, Warenwirtschaft, Automatisierung

WordPress plugin Billbee - Auftragsabwicklung, Warenwirtschaft, Automatisierung scored83%from 54 tests.

About plugin

  • Plugin page: billbee-auftragsa...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.9
  • WordPress version: 6.3.1
  • First release: Jan 10, 2017
  • Latest release: May 4, 2022
  • Number of updates: 24
  • Update frequency: every 80.7 days
  • Top authors: billbee (100%)

Code review

54 tests

User reviews

1 review

Install metrics

600+ active /4,970 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

A check of server-side resources used by Billbee - Auftragsabwicklung, Warenwirtschaft, Automatisierung
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0539.87 ▼4.41
Dashboard /wp-admin3.35 ▲0.0148.29 ▼16.90
Posts /wp-admin/edit.php3.47 ▲0.1152.21 ▲1.51
Add New Post /wp-admin/post-new.php5.95 ▲0.0788.44 ▼10.82
Media Library /wp-admin/upload.php3.28 ▲0.0535.71 ▼2.32
Billbee /wp-admin/options-general.php?page=billbee3.2429.52

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Billbee - Auftragsabwicklung, Warenwirtschaft, Automatisierung
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,906 ▲14513.59 ▼0.995.79 ▲3.9342.44 ▼3.87
Dashboard /wp-admin2,229 ▲265.88 ▼0.05102.43 ▼14.3340.02 ▼2.88
Posts /wp-admin/edit.php2,108 ▲112.01 ▼0.0439.93 ▲4.1834.89 ▼1.77
Add New Post /wp-admin/post-new.php1,538 ▲723.30 ▲0.25657.74 ▼6.8654.02 ▼2.01
Media Library /wp-admin/upload.php1,411 ▲144.21 ▼0.0095.49 ▼8.7747.28 ▲0.43
Billbee /wp-admin/options-general.php?page=billbee1,2388.08188.9245.71

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means 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
Almost there! Just fix the following items
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/billbee-auftragsabwicklung-warenwirtschaft-automatisierung/admin/partials/billbee-admin-display.php
    • > /wp-content/plugins/billbee-auftragsabwicklung-warenwirtschaft-automatisierung/public/partials/billbee-public-display.php

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 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === billbee-auftragsabwicklung-warenwirtschaft-automatisierung === )
Please take inspiration from this readme.txt

billbee-auftragsabwicklung-warenwirtschaft-automatisierung/billbee.php 85% from 13 tests

The main PHP script in "Billbee - Auftragsabwicklung, Warenwirtschaft, Automatisierung" version 1.0.0 is automatically included on every request by WordPress
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
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("billbee-auftragsabwicklung-warenwirtschaft-automatisierung.php" instead of "billbee.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
Success! There were no dangerous files found in this plugin182 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12121533176
JavaScript24546
CSS2080

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.07
Average class complexity1.29
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.09
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods23
▷ Static methods28.70%
▷ Public methods1878.26%
▷ Protected methods00.00%
▷ Private methods521.74%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.24MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-1544x500-rtl.png78.70KB22.89KB▼ 70.92%
assets/icon-128x128.png4.20KB1.97KB▼ 53.01%
assets/banner-1544x500.png78.70KB22.89KB▼ 70.92%
assets/banner-772x250.png36.75KB11.39KB▼ 69.01%
assets/banner-772x250-rtl.png36.75KB11.39KB▼ 69.01%