84% ultimate-sms

Code Review | Ultimate WP SMS Plugin for Wordpress

WordPress plugin Ultimate WP SMS Plugin for Wordpress scored84%from 54 tests.

About plugin

  • Plugin page: ultimate-sms
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.2.0
  • WordPress version: 6.3.1
  • First release: Dec 15, 2020
  • Latest release: Apr 13, 2023
  • Number of updates: 11
  • Update frequency: every 77.2 days
  • Top authors: wpunicorn (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /816 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.81MB] [CPU: ▼1.30ms] Passed 4 tests

Analyzing server-side resources used by Ultimate WP SMS Plugin for Wordpress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.29 ▲0.8348.91 ▲6.64
Dashboard /wp-admin4.12 ▲0.8260.22 ▲3.09
Posts /wp-admin/edit.php4.17 ▲0.8158.64 ▲2.87
Add New Post /wp-admin/post-new.php6.70 ▲0.8189.73 ▼17.79
Media Library /wp-admin/upload.php4.04 ▲0.8148.89 ▲10.83

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 2,487 new files
Database: no new tables, 10 new options
New WordPress options
db_upgraded
smswp_option
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
smswp_newsletter_option
smswp_notification_option
smswp_logs
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Ultimate WP SMS Plugin for Wordpress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,855 ▲9414.74 ▲0.361.68 ▼0.0345.26 ▼0.65
Dashboard /wp-admin2,252 ▲725.61 ▼0.02100.42 ▲10.6459.40 ▲13.72
Posts /wp-admin/edit.php2,160 ▲572.06 ▲0.0041.47 ▼0.6038.73 ▲3.13
Add New Post /wp-admin/post-new.php1,594 ▲6223.49 ▲0.32687.36 ▲27.5852.93 ▼0.51
Media Library /wp-admin/upload.php1,457 ▲544.21 ▲0.0497.82 ▼2.5243.53 ▼3.07
SMSWP Settings /wp-admin/admin.php?page=smswordpress#tab=smswp-settings1,6593.5558.8943.17
Logs /wp-admin/admin.php?page=smswordpress#tab=logs1,6303.4348.9028.31
Send a Test /wp-admin/admin.php?page=smswordpress#tab=send-a-test1,6443.8659.1645.55
Notifications /wp-admin/admin.php?page=smswordpress#tab=notifications1,6513.6050.8539.37

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall successfully, leaving 10 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • smswp_option
    • smswp_logs
    • widget_recent-comments
    • widget_recent-posts
    • smswp_newsletter_option
    • db_upgraded
    • smswp_notification_option
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 2329× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\InstanceResource' not found in wp-content/plugins/ultimate-sms/gateways/twilio/src/Twilio/Rest/Events/V1/SubscriptionInstance.php:32
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\Tests\\HolodeckTestCase' not found in wp-content/plugins/ultimate-sms/gateways/twilio/tests/Twilio/Integration/Conversations/V1/WebhookTest.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\InstanceResource' not found in wp-content/plugins/ultimate-sms/gateways/twilio/src/Twilio/Rest/Api/V2010/Account/OutgoingCallerIdInstance.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\Tests\\HolodeckTestCase' not found in wp-content/plugins/ultimate-sms/gateways/twilio/tests/Twilio/Integration/Api/V2010/Account/Usage/Record/LastMonthTest.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\ListResource' not found in wp-content/plugins/ultimate-sms/gateways/twilio/src/Twilio/Rest/Verify/V2/Service/VerificationList.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\ListResource' not found in wp-content/plugins/ultimate-sms/gateways/twilio/src/Twilio/Rest/Api/V2010/Account/Call/FeedbackSummaryList.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\Tests\\HolodeckTestCase' not found in wp-content/plugins/ultimate-sms/gateways/twilio/tests/Twilio/Integration/Sync/V1/Service/SyncStream/StreamMessageTest.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\Tests\\HolodeckTestCase' not found in wp-content/plugins/ultimate-sms/gateways/twilio/tests/Twilio/Integration/Autopilot/V1/Assistant/DefaultsTest.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\InstanceResource' not found in wp-content/plugins/ultimate-sms/gateways/twilio/src/Twilio/Rest/Pricing/V1/PhoneNumber/CountryInstance.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\Options' not found in wp-content/plugins/ultimate-sms/gateways/twilio/src/Twilio/Rest/Api/V2010/Account/NewSigningKeyOptions.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

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: You can look at the official readme.txt

ultimate-sms/ultimate-sms.php Passed 13 tests

The primary PHP file in "Ultimate WP SMS Plugin for Wordpress" version 1.0.2 is used by WordPress to initiate all plugin functionality
66 characters long description:
SMS Wordpress Plugin - Send SMS Messages & Notifications to users.

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
Good job! No executable or dangerous file extensions detected179,520 lines of code in 2,476 files:
LanguageFilesBlank linesComment linesLines of code
PHP2,42739,132115,957157,084
CSS81,1845109,182
JavaScript81,7601,3116,099
Sass1592834,730
Markdown1089002,278
make114240
YAML10137
JSON10035
XML20125
Dockerfile1308
SVG2002

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity3.35
▷ Minimum class complexity1.00
▷ Maximum class complexity139.00
Average method complexity1.42
▷ Minimum method complexity1.00
▷ Maximum method complexity52.00
Code structure
Namespaces339
Interfaces2
Traits0
Classes2,911
▷ Abstract classes2889.89%
▷ Concrete classes2,62390.11%
▷ Final classes20.08%
Methods16,320
▷ Static methods5663.47%
▷ Public methods14,95091.61%
▷ Protected methods1,3638.35%
▷ Private methods70.04%
Functions186
▷ Named functions5026.88%
▷ Anonymous functions13673.12%
Constants26
▷ Global constants1142.31%
▷ Class constants1557.69%
▷ Public constants15100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/images/checkerboard.png2.29KB2.54KB0.00%
assets/images/wpsmslogo.png23.04KB8.54KB▼ 62.94%
assets/images/premiumlogo.png4.80KB2.35KB▼ 51.04%
assets/images/wpsmsadforestilogo.png4.09KB2.26KB▼ 44.68%
admin/assets/images/frameworklogo.png5.50KB2.63KB▼ 52.18%