84% text-message-sms-extension-for-contact-form-7

Code Review | Text Message SMS Extension for Contact Form 7

WordPress plugin Text Message SMS Extension for Contact Form 7 scored84%from 54 tests.

About plugin

  • Plugin page: text-message-sms-...
  • 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: Jan 12, 2020
  • Latest release: Jan 15, 2023
  • Number of updates: 5
  • Update frequency: every 220.2 days
  • Top authors: biztextsolutions (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /1,825 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.15ms] Passed 4 tests

Analyzing server-side resources used by Text Message SMS Extension for Contact Form 7
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.70 ▲1.33
Dashboard /wp-admin3.32 ▲0.0246.86 ▼3.23
Posts /wp-admin/edit.php3.37 ▲0.0246.06 ▼10.37
Add New Post /wp-admin/post-new.php5.90 ▲0.0292.00 ▼5.93
Media Library /wp-admin/upload.php3.25 ▲0.0236.55 ▼1.05
Biz Text Integration /wp-admin/admin.php?page=wpcf7biztext3.2230.26

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Text Message SMS Extension for Contact Form 7
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.28 ▼1.124.58 ▲2.7443.26 ▲1.09
Dashboard /wp-admin2,206 ▲215.88 ▲1.0198.42 ▼13.8136.95 ▼4.20
Posts /wp-admin/edit.php2,089 ▼02.02 ▼0.0234.29 ▼7.1932.98 ▼4.34
Add New Post /wp-admin/post-new.php1,533 ▼023.14 ▼0.28633.91 ▼48.1763.57 ▲1.00
Media Library /wp-admin/upload.php1,388 ▼04.24 ▲0.0197.79 ▼7.7742.54 ▼7.82
Biz Text Integration /wp-admin/admin.php?page=wpcf7biztext8462.0623.3831.42

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/text-message-sms-extension-for-contact-form-7/admin/wpbiztextc7_tab_form_settings.php:4

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
3 plugin tags: text messages, contact form 7, sms

text-message-sms-extension-for-contact-form-7/cf7-text-message-integration.php 92% from 13 tests

The principal PHP file in "Text Message SMS Extension for Contact Form 7" v. 2.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("text-message-sms-extension-for-contact-form-7.php" instead of "cf7-text-message-integration.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin623 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP413250482
JavaScript143882
CSS117159

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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