10% contact-form-by-fulfills

Code Review | Contact Form By FULFILLs

WordPress plugin Contact Form By FULFILLs scored10%from 54 tests.

About plugin

  • Plugin page: contact-form-by-f...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4.2-5.5
  • WordPress version: 6.3.1
  • First release: Aug 13, 2020
  • Latest release: Aug 26, 2020
  • Number of updates: 58
  • Update frequency: every 0.2 days
  • Top authors: fulfills (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /597 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • Install procedure had errors
    • > Notice in wp-content/plugins/contact-form-by-fulfills/php/js.php+5
    Undefined index: page

Server metrics [RAM: ▼1.93MB] [CPU: ▼54.08ms] Passed 4 tests

This is a short check of server-side resources used by Contact Form By FULFILLs
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.415.37 ▼38.20
Dashboard /wp-admin2.08 ▼1.238.34 ▼47.46
Posts /wp-admin/edit.php2.08 ▼1.287.04 ▼46.79
Add New Post /wp-admin/post-new.php2.08 ▼3.817.61 ▼83.87
Media Library /wp-admin/upload.php2.08 ▼1.156.79 ▼29.17
Inbox /wp-admin/admin.php?page=contact-form-by-fulfills-reply3.0928.87
Other Settings /wp-admin/admin.php?page=contact-form-by-fulfills-other3.1027.31
About Us /wp-admin/admin.php?page=contact-form-by-fulfills3.0924.16
Form Settings /wp-admin/admin.php?page=contact-form-by-fulfills-edit3.1026.60

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Contact Form By FULFILLs
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5914.24 ▼0.491.87 ▲0.0844.09 ▼5.80
Dashboard /wp-admin2,229 ▲495.67 ▼0.0092.68 ▼3.8842.89 ▼1.55
Posts /wp-admin/edit.php2,131 ▲281.97 ▼0.0340.28 ▲2.1937.81 ▲1.96
Add New Post /wp-admin/post-new.php1,553 ▲2523.24 ▲0.02686.01 ▼10.7352.31 ▲0.53
Media Library /wp-admin/upload.php1,428 ▲314.17 ▼0.03102.61 ▼10.5046.31 ▼1.02
Inbox /wp-admin/admin.php?page=contact-form-by-fulfills-reply8352.0323.9226.52
Other Settings /wp-admin/admin.php?page=contact-form-by-fulfills-other9372.0025.3230.82
About Us /wp-admin/admin.php?page=contact-form-by-fulfills8242.0223.5737.28
Form Settings /wp-admin/admin.php?page=contact-form-by-fulfills-edit9101.9631.3841.37

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/contact-form-by-fulfills/php/js.php+5
    Undefined index: page
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
  • 15 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=contact-form-by-fulfills-edit
    • > Notice in wp-content/plugins/contact-form-by-fulfills/pages/form-settings/edit.php+54
    Trying to access array offset on value of type bool
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=contact-form-by-fulfills-reply
    • > Notice in wp-content/plugins/contact-form-by-fulfills/pages/inbox/includes/listpage.php+31
    Undefined index: status
    • > GET request to /wp-admin/admin.php?page=contact-form-by-fulfills-edit
    • > Warning in wp-content/plugins/contact-form-by-fulfills/pages/form-settings/includes/inputs.php+64
    Invalid argument supplied for foreach()

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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed: The official readme.txt might help

contact-form-by-fulfills/contact-form-by-fulfills.php 92% from 13 tests

The main PHP file in "Contact Form By FULFILLs" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 141 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,408 lines of code in 35 files:
LanguageFilesBlank linesComment linesLines of code
PHP257141832
CSS4527319
JavaScript63417257

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.35
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%
Functions34
▷ Named functions34100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 were not PNG files found in your plugin