68% bulk-sms-smsnet24

Code Review | Bulk SMS - SMSNET24

WordPress plugin Bulk SMS - SMSNET24 scored68%from 54 tests.

About plugin

  • Plugin page: bulk-sms-smsnet24
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0.1
  • WordPress version: 6.3.1
  • First release: Nov 2, 2022
  • Latest release: Nov 2, 2022
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: digitallabbd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /555 total downloads

Benchmarks

Plugin footprint 65% 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: ▲0.14MB] [CPU: ▼3.98ms] Passed 4 tests

Server-side resources used by Bulk SMS - SMSNET24
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0942.97 ▲0.89
Dashboard /wp-admin3.45 ▲0.1549.42 ▼5.20
Posts /wp-admin/edit.php3.56 ▲0.2154.26 ▲2.68
Add New Post /wp-admin/post-new.php6.08 ▲0.1986.62 ▼14.30
Media Library /wp-admin/upload.php3.37 ▲0.1440.07 ▲4.56
Contact /wp-admin/admin.php?page=smsnet-contact3.3433.31
Guideline /wp-admin/admin.php?page=smsnet-guideline3.3434.14
Setting /wp-admin/admin.php?page=smsnet-setting3.3133.40

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 37 new files
Database: 2 new tables, 8 new options
New tables
wp_smsnet_otps
wp_smsnet_settings
New WordPress options
can_compress_scripts
widget_recent-posts
smsnet_24_version
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
smsnet_24_installed

Browser metrics Passed 4 tests

This is an overview of browser requirements for Bulk SMS - SMSNET24
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5914.34 ▲0.041.62 ▼0.4043.73 ▼5.78
Dashboard /wp-admin2,226 ▲465.55 ▼0.1085.41 ▼8.5541.48 ▼3.25
Posts /wp-admin/edit.php2,131 ▲282.01 ▲0.0136.30 ▼0.3334.26 ▼1.83
Add New Post /wp-admin/post-new.php1,564 ▲3818.38 ▼5.35657.38 ▼36.9948.34 ▼8.47
Media Library /wp-admin/upload.php1,434 ▲344.15 ▼0.06101.51 ▼4.1242.51 ▼6.32
Contact /wp-admin/admin.php?page=smsnet-contact8771.9921.6427.42
Guideline /wp-admin/admin.php?page=smsnet-guideline9432.1325.5843.40
Setting /wp-admin/admin.php?page=smsnet-setting1,0462.0023.4331.47

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The plugin did not uninstall successfully, leaving 2 tables in the database
    • wp_smsnet_otps
    • wp_smsnet_settings
  • Zombie WordPress options were found after uninstall: 8 options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • smsnet_24_installed
    • smsnet_24_version

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
    • > GET request to /wp-admin/admin.php?page=smsnet-setting
    • > User notice in wp-includes/functions.php+5905
    Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 6× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Trait 'DigitalLab\\SMSNet24\\Traits\\Form_Error' not found in wp-content/plugins/bulk-sms-smsnet24/includes/Admin/Settings.php on line 10
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/bulk-sms-smsnet24/includes/API/OTP.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/bulk-sms-smsnet24/includes/Admin/views/guideline/guideline.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/bulk-sms-smsnet24/includes/Admin/views/settings/settings.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/bulk-sms-smsnet24/includes/API/SMS.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/bulk-sms-smsnet24/includes/Admin/views/contact/contact.php:3

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
Please take inspiration from this readme.txt

bulk-sms-smsnet24/bulk-sms-smsnet24.php 92% from 13 tests

The principal PHP file in "Bulk SMS - SMSNET24" v. 1.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 456 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,669 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
PHP263777281,644
JSON20025

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity10.00
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.78
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces6
Interfaces0
Traits1
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes16.67%
Methods82
▷ Static methods1923.17%
▷ Public methods7591.46%
▷ Protected methods44.88%
▷ Private methods33.66%
Functions10
▷ Named functions990.00%
▷ Anonymous functions110.00%
Constants6
▷ Global constants583.33%
▷ Class constants116.67%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.31MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-128x128.png13.44KB5.85KB▼ 56.48%
assets/icon-256x256.png37.65KB16.17KB▼ 57.06%
assets/screenshot-1.png43.37KB22.46KB▼ 48.21%
assets/banner-1544x500.png105.36KB35.23KB▼ 66.56%
assets/screenshot-2.png68.20KB35.61KB▼ 47.78%