90% auto-fill-form-fields

Code Review | Auto Fill Form Fields

WordPress plugin Auto Fill Form Fields scored 90% from 54 tests.

About plugin

  • Plugin page: auto-fill-form-fi...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1+
  • WordPress version: 6.3.1
  • First release: Sep 13, 2016
  • Latest release: May 9, 2017
  • Number of updates: 11
  • Update frequency: every 22.1 days
  • Top authors: trainingbusinesspros (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 2,268 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▼0.13MB] [CPU: ▼13.58ms] Passed 4 tests

An overview of server-side resources used by Auto Fill Form Fields
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▼0.0337.61 ▼17.23
Dashboard /wp-admin3.31 ▲0.0167.95 ▲5.11
Posts /wp-admin/edit.php3.36 ▼0.4946.10 ▼12.18
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.14 ▼23.88
Media Library /wp-admin/upload.php3.23 ▲0.0034.55 ▼1.03

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Auto Fill Form Fields
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.28 ▼1.114.42 ▲2.1744.67 ▼7.05
Dashboard /wp-admin2,203 ▲125.79 ▼0.11125.91 ▼3.1054.05 ▼8.98
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0239.39 ▲3.2738.72 ▲3.00
Add New Post /wp-admin/post-new.php1,520 ▼1721.10 ▼2.39724.73 ▼6.8065.77 ▲5.48
Media Library /wp-admin/upload.php1,388 ▼04.13 ▼0.07119.86 ▼10.9754.90 ▼0.55

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

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 on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: infusionsoft, cf7, web, contact form 7, auto fill...

auto-fill-form-fields/form-auto-fill.php 92% from 13 tests

The main file in "Auto Fill Form Fields" v. 1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("auto-fill-form-fields.php" instead of "form-auto-fill.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 detected19 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP151018
JavaScript1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin