84% textme-sms-integration

Code Review | TextMe SMS

WordPress plugin TextMe SMS scored84%from 54 tests.

About plugin

  • Plugin page: textme-sms-integr...
  • Plugin version: 1.9.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3.0
  • WordPress version: 6.3.1
  • First release: Jun 21, 2016
  • Latest release: Aug 16, 2023
  • Number of updates: 58
  • Update frequency: every 45.0 days
  • Top authors: amitrotem (79.31%)ramiy (22.41%)

Code review

54 tests

User reviews

3 reviews

Install metrics

600+ active /12,226 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.11MB] [CPU: ▼7.71ms] Passed 4 tests

Server-side resources used by TextMe SMS
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1239.85 ▲1.58
Dashboard /wp-admin3.42 ▲0.0844.85 ▼16.85
Posts /wp-admin/edit.php3.53 ▲0.1848.06 ▲6.55
Add New Post /wp-admin/post-new.php6.02 ▲0.1391.20 ▼18.59
Media Library /wp-admin/upload.php3.34 ▲0.1134.35 ▲3.02
TextMe SMS /wp-admin/options-general.php?page=textme_sms3.3331.30

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for TextMe SMS
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲6413.26 ▼1.051.68 ▼0.0246.47 ▲3.04
Dashboard /wp-admin2,216 ▲344.93 ▼0.93101.69 ▼4.9439.80 ▼2.13
Posts /wp-admin/edit.php2,102 ▲132.09 ▲0.0742.40 ▲1.9937.05 ▲0.58
Add New Post /wp-admin/post-new.php1,532 ▲1318.18 ▼4.98661.97 ▲67.7851.41 ▼2.55
Media Library /wp-admin/upload.php1,401 ▲134.29 ▲0.1096.16 ▲1.4539.83 ▼4.57
TextMe SMS /wp-admin/options-general.php?page=textme_sms9771.7626.3127.02

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=textme_sms
    • > Notice in wp-content/plugins/textme-sms-integration/includes/admin-ui.php+129
    Trying to access array offset on value of type bool

SRP Passed 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 SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: sms, woocommerce, cf7, contact form 7, events...

textme-sms-integration/textme-sms-integration.php Passed 13 tests

The primary PHP file in "TextMe SMS" version 1.9.0 is used by WordPress to initiate all plugin functionality
68 characters long description:
Send custom SMS messages from your WordPress site to your customers.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected1,058 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP12298260893
JavaScript22017124
CSS110041

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity2.50
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.38
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods675.00%
▷ Protected methods00.00%
▷ Private methods225.00%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin