84% text-message

Code Review | Text Message SMS Plugin

WordPress plugin Text Message SMS Plugin scored84%from 54 tests.

About plugin

  • Plugin page: text-message
  • Plugin version: 3.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Apr 11, 2019
  • Latest release: Nov 21, 2023
  • Number of updates: 35
  • Update frequency: every 48.1 days
  • Top authors: biztextsolutions (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

200+ active /4,136 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.10MB] [CPU: ▼5.50ms] Passed 4 tests

This is a short check of server-side resources used by Text Message SMS Plugin
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0936.76 ▼10.63
Dashboard /wp-admin3.41 ▲0.1046.82 ▼3.45
Posts /wp-admin/edit.php3.46 ▲0.1050.44 ▲2.93
Add New Post /wp-admin/post-new.php5.99 ▲0.1094.46 ▼8.99
Media Library /wp-admin/upload.php3.34 ▲0.1035.87 ▲1.06

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 8 new options
New WordPress options
biztext_custom_role
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_biztext_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Text Message SMS Plugin
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,846 ▲9914.68 ▲0.441.51 ▼0.3138.06 ▼5.55
Dashboard /wp-admin2,254 ▲735.62 ▼0.0991.90 ▼20.0638.58 ▼8.67
Posts /wp-admin/edit.php2,156 ▲561.99 ▲0.0141.69 ▲2.1736.60 ▲2.11
Add New Post /wp-admin/post-new.php1,554 ▲2523.43 ▲0.28607.11 ▼16.7546.42 ▼18.41
Media Library /wp-admin/upload.php1,456 ▲564.24 ▲0.0597.55 ▲3.0041.97 ▲2.02

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_biztext_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/text-message/inc/wpbiztext-display.php

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 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention: The official readme.txt might help

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

The primary PHP file in "Text Message SMS Plugin" version 3.0.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 149 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin3,580 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript24932151,692
PHP7647941,306
CSS125212535
SVG10147

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity49.00
▷ Minimum class complexity49.00
▷ Maximum class complexity49.00
Average method complexity13.00
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.46MB with 0.29MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/Biz Text Logo Colour.png8.53KB3.95KB▼ 53.72%
images/biztext_widget-two.png124.93KB42.93KB▼ 65.64%
images/biztext_support_classes.png15.55KB5.52KB▼ 64.52%
images/biztext_widget-one.png184.89KB55.63KB▼ 69.91%
images/biztext_support_shortcodes.png40.08KB14.20KB▼ 64.57%