78% text-message-contact-form

Code Review | Text Message Contact Form

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

About plugin

  • Plugin page: text-message-cont...
  • Plugin version: .91...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4
  • WordPress version: 6.3.1
  • First release: Mar 3, 2016
  • Latest release: Mar 3, 2016
  • Number of updates: 9
  • Update frequency: N/A
  • Top authors: theArab (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /2,048 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼9.41ms] Passed 4 tests

Analyzing server-side resources used by Text Message Contact Form
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0135.64 ▼4.67
Dashboard /wp-admin3.33 ▼0.0245.25 ▼12.75
Posts /wp-admin/edit.php3.37 ▲0.0139.97 ▼12.39
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.25 ▼7.81
Media Library /wp-admin/upload.php3.25 ▲0.0136.82 ▼0.18

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 63 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Text Message Contact Form
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,884 ▲13814.35 ▲0.181.95 ▲0.2833.30 ▼7.30
Dashboard /wp-admin2,265 ▲885.73 ▲0.0980.90 ▼4.8877.57 ▲38.11
Posts /wp-admin/edit.php2,112 ▲121.99 ▲0.0534.43 ▼2.1733.33 ▼3.23
Add New Post /wp-admin/post-new.php1,538 ▲1023.33 ▲0.18659.51 ▼35.9252.25 ▼2.63
Media Library /wp-admin/upload.php1,409 ▲154.14 ▼0.04111.53 ▲15.0847.24 ▲0.77

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 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
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/text-message-contact-form/_admin/_read.php
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/text-message-contact-form/admin_home.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/text-message-contact-form/index.php:2

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 errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% 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:
  • Screenshots: These screenshots do not have images: #1 (fbtc-screenshot-1.png), #2 (fbtc-screenshot-2.png), #3 (fbtc-screenshot-3.png), #4 (fbtc-screenshot-4.png), #5 (fbtc-screenshot-5.png), #6 (fbtc-screenshot-6.png), #7 (fbtc-screenshot-7.png), #8 (fbtc-screenshot-8.png)
  • Plugin Name: You should set the name of your plugin on the first line ( === text-message-contact-form === )
You can take inspiration from this readme.txt

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

This is the main PHP file of "Text Message Contact Form" version .91..., providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Version: Use periods and digits only for your plugin's version number (ex. "1.0.3" instead of ".91...")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin2,570 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP122342492,570

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions61
▷ Named functions61100.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
49 PNG files occupy 0.12MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
_btns/btn_upG16_reg.png1.38KB0.35KB▼ 74.45%
_cap_lets/s.png3.08KB0.51KB▼ 83.48%
_btns/btn_downG16_reg.png1.37KB0.35KB▼ 74.25%
_btns/btn_print16_reg.png1.71KB0.69KB▼ 59.75%
_cap_lets/j.png3.00KB0.43KB▼ 85.83%