84% autocomplete

Code Review | Autocomplete

WordPress plugin Autocomplete scored84%from 54 tests.

About plugin

  • Plugin page: autocomplete
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.7
  • WordPress version: 6.3.1
  • First release: Jan 1, 2017
  • Latest release: Mar 4, 2017
  • Number of updates: 5
  • Update frequency: every 12.2 days
  • Top authors: aviket (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,291 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
This plugin's installer ran successfully

Server metrics [RAM: ▼0.94MB] [CPU: ▼28.31ms] Passed 4 tests

Analyzing server-side resources used by Autocomplete
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0235.84 ▼6.94
Dashboard /wp-admin3.33 ▼0.0148.76 ▼10.82
Posts /wp-admin/edit.php3.39 ▲0.0341.86 ▼0.29
Add New Post /wp-admin/post-new.php2.09 ▼3.795.51 ▼95.19
Media Library /wp-admin/upload.php3.26 ▲0.0337.21 ▲4.02
Autocomplete Options /wp-admin/options-general.php?page=Autocomplete_options3.2230.71

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
Autocomplete-Settings

Browser metrics Passed 4 tests

Checking browser requirements for Autocomplete
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.44 ▲0.061.72 ▼0.0344.90 ▲1.25
Dashboard /wp-admin2,199 ▲195.58 ▼0.0986.36 ▼12.8242.40 ▼0.72
Posts /wp-admin/edit.php2,104 ▲41.94 ▼0.0534.73 ▼1.8633.13 ▲4.33
Add New Post /wp-admin/post-new.php1,374 ▼16216.57 ▼1.54535.72 ▼104.2545.30 ▼28.16
Media Library /wp-admin/upload.php1,407 ▲134.19 ▼0.0595.79 ▼0.2140.17 ▲0.74
Autocomplete Options /wp-admin/options-general.php?page=Autocomplete_options8222.0324.6327.58

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
Please fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/autocomplete/1.1/AutocompleteSettings.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/autocomplete/AutocompleteSettings.php:12

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
1 plugin tags: autocomplete

autocomplete/autocompele.php 92% from 13 tests

"Autocomplete" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("autocomplete.php" instead of "autocompele.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected1,346 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript31972301,094
PHP311126229
CSS16023

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.22
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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 files were detected