89% text-message-contact-form-biztext

Code Review | Text Message Contact Form

WordPress plugin Text Message Contact Form scored89%from 54 tests.

About plugin

  • Plugin page: text-message-cont...
  • Plugin version: 2.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Dec 23, 2019
  • Latest release: Jan 15, 2023
  • Number of updates: 15
  • Update frequency: every 74.6 days
  • Top authors: biztextsolutions (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /1,339 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.09MB] [CPU: ▼7.60ms] Passed 4 tests

Server-side resources used by Text Message Contact Form
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1042.35 ▲0.94
Dashboard /wp-admin3.41 ▲0.0649.99 ▼16.66
Posts /wp-admin/edit.php3.52 ▲0.1648.50 ▼7.05
Add New Post /wp-admin/post-new.php5.99 ▲0.1084.73 ▼7.61
Media Library /wp-admin/upload.php3.33 ▲0.1038.52 ▲4.66

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_biztext_form_widget
biztext_custom_role_contact
can_compress_scripts

Browser metrics Passed 4 tests

Text Message Contact Form: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲8014.23 ▲0.251.88 ▲0.1243.84 ▼0.61
Dashboard /wp-admin2,246 ▲695.63 ▼0.0290.06 ▲2.6041.49 ▲1.22
Posts /wp-admin/edit.php2,148 ▲482.01 ▲0.0134.71 ▼7.1839.55 ▲1.02
Add New Post /wp-admin/post-new.php1,561 ▲3318.37 ▼4.72611.25 ▼43.4449.88 ▼9.89
Media Library /wp-admin/upload.php1,448 ▲484.24 ▲0.0898.58 ▼4.7744.80 ▼2.58

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_biztext_form_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

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
4 plugin tags: email, contact form, text messages, sms

text-message-contact-form-biztext/text-message-form.php 85% from 13 tests

The main PHP script in "Text Message Contact Form" version 2.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 147 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("text-message-contact-form-biztext.php" instead of "text-message-form.php")

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
Everything looks great! No dangerous files found in this plugin2,324 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP88297471,965
CSS21335216
JavaScript2621396
SVG10147

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity82.50
▷ Minimum class complexity31.00
▷ Maximum class complexity134.00
Average method complexity5.08
▷ Minimum method complexity1.00
▷ Maximum method complexity77.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods40
▷ Static methods922.50%
▷ Public methods3792.50%
▷ Protected methods25.00%
▷ Private methods12.50%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants00.00%
▷ Class constants9100.00%
▷ Public constants9100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/Biz Text Logo Colour.png8.53KB3.95KB▼ 53.72%