79% form-data-collector

Code Review | Form Data Collector

WordPress plugin Form Data Collector scored 79% from 54 tests.

About plugin

  • Plugin page: form-data-collector
  • Plugin version: 2.2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.2
  • WordPress version: 6.3.1
  • First release: Dec 16, 2015
  • Latest release: May 23, 2023
  • Number of updates: 88
  • Update frequency: every 30.9 days
  • Top authors: taunoh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 3,349 total downloads

Benchmarks

Plugin footprint 65% 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.16MB] [CPU: ▼6.38ms] Passed 4 tests

This is a short check of server-side resources used by Form Data Collector
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1539.61 ▼2.87
Dashboard /wp-admin3.46 ▲0.1644.09 ▼10.10
Posts /wp-admin/edit.php3.58 ▲0.2348.38 ▼0.13
Add New Post /wp-admin/post-new.php6.06 ▲0.1889.15 ▼12.40
Media Library /wp-admin/upload.php3.39 ▲0.1638.12 ▲3.20

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 21 new files
Database: 2 new tables, 7 new options
New tables
wp_fdc_entries
wp_fdc_entries_meta
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
fdc_db_version
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Form Data Collector
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,957 ▲22213.83 ▼0.475.00 ▲3.1738.47 ▼3.44
Dashboard /wp-admin2,254 ▲665.15 ▲0.25120.45 ▲6.4342.32 ▼2.09
Posts /wp-admin/edit.php2,146 ▲572.39 ▲0.3437.99 ▼2.5430.36 ▼4.05
Add New Post /wp-admin/post-new.php1,559 ▲1723.41 ▲5.04662.85 ▲64.0235.39 ▼15.67
Media Library /wp-admin/upload.php1,436 ▲484.50 ▲0.2297.66 ▲0.1441.35 ▼1.88

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The plugin did not uninstall successfully, leaving 2 tables in the database
    • wp_fdc_entries_meta
    • wp_fdc_entries
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • fdc_db_version
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

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 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: forms, input, form, database, email...

form-data-collector/index.php 85% from 13 tests

"Form Data Collector" version 2.2.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("form-data-collector.php" instead of "index.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
No dangerous file extensions were detected4,402 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
JSON2002,464
PHP94356141,679
JavaScript53827238
Sass23019
CSS2002

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity30.57
▷ Minimum class complexity2.00
▷ Maximum class complexity124.00
Average method complexity3.62
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods78
▷ Static methods11.28%
▷ Public methods5570.51%
▷ Protected methods2126.92%
▷ Private methods22.56%
Functions23
▷ Named functions2191.30%
▷ Anonymous functions28.70%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin