78% smsify

Code Review | SMSify

WordPress plugin SMSify scored78%from 54 tests.

About plugin

  • Plugin page: smsify
  • Plugin version: 6.0.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.1.1
  • WordPress version: 6.3.1
  • First release: Oct 23, 2012
  • Latest release: Dec 29, 2022
  • Number of updates: 156
  • Update frequency: every 23.9 days
  • Top authors: mtomic (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /5,483 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.38MB] [CPU: ▼1.56ms] 75% from 4 tests

This is a short check of server-side resources used by SMSify
Please fix the following
  • CPU: Total CPU usage should be kept under 500.00ms (currently 1,464.21ms on /wp-admin/admin.php?page=smsify-schedules)
PageMemory (MB)CPU Time (ms)
Home /3.83 ▲0.3737.92 ▼0.86
Dashboard /wp-admin3.68 ▲0.3848.72 ▲0.80
Posts /wp-admin/edit.php3.79 ▲0.4450.36 ▲1.56
Add New Post /wp-admin/post-new.php6.26 ▲0.3887.33 ▼7.73
Media Library /wp-admin/upload.php3.61 ▲0.3838.20 ▲6.04
User Groups /wp-admin/edit-tags.php?taxonomy=user-group3.5735.92
Responses /wp-admin/admin.php?page=smsify-responses3.571,674.67
Schedules /wp-admin/admin.php?page=smsify-schedules3.571,464.21
Reporting /wp-admin/admin.php?page=smsify-reporting3.5836.88
Integrations /wp-admin/admin.php?page=smsify-integrations3.5934.19
Settings /wp-admin/admin.php?page=smsify-settings3.5836.05
Import From CSV /wp-admin/users.php?page=import-users-from-csv3.6533.50

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 65 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for SMSify
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,895 ▲14913.74 ▼0.642.00 ▲0.3137.01 ▼3.99
Dashboard /wp-admin2,279 ▲945.29 ▲0.42118.07 ▲19.9772.09 ▲29.15
Posts /wp-admin/edit.php2,539 ▲4535.08 ▲2.95161.68 ▲126.9637.90 ▲2.99
Add New Post /wp-admin/post-new.php6,338 ▲4,82426.29 ▲8.801,151.00 ▲509.7038.09 ▼11.29
Media Library /wp-admin/upload.php1,821 ▲4336.51 ▲2.29168.75 ▲70.8488.42 ▲45.71
User Groups /wp-admin/edit-tags.php?taxonomy=user-group1,7955.32120.3331.79
Responses /wp-admin/admin.php?page=smsify-responses1,0843.1076.5819.12
Schedules /wp-admin/admin.php?page=smsify-schedules1,0842.9275.5418.79
Reporting /wp-admin/admin.php?page=smsify-reporting1,4054.78100.7131.80
Integrations /wp-admin/admin.php?page=smsify-integrations1,2814.52105.9526.98
Settings /wp-admin/admin.php?page=smsify-settings1,2914.71101.1126.99
Import From CSV /wp-admin/users.php?page=import-users-from-csv1,3184.70104.8431.48

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/edit-tags.php?taxonomy=user-group
    • > Notice in wp-content/plugins/smsify/modules/usergroups/UserGroupsExtended.php+36
    Undefined index: tag_ID
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=smsify-schedules
    • > Notice in wp-content/plugins/smsify/smsify.php+182
    Trying to get property 'message' of non-object

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
Please take a closer look at the following
  • 13× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
    • > /wp-content/plugins/smsify/views/smsify-integrations.php
    • > /wp-content/plugins/smsify/views/smsify-responses.php
    • > /wp-content/plugins/smsify/modules/usergroups/UserGroupsExtended.php
    • > /wp-content/plugins/smsify/views/smsify-send-user.php
    • > /wp-content/plugins/smsify/smsify.php
    • > /wp-content/plugins/smsify/views/smsify-send-group.php
    • > /wp-content/plugins/smsify/views/smsify-reporting.php
    • > /wp-content/plugins/smsify/includes/functions.php
    • > /wp-content/plugins/smsify/views/smsify-schedules.php
    • > /wp-content/plugins/smsify/views/smsify-settings.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: smsgateway, messaging, websms, sms, sms scheduling...

smsify/smsify.php 92% from 13 tests

The entry point to "SMSify" version 6.0.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 358 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected3,136 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP133271662,218
SVG200566
JavaScript4307237
PO File23845108
CSS3187

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity39.50
▷ Minimum class complexity3.00
▷ Maximum class complexity84.00
Average method complexity4.50
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods44
▷ Static methods49.09%
▷ Public methods4193.18%
▷ Protected methods00.00%
▷ Private methods36.82%
Functions26
▷ Named functions26100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants114.29%
▷ Class constants685.71%
▷ Public constants6100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
17 compressed PNG files occupy 0.04MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/ui-bg_glass_75_d0e5f5_1x400.png0.33KB0.16KB▼ 52.38%
css/images/ui-icons_2e83ff_256x240.png4.44KB4.17KB▼ 6.02%
css/images/ui-icons_cd0a0a_256x240.png4.44KB4.17KB▼ 6.02%
images/webhooks_logo_square.png2.97KB3.13KB0.00%
css/images/ui-icons_d8e7f3_256x240.png4.44KB4.17KB▼ 6.02%