94% wl-gravity-forms-german-address-format

Code Review | WL GF German Address Format

WordPress plugin WL GF German Address Format scored 94% from 54 tests.

About plugin

  • Plugin page: wl-gravity-forms-...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.0.2
  • WordPress version: 5.8.1
  • First release: Aug 23, 2017
  • Latest release: Jan 8, 2019
  • Number of updates: 14
  • Update frequency: every 37.7 days
  • Top authors: weslink (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 744 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼180.85ms] Passed 4 tests

An overview of server-side resources used by WL GF German Address Format
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0123.95 ▲0.78
Dashboard /wp-admin3.07 ▲0.0031.18 ▼8.89
Posts /wp-admin/edit.php3.12 ▲0.0128.49 ▼3.86
Add New Post /wp-admin/post-new.php5.43 ▼0.0167.39 ▼709.23
Media Library /wp-admin/upload.php3.01 ▲0.0121.48 ▼1.40

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for WL GF German Address Format
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,666 ▲6515.97 ▲0.374.95 ▼1.3278.21 ▼2.11
Dashboard /wp-admin2,930 ▲346.10 ▼0.08123.19 ▼7.63167.46 ▼8.39
Posts /wp-admin/edit.php2,740 ▼03.24 ▲0.0063.67 ▼2.07134.02 ▼6.48
Add New Post /wp-admin/post-new.php3,807 ▲10918.03 ▼0.26438.65 ▼18.02160.57 ▲3.08
Media Library /wp-admin/upload.php1,752 ▼05.50 ▲0.02149.25 ▲4.25188.04 ▲5.66

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wl-gravity-forms-german-address-format/wl-gf-german-address-format.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (Duplizieren von Beiträgen und Seiten in Ihrer WordPress Instanz) image missing
The official readme.txt is a good inspiration

wl-gravity-forms-german-address-format/wl-gf-german-address-format.php 92% from 13 tests

The principal PHP file in "WL GF German Address Format" v. 1.0.3 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wl-gravity-forms-german-address-format.php" instead of "wl-gf-german-address-format.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
Everything looks great! No dangerous files found in this plugin90 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1252751
PO File181039

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.15
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected