68% ultimate-wp-sms

Code Review | Ultimate WP SMS

WordPress plugin Ultimate WP SMS scored68%from 54 tests.

About plugin

  • Plugin page: ultimate-wp-sms
  • Plugin version: 2.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.4
  • WordPress version: 6.3.1
  • First release: Sep 11, 2023
  • Latest release: Nov 29, 2023
  • Number of updates: 16
  • Update frequency: every 5.2 days
  • Top authors: ultilmatewptech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /249 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.60MB] [CPU: ▲3.34ms] Passed 4 tests

A check of server-side resources used by Ultimate WP SMS
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.02 ▲0.5647.11 ▲7.30
Dashboard /wp-admin3.92 ▲0.6248.16 ▼1.51
Posts /wp-admin/edit.php3.97 ▲0.6152.52 ▲6.43
Add New Post /wp-admin/post-new.php6.52 ▲0.6491.94 ▲1.14
Media Library /wp-admin/upload.php3.84 ▲0.6145.18 ▲11.74
Go Pro & Help /wp-admin/admin.php?page=uws-help3.8436.91
Group Manager /wp-admin/admin.php?page=uws-group3.8841.35
Send Message /wp-admin/admin.php?page=uws3.8735.49
Settings /wp-admin/admin.php?page=uws-settings3.8439.36

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 2,640 new files
Database: 4 new tables, 7 new options
New tables
wp_uws_messagequeue
wp_uws_groupmemxref
wp_uws_groupmembers
wp_uws_groups
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
uws-version
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Ultimate WP SMS
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,866 ▲11514.25 ▼0.091.78 ▼0.1041.60 ▼2.30
Dashboard /wp-admin2,271 ▲945.75 ▲0.2391.87 ▼6.2575.52 ▲21.01
Posts /wp-admin/edit.php2,177 ▲772.02 ▲0.0740.60 ▲0.9636.21 ▼3.29
Add New Post /wp-admin/post-new.php1,750 ▲22422.31 ▼0.90656.21 ▼2.3535.51 ▼14.85
Media Library /wp-admin/upload.php1,479 ▲764.31 ▲0.16100.46 ▲4.2968.28 ▲25.48
Go Pro & Help /wp-admin/admin.php?page=uws-help1,8862.1028.7342.88
Group Manager /wp-admin/admin.php?page=uws-group1,4763.3648.3769.91
Send Message /wp-admin/admin.php?page=uws1,4032.4735.5241.61
Settings /wp-admin/admin.php?page=uws-settings3,1412.0435.0057.32

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure failed, leaving 4 tables in the database
    • wp_uws_groupmembers
    • wp_uws_groupmemxref
    • wp_uws_messagequeue
    • wp_uws_groups
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • uws-version
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/admin.php?page=uws
    • > Notice in wp-content/plugins/ultimate-wp-sms/src/Admin/Template/SendSmsTemplate.php+271
    Undefined index: value
    • > GET request to /wp-admin/admin.php?page=uws
    • > Notice in wp-content/plugins/ultimate-wp-sms/src/Admin/Template/SendSmsTemplate.php+271
    Undefined index: label

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
The following issues need your attention
  • 2431× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\Rest\\FlexApiBase' not found in wp-content/plugins/ultimate-wp-sms/vendor/twilio/sdk/src/Twilio/Rest/FlexApi.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\ListResource' not found in wp-content/plugins/ultimate-wp-sms/vendor/twilio/sdk/src/Twilio/Rest/Preview/DeployedDevices/Fleet/CertificateList.php:27
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\Page' not found in wp-content/plugins/ultimate-wp-sms/vendor/twilio/sdk/src/Twilio/Rest/Serverless/V1/Service/FunctionPage.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\Version' not found in wp-content/plugins/ultimate-wp-sms/vendor/twilio/sdk/src/Twilio/Rest/Api/V2010.php:72
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\InstanceContext' not found in wp-content/plugins/ultimate-wp-sms/vendor/twilio/sdk/src/Twilio/Rest/Sync/V1/Service/SyncMap/SyncMapPermissionContext.php:27
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\InstanceContext' not found in wp-content/plugins/ultimate-wp-sms/vendor/twilio/sdk/src/Twilio/Rest/Supersim/V1/NetworkContext.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\InstanceResource' not found in wp-content/plugins/ultimate-wp-sms/vendor/twilio/sdk/src/Twilio/Rest/FlexApi/V1/ProvisioningStatusInstance.php:30
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\InstanceResource' not found in wp-content/plugins/ultimate-wp-sms/vendor/twilio/sdk/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/SupportingDocumentInstance.php:41
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\InstanceContext' not found in wp-content/plugins/ultimate-wp-sms/vendor/twilio/sdk/src/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueStatisticsContext.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\InstanceContext' not found in wp-content/plugins/ultimate-wp-sms/vendor/twilio/sdk/src/Twilio/Rest/Messaging/V1/TollfreeVerificationContext.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Tags: You are using too many tags: 19 tag instead of maximum 10
You can take inspiration from this readme.txt

ultimate-wp-sms/ultimate-wp-sms-lite.php 92% from 13 tests

The primary PHP file in "Ultimate WP SMS" version 2.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ultimate-wp-sms.php" instead of "ultimate-wp-sms-lite.php")

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
Everything looks great! No dangerous files found in this plugin175,476 lines of code in 2,624 files:
LanguageFilesBlank linesComment linesLines of code
PHP2,51843,966143,459163,280
CSS4171605,400
JavaScript9156693,125
JSON5002,663
SVG8001620
Markdown3740232
YAML3162135
XML10011
Dockerfile14010

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity2.37
▷ Minimum class complexity1.00
▷ Maximum class complexity68.00
Average method complexity1.26
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces239
Interfaces2
Traits0
Classes3,089
▷ Abstract classes34411.14%
▷ Concrete classes2,74588.86%
▷ Final classes20.07%
Methods16,626
▷ Static methods6373.83%
▷ Public methods14,91089.68%
▷ Protected methods1,6299.80%
▷ Private methods870.52%
Functions116
▷ Named functions21.72%
▷ Anonymous functions11498.28%
Constants23
▷ Global constants417.39%
▷ Class constants1982.61%
▷ Public constants19100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/message-history/left_arrow.png1.02KB0.44KB▼ 56.91%
assets/images/message-history/right_arrow.png1.01KB0.44KB▼ 56.74%
assets/images/icons/tips_icon.png0.42KB0.28KB▼ 32.47%
assets/json/download.png6.94KB6.70KB▼ 3.46%