84% auto-form-fill

Code Review | Auto Form Fill

WordPress plugin Auto Form Fill scored84%from 54 tests.

About plugin

  • Plugin page: auto-form-fill
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.8.1
  • WordPress version: 6.3.1
  • First release: Aug 22, 2017
  • Latest release: Aug 22, 2017
  • Number of updates: 5
  • Update frequency: every 13.0 days
  • Top authors: paragcste (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /5,283 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

Server-side resources used by Auto Form Fill
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.65 ▲1.48
Dashboard /wp-admin3.33 ▲0.0347.26 ▼1.81
Posts /wp-admin/edit.php3.38 ▲0.0343.80 ▼3.04
Add New Post /wp-admin/post-new.php5.93 ▲0.0584.01 ▼15.49
Media Library /wp-admin/upload.php3.26 ▲0.0336.27 ▼0.16

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Auto Form Fill
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,915 ▲15413.46 ▼1.3210.97 ▲9.2442.52 ▲2.60
Dashboard /wp-admin2,215 ▲455.62 ▼0.0786.50 ▼13.4037.98 ▼0.61
Posts /wp-admin/edit.php2,120 ▲201.98 ▲0.0235.90 ▼1.3330.38 ▼1.43
Add New Post /wp-admin/post-new.php1,552 ▲2618.02 ▼5.33619.13 ▼16.5693.71 ▲13.70
Media Library /wp-admin/upload.php1,414 ▲114.24 ▲0.05104.98 ▲2.3844.91 ▼3.46

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means 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× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/auto-form-fill/autoFormFill.php:14

User-side errors Passed 1 test

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


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === auto-form-fill === )
The official readme.txt might help

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

The main PHP file in "Auto Form Fill" 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:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("auto-form-fill.php" instead of "autoFormFill.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
Success! There were no dangerous files found in this plugin337 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions11100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-128x128.png5.12KB2.60KB▼ 49.16%
assets/banner-772x250.png19.40KB5.76KB▼ 70.31%