84% adresskorrektur-autocomplete-fuer-woo

Code Review | Address correction autocomplete for Woo

WordPress plugin Address correction autocomplete for Woo scored84%from 54 tests.

About plugin

  • Plugin page: adresskorrektur-a...
  • Plugin version: 1.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.2
  • WordPress version: 6.3.1
  • First release: Oct 22, 2020
  • Latest release: Apr 28, 2023
  • Number of updates: 10
  • Update frequency: every 91.8 days
  • Top authors: sahumedia (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

1,000+ active /4,436 total downloads

Benchmarks

Plugin footprint 83% 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.04MB] [CPU: ▼0.73ms] Passed 4 tests

This is a short check of server-side resources used by Address correction autocomplete for Woo
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0436.02 ▼1.72
Dashboard /wp-admin3.34 ▲0.0443.82 ▼0.72
Posts /wp-admin/edit.php3.39 ▲0.0445.92 ▼0.66
Add New Post /wp-admin/post-new.php5.92 ▲0.0489.06 ▲0.30
Media Library /wp-admin/upload.php3.27 ▲0.0435.48 ▲0.17
Autocomplete Checkout Address /wp-admin/admin.php?page=sahu_woo_com_auto_complete_page3.2336.82

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Address correction autocomplete for Woo
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲8513.21 ▼1.171.74 ▲0.2240.47 ▲0.60
Dashboard /wp-admin2,212 ▲274.81 ▼0.05110.84 ▲8.8043.05 ▲0.05
Posts /wp-admin/edit.php2,098 ▲91.99 ▼0.0341.10 ▼0.7936.09 ▼2.07
Add New Post /wp-admin/post-new.php1,540 ▲723.33 ▲0.04645.74 ▼37.4353.63 ▼8.21
Media Library /wp-admin/upload.php1,394 ▲34.22 ▼0.01108.08 ▲2.0247.20 ▼1.02
Autocomplete Checkout Address /wp-admin/admin.php?page=sahu_woo_com_auto_complete_page8182.0227.3826.94

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/adresskorrektur-autocomplete-fuer-woo/index.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: address, woo autocomplete, autocomplete, autokorrektur woo

adresskorrektur-autocomplete-fuer-woo/index.php 92% from 13 tests

The entry point to "Address correction autocomplete for Woo" version 1.2 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("adresskorrektur-autocomplete-fuer-woo.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected804 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1497379
PO File55763313
PHP12719112

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected