78% totalform

Code Review | Contact Form by TotalForm - Next-gen Form Builder for WordPress

WordPress plugin Contact Form by TotalForm - Next-gen Form Builder for WordPress scored78%from 54 tests.

About plugin

  • Plugin page: totalform
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.0.2
  • WordPress version: 6.3.1
  • First release: Sep 12, 2022
  • Latest release: Sep 13, 2022
  • Number of updates: 4
  • Update frequency: every 1.3 days
  • Top authors: totalsuite (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /619 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.74MB] [CPU: ▲2.13ms] Passed 4 tests

Server-side resources used by Contact Form by TotalForm - Next-gen Form Builder for WordPress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.22 ▲0.7653.95 ▲10.65
Dashboard /wp-admin4.04 ▲0.7458.03 ▲5.07
Posts /wp-admin/edit.php4.10 ▲0.7456.57 ▲2.74
Add New Post /wp-admin/post-new.php6.68 ▲0.7997.94 ▼7.44
Media Library /wp-admin/upload.php3.96 ▲0.7342.90 ▲8.15
TotalForm /wp-admin/admin.php?page=totalform4.1745.73

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 763 new files
Database: 2 new tables, 9 new options
New tables
wp_totalform_forms
wp_totalform_entries
New WordPress options
totalform_version
totalform_options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
totalsuite_license
can_compress_scripts

Browser metrics Passed 4 tests

Contact Form by TotalForm - Next-gen Form Builder for WordPress: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,930 ▲16913.49 ▼0.748.58 ▲6.9147.64 ▲0.94
Dashboard /wp-admin2,225 ▲515.67 ▲0.0092.92 ▼1.2244.31 ▼4.90
Posts /wp-admin/edit.php2,133 ▲332.04 ▲0.0533.84 ▼7.3636.58 ▼1.05
Add New Post /wp-admin/post-new.php1,553 ▲2723.26 ▲0.12614.14 ▼2.6057.41 ▲6.81
Media Library /wp-admin/upload.php1,433 ▲304.24 ▲0.0394.31 ▼6.1944.46 ▲1.19
Options /wp-admin/admin.php?page=totalform#/options1,3718.90134.9271.04
TotalForm /wp-admin/admin.php?page=totalform1,2548.55115.6737.97
Help /wp-admin/admin.php?page=totalform#/help1,3808.7293.9737.03
Forms /wp-admin/admin.php?page=totalform#/forms1,2548.5787.1538.56

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie tables detected upon uninstall: 2 tables
    • wp_totalform_entries
    • wp_totalform_forms
  • Zombie WordPress options detected upon uninstall: 9 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • totalsuite_license
    • widget_recent-comments
    • can_compress_scripts
    • totalform_options
    • db_upgraded
    • totalform_version
    • 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
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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)
No browser issues were found

Optimizations

Plugin configuration 80% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 27 tag instead of maximum 10
You can take inspiration from this readme.txt

totalform/plugin.php 62% from 13 tests

The principal PHP file in "Contact Form by TotalForm - Next-gen Form Builder for WordPress" v. 1.0.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("totalform.php" instead of "plugin.php")
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("languages")
  • Description: Please don't use more than 140 characters for the plugin description (currently 155 characters long)
  • Requires PHP: Required version must be the same as the one declared in readme.txt ("7.0.0" instead of "7.0")
  • Domain Path: Please prefix the domain path with a forward slash character ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected210,509 lines of code in 598 files:
LanguageFilesBlank linesComment linesLines of code
JSON500174,736
PHP5827,47016,84834,474
CSS235790
JavaScript702,278465
SQL20044

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity4.20
▷ Minimum class complexity1.00
▷ Maximum class complexity63.00
Average method complexity1.79
▷ Minimum method complexity1.00
▷ Maximum method complexity37.00
Code structure
Namespaces110
Interfaces57
Traits33
Classes477
▷ Abstract classes377.76%
▷ Concrete classes44092.24%
▷ Final classes10.23%
Methods2,484
▷ Static methods25410.23%
▷ Public methods2,14686.39%
▷ Protected methods32713.16%
▷ Private methods110.44%
Functions80
▷ Named functions56.25%
▷ Anonymous functions7593.75%
Constants162
▷ Global constants10.62%
▷ Class constants16199.38%
▷ Public constants16099.38%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 compressed PNG files occupy 0.01MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
modules/templates/DefaultTemplate/assets/module/cover.png10.97KB11.98KB0.00%
modules/templates/DefaultTemplate/assets/module/icon.png3.04KB3.27KB0.00%