84% autocomplete-wizard

Code Review | Autocomplete Wizard

WordPress plugin Autocomplete Wizard scored 84% from 54 tests.

About plugin

  • Plugin page: autocomplete-wizard
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.3
  • WordPress version: 6.3.1
  • First release: Apr 14, 2015
  • Latest release: Aug 17, 2016
  • Number of updates: 8
  • Update frequency: every 61.9 days
  • Top authors: butterflymedia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,257 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼4.10ms] Passed 4 tests

A check of server-side resources used by Autocomplete Wizard
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0737.46 ▼3.31
Dashboard /wp-admin3.37 ▲0.0744.96 ▼1.84
Posts /wp-admin/edit.php3.42 ▲0.0651.85 ▼1.55
Add New Post /wp-admin/post-new.php5.95 ▲0.0697.21 ▼9.69
Media Library /wp-admin/upload.php3.29 ▲0.0636.83 ▲0.43
Autocomplete Wizard /wp-admin/options-general.php?page=acw3.2630.78

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 8 new options
New WordPress options
acw_select_placeholder
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
acw_search_label
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Autocomplete Wizard
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7113.22 ▼1.164.37 ▲2.5336.10 ▼13.09
Dashboard /wp-admin2,213 ▲284.89 ▼0.01107.83 ▲2.7338.22 ▼5.51
Posts /wp-admin/edit.php2,093 ▲42.06 ▲0.0138.30 ▼2.8236.09 ▲1.29
Add New Post /wp-admin/post-new.php1,536 ▲823.08 ▼0.00590.92 ▼9.7753.07 ▲7.75
Media Library /wp-admin/upload.php1,392 ▲14.16 ▼0.0593.15 ▼4.5239.02 ▼4.76
Autocomplete Wizard /wp-admin/options-general.php?page=acw9282.0222.0632.61

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • theysaidso_admin_options
    • acw_search_label
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • acw_select_placeholder
    • widget_recent-posts
    • widget_theysaidso_widget

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
The smoke test was a success, however most plugin functionality was not tested

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
Please 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/autocomplete-wizard/autocomplete-wizard.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: autocomplete, dropdown, select, search

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

"Autocomplete Wizard" version 2.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 212 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin1,166 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
CSS1126109811
PHP16120355

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin