84% woo-autocomplete

Code Review | Woo-Autocomplete

WordPress plugin Woo-Autocomplete scored84%from 54 tests.

About plugin

  • Plugin page: woo-autocomplete
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.5
  • WordPress version: 6.3.1
  • First release: Oct 18, 2017
  • Latest release: Oct 18, 2017
  • Number of updates: 7
  • Update frequency: every 0.7 days
  • Top authors: conceptualapps (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /643 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼7.18ms] Passed 4 tests

A check of server-side resources used by Woo-Autocomplete
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0435.65 ▼0.55
Dashboard /wp-admin3.34 ▲0.0444.38 ▼3.20
Posts /wp-admin/edit.php3.39 ▲0.0345.39 ▼3.64
Add New Post /wp-admin/post-new.php5.92 ▲0.0381.49 ▼16.19
Media Library /wp-admin/upload.php3.26 ▲0.0333.93 ▼5.67

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Woo-Autocomplete
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,857 ▲11114.15 ▼0.1412.32 ▲10.4940.79 ▼3.28
Dashboard /wp-admin2,206 ▲155.03 ▲0.13106.98 ▲6.7940.46 ▼3.21
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0339.93 ▼0.1835.65 ▼1.91
Add New Post /wp-admin/post-new.php1,520 ▼2222.92 ▲4.92641.80 ▲2.9351.31 ▼6.10
Media Library /wp-admin/upload.php1,385 ▼34.23 ▲0.0393.70 ▼16.2643.29 ▼2.63

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woo-autocomplete/includes/wooautocomplete.php:52

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: woocommerce addres autocomplete, billing address autcomplete, address suggestion google, address autocomplete for woocommerce, shipping address autocomplete...

woo-autocomplete/woo-autocomplete.php 92% from 13 tests

The main PHP file in "Woo-Autocomplete" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Requires at least: Required version does not match the one declared in readme.txt ("3.0.0" instead of "4.1")

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 plugin164 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript12488
PHP248976

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
PNG images were not found in this plugin