94% tl-sms

Code Review | Text Local SMS

WordPress plugin Text Local SMS scored 94% from 54 tests.

About plugin

  • Plugin page: tl-sms
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8.0-4.6.1
  • WordPress version: 5.8.1
  • First release: Oct 1, 2016
  • Latest release: Oct 1, 2016
  • Number of updates: 5
  • Update frequency: every 0.6 days
  • Top authors: Alobaidi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active / 2,805 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

Analyzing server-side resources used by Text Local SMS
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0130.38 ▼3.47
Dashboard /wp-admin3.07 ▲0.0147.02 ▲3.80
Posts /wp-admin/edit.php3.12 ▲0.0145.22 ▼1.08
Add New Post /wp-admin/post-new.php5.42 ▼0.0189.44 ▼562.03
Media Library /wp-admin/upload.php3.01 ▲0.0133.43 ▲0.37

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Text Local SMS
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,819 ▲22315.95 ▲0.3210.42 ▲0.4247.08 ▼3.19
Dashboard /wp-admin3,100 ▲1696.14 ▼0.05151.85 ▼2.39128.48 ▲11.70
Posts /wp-admin/edit.php2,743 ▲42.71 ▼0.0080.75 ▲12.2789.68 ▲5.17
Add New Post /wp-admin/post-new.php1,893 ▲38915.87 ▼2.68437.08 ▲64.76111.02 ▲3.24
Media Library /wp-admin/upload.php1,811 ▲45.03 ▲0.01152.42 ▼7.28114.43 ▼2.86

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 8× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/tl-sms/settings.php
    • > /wp-content/plugins/tl-sms/images/index.php
    • > /wp-content/plugins/tl-sms/js/index.php
    • > /wp-content/plugins/tl-sms/uninstall.php
    • > /wp-content/plugins/tl-sms/css/index.php
    • > /wp-content/plugins/tl-sms/dashboard-widget.php
    • > /wp-content/plugins/tl-sms/index.php
    • > /wp-content/plugins/tl-sms/tl-sms.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
9 plugin tags: sms, ajax, form, mobile, message...

tl-sms/tl-sms.php Passed 13 tests

The main PHP file in "Text Local SMS" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
83 characters long description:
Best SMS plugin for WordPress, send SMS in WordPress easily, all countries support.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin224 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP55725151
CSS113050
JavaScript112123

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions7
▷ Named functions7100.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
No PNG files were detected