78% send-sms-arsys

Code Review | Send SMS to Wordpress Users via Arsys

WordPress plugin Send SMS to Wordpress Users via Arsys scored 78% from 54 tests.

About plugin

  • Plugin page: send-sms-arsys
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 5.8.1
  • First release: Mar 9, 2013
  • Latest release: Aug 22, 2013
  • Number of updates: 25
  • Update frequency: every 6.7 days
  • Top authors: closemarketing (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,422 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 gracefully, with no errors

Server metrics [RAM: ▼1.89MB] [CPU: ▼189.67ms] Passed 4 tests

Server-side resources used by Send SMS to Wordpress Users via Arsys
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /1.74 ▼0.984.22 ▼24.46
Dashboard /wp-admin1.76 ▼1.295.32 ▼43.17
Posts /wp-admin/edit.php1.76 ▼1.355.66 ▼38.86
Add New Post /wp-admin/post-new.php1.76 ▼3.675.36 ▼648.34
Media Library /wp-admin/upload.php1.76 ▼1.245.34 ▼28.31
Send SMS /wp-admin/admin.php?page=send-sms-arsys/send-sms-arsys.php1.765.17
Options /wp-admin/admin.php?page=sendsmsarsys-options1.765.02

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Send SMS to Wordpress Users via Arsys
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,846 ▲25016.15 ▲0.7313.00 ▲1.0648.91 ▼1.34
Dashboard /wp-admin2,998 ▲646.11 ▲0.01145.90 ▼5.33135.10 ▲22.31
Posts /wp-admin/edit.php2,789 ▲502.72 ▲0.0266.19 ▲2.3786.27 ▲5.25
Add New Post /wp-admin/post-new.php1,639 ▼4421.43 ▲3.11300.33 ▼103.04107.18 ▲2.45
Media Library /wp-admin/upload.php1,786 ▼215.06 ▲0.03146.55 ▼12.57140.66 ▲18.13
Send SMS /wp-admin/admin.php?page=send-sms-arsys/send-sms-arsys.php1,2182.3450.2177.54
Options /wp-admin/admin.php?page=sendsmsarsys-options1,2552.3557.1069.46

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
    • > User notice in wp-includes/functions.php+5663
    wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)

Smoke tests 50% 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
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=sendsmsarsys-options
    • > User notice in wp-includes/functions.php+5663
    wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=sendsmsarsys-options
    • > User notice in wp-includes/functions.php+5663
    wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the send-sms-arsys handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=sendsmsarsys-options
    • > User notice in wp-includes/functions.php+5663
    wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the send-sms-arsys handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 14 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=sendsmsarsys-options
    • > User deprecated in wp-includes/functions.php+5495
    has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      require_once(): Failed opening required 'WP_PLUGIN_DIR/send-sms-arsys/options.php' (include_path='.:/usr/share/php') in wp-content/plugins/send-sms-arsys/send-sms-arsys.php on line 14
    • > PHP Warning
      require_once(WP_PLUGIN_DIR/send-sms-arsys/options.php): failed to open stream: No such file or directory in wp-content/plugins/send-sms-arsys/send-sms-arsys.php on line 14
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/send-sms-arsys/send-sms-arsys.php on line 14

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 on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (SMS Admin Panel to send SMS.), #2 (Options page with API data to connect to Arsys.)
You can take inspiration from this readme.txt

send-sms-arsys/send-sms-arsys.php Passed 13 tests

The main PHP file in "Send SMS to Wordpress Users via Arsys" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
132 characters long description:
Allow Administrator Users send to Wordpress Users using a customized variable for the telephone number. It's send the sms via Arsys.

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
Success! There were no dangerous files found in this plugin535 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP35320440
PO File1153252
JavaScript14022
Markdown113021

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png27.61KB10.24KB▼ 62.91%
arsys.png0.87KB0.77KB▼ 10.90%
screenshot-2.png23.26KB7.99KB▼ 65.67%