67% form-maker

Code Review | Form Maker by 10Web - Mobile-Friendly Drag & Drop Contact Form Builder

WordPress plugin Form Maker by 10Web - Mobile-Friendly Drag & Drop Contact Form Builder scored67%from 54 tests.

About plugin

  • Plugin page: form-maker
  • Plugin version: 1.15.21
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: Apr 4, 2012
  • Latest release: Oct 11, 2023
  • Number of updates: 1
  • Update frequency: every 365.0 days

Code review

54 tests

User reviews

770 reviews

Install metrics

60,000+ active /4,638,267 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲2.47MB] [CPU: ▲12.51ms] Passed 4 tests

An overview of server-side resources used by Form Maker by 10Web - Mobile-Friendly Drag & Drop Contact Form Builder
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /8.26 ▲4.8064.13 ▲26.96
Dashboard /wp-admin5.79 ▲2.4463.11 ▲1.36
Posts /wp-admin/edit.php5.85 ▲2.4963.39 ▲17.35
Add New Post /wp-admin/post-new.php8.32 ▲2.43108.63 ▲12.47
Media Library /wp-admin/upload.php5.75 ▲2.5155.69 ▲18.85
Forms /wp-admin/admin.php?page=manage_fm8.6679.76
Themes /wp-admin/admin.php?page=themes_fm7.0056.49
Blocked IPs /wp-admin/admin.php?page=blocked_ips_fm5.7250.93
Options /wp-admin/admin.php?page=options_fm5.7350.31
Submissions /wp-admin/admin.php?page=submissions_fm6.5454.30
Speed Optimization /wp-admin/admin.php?page=twb_form-maker5.8150.25
Uninstall /wp-admin/admin.php?page=uninstall_fm5.4652.71

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 1,015 new files
Database: 11 new tables, 10 new options
New tables
wp_formmaker_submits
wp_formmaker_backup
wp_formmaker_views
wp_formmaker_groups
wp_formmaker_blocked
wp_formmaker_cookies
wp_formmaker
wp_formmaker_query
wp_formmaker_display_options
wp_formmaker_sessions
...
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
fm_settings
widget_form_maker_widget
widget_recent-comments
fm_admin_notice
twb_images_total_size
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Form Maker by 10Web - Mobile-Friendly Drag & Drop Contact Form Builder: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,507 ▲74614.04 ▼0.5033.71 ▲32.1836.31 ▼4.22
Dashboard /wp-admin2,241 ▲645.58 ▲0.0183.87 ▼3.3373.75 ▲33.56
Posts /wp-admin/edit.php2,843 ▲7432.41 ▲0.4472.90 ▲35.6344.82 ▲6.92
Add New Post /wp-admin/post-new.php1,770 ▲24425.39 ▲2.06632.55 ▼54.2840.33 ▼18.01
Media Library /wp-admin/upload.php1,458 ▲584.25 ▲0.01102.45 ▼4.6747.79 ▲1.32
Forms /wp-admin/admin.php?page=manage_fm1,6111.9533.2080.67
Themes /wp-admin/admin.php?page=themes_fm1,7622.2227.8050.54
Blocked IPs /wp-admin/admin.php?page=blocked_ips_fm1,0422.2126.4942.77
Options /wp-admin/admin.php?page=options_fm1,2402.2026.0755.51
Submissions /wp-admin/admin.php?page=submissions_fm1,0802.4637.6748.54
Speed Optimization /wp-admin/admin.php?page=twb_form-maker1,1072.2130.9553.35
Uninstall /wp-admin/admin.php?page=uninstall_fm1,1322.2627.4432.58

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie tables were found after uninstall: 11 tables
    • wp_formmaker_display_options
    • wp_formmaker_groups
    • wp_formmaker_views
    • wp_formmaker_sessions
    • wp_formmaker_query
    • wp_formmaker_blocked
    • wp_formmaker_submits
    • wp_formmaker_themes
    • wp_formmaker
    • wp_formmaker_backup
    • ...
  • Zombie WordPress options were found after uninstall: 11 options
    • twb_speed_score
    • db_upgraded
    • fm_admin_notice
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_form_maker_widget
    • fm_settings
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/form-maker/admin/views/view.php
    • > /wp-content/plugins/form-maker/form-maker.php
  • 69× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'FMAdminController' not found in wp-content/plugins/form-maker/admin/controllers/Paypal_info.php:3
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/form-maker/wd/templates/display_deactivation_popup.php on line 1
    • > PHP Fatal error
      Uncaught Error: Class 'FMAdminView' not found in wp-content/plugins/form-maker/admin/views/Uninstall_fm.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'FMAdminModel' not found in wp-content/plugins/form-maker/admin/models/Options_fm.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'FMAdminModel' not found in wp-content/plugins/form-maker/admin/models/Themes_fm.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'FMAdminView' not found in wp-content/plugins/form-maker/admin/views/Manage_fm.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'FMAdminController' not found in wp-content/plugins/form-maker/admin/controllers/Formmakerwdcaptcha.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'FMAdminView' not found in wp-content/plugins/form-maker/admin/views/FMCaptcha.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'FMAdminView' not found in wp-content/plugins/form-maker/admin/views/FormMakerSubmits.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'FMAdminController' not found in wp-content/plugins/form-maker/admin/controllers/FormMakerSubmits.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

form-maker/form-maker.php 92% from 13 tests

The entry point to "Form Maker by 10Web - Mobile-Friendly Drag & Drop Contact Form Builder" version 1.15.21 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 223 characters long)

Code Analysis 95% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin197,576 lines of code in 304 files:
LanguageFilesBlank linesComment linesLines of code
PO File4838,26549,62091,465
PHP952,0593,84842,742
JavaScript534,9644,40140,382
CSS322,27719821,876
SVG7316151,016
Markdown119093
HTML2002

PHP code 0% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
  • Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 1,506)
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 682)
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity75.99
▷ Minimum class complexity1.00
▷ Maximum class complexity1,506.00
Average method complexity10.87
▷ Minimum method complexity1.00
▷ Maximum method complexity682.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes87
▷ Abstract classes00.00%
▷ Concrete classes87100.00%
▷ Final classes11.15%
Methods661
▷ Static methods10415.73%
▷ Public methods59489.86%
▷ Protected methods131.97%
▷ Private methods548.17%
Functions13
▷ Named functions861.54%
▷ Anonymous functions538.46%
Constants31
▷ Global constants412.90%
▷ Class constants2787.10%
▷ Public constants27100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
542 PNG files occupy 2.90MB with 0.71MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/left.png3.36KB0.47KB▼ 86.04%
images/02/03/date.png2.02KB1.30KB▼ 35.71%
images/flags/cx.png0.59KB0.75KB0.00%
images/flags/ax.png0.65KB0.76KB0.00%
images/flags/nf.png0.59KB0.68KB0.00%