10% wordpress-send-sms

Code Review | Wordpress Send SMS - Bulk SMS

WordPress plugin Wordpress Send SMS - Bulk SMS scored 10% from 54 tests.

About plugin

  • Plugin page: wordpress-send-sms
  • Plugin version: 1.2.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2.1-3.3.1
  • WordPress version: 5.8.1
  • First release: Oct 10, 2011
  • Latest release: Apr 20, 2012
  • Number of updates: 18
  • Update frequency: every 13.4 days
  • Top authors: Eoxia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 4,617 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/wordpress-send-sms/Send-SMS.php+36
    Non-static method sendsms_doc::get_doc_pages_name_array() should not be called statically

Server metrics [RAM: ▼1.43MB] [CPU: ▼183.50ms] Passed 4 tests

Server-side resources used by Wordpress Send SMS - Bulk SMS
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.20 ▼0.528.12 ▼13.09
Dashboard /wp-admin2.22 ▼0.838.74 ▼39.14
Posts /wp-admin/edit.php2.22 ▼0.889.59 ▼35.18
Add New Post /wp-admin/post-new.php2.22 ▼3.219.19 ▼635.97
Media Library /wp-admin/upload.php2.22 ▼0.789.96 ▼23.70

Server storage [IO: ▲0.95MB] [DB: ▲0.01MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 71 new files
Database: 5 new tables, no new options
New tables
wp_sms__liste_envoi_details
wp_sms__liste_envoi
wp_sms__documentation
wp_sms__historique
wp_sms__message

Browser metrics Passed 4 tests

A check of browser resources used by Wordpress Send SMS - Bulk SMS
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,798 ▲20217.24 ▲1.5711.09 ▲1.2547.41 ▼3.03
Dashboard /wp-admin3,058 ▲1217.32 ▲1.32149.24 ▼2.43120.79 ▲0.33
Posts /wp-admin/edit.php2,840 ▲1013.22 ▲0.5094.22 ▲28.8392.90 ▼2.49
Add New Post /wp-admin/post-new.php1,684 ▲123.32 ▲4.97323.04 ▼125.96104.69 ▼2.40
Media Library /wp-admin/upload.php1,902 ▲926.06 ▲1.05143.56 ▼9.34112.36 ▲5.13

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/wordpress-send-sms/Send-SMS.php+36
    Non-static method sendsms_doc::get_doc_pages_name_array() should not be called statically
  • Zombie tables were found after uninstall: 5 tables
    • wp_sms__documentation
    • wp_sms__historique
    • wp_sms__liste_envoi
    • wp_sms__message
    • wp_sms__liste_envoi_details

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_locale() in wp-content/plugins/wordpress-send-sms/includes/includes.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wordpress-send-sms/Send-SMS.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wordpress-send-sms/includes/languages/wp-send-sms-orphelan.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots require images: #1 (Interface d'envoi des messages), #2 (Interface de gestion des listes d'utilisateurs), #3 (Interface de modification d'une liste d'utilisateur), #4 (Historique complet des envois), #5 (Historique trié par message)
The official readme.txt might help

wordpress-send-sms/Send-SMS.php 92% from 13 tests

The main file in "Wordpress Send SMS - Bulk SMS" v. 1.2.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wordpress-send-sms.php" instead of "Send-SMS.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin9,454 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript67652,0135,236
PHP174832652,877
CSS4103116898
PO File1250403443

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity39.90
▷ Minimum class complexity1.00
▷ Maximum class complexity97.00
Average method complexity8.34
▷ Minimum method complexity1.00
▷ Maximum method complexity67.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods53
▷ Static methods00.00%
▷ Public methods53100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants666.67%
▷ Class constants333.33%
▷ Public constants3100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
38 PNG files occupy 0.22MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png22.07KB9.42KB▼ 57.30%
images/icones/suppr.png1.55KB1.26KB▼ 18.26%
(invalid) css/ui-lightness/images/ui-icons_ffd27a_256x240.png4.27KB0.00KB▼ 100.00%
(invalid) css/ui-lightness/images/ui-icons_222222_256x240.png4.27KB0.00KB▼ 100.00%
css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png0.13KB0.18KB0.00%