84% bindusms

Code Review | BinduSms

WordPress plugin BinduSms scored84%from 54 tests.

About plugin

  • Plugin page: bindusms
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.1.0
  • WordPress version: 6.3.1
  • First release: Oct 30, 2022
  • Latest release: Nov 3, 2022
  • Number of updates: 4
  • Update frequency: every 1.5 days
  • Top authors: wasee941 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /157 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.13MB] [CPU: ▼1.30ms] Passed 4 tests

An overview of server-side resources used by BinduSms
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1346.10 ▲5.24
Dashboard /wp-admin3.44 ▲0.1343.37 ▼7.88
Posts /wp-admin/edit.php3.55 ▲0.1942.57 ▼4.74
Add New Post /wp-admin/post-new.php6.02 ▲0.1391.09 ▲6.47
Media Library /wp-admin/upload.php3.36 ▲0.1335.20 ▲2.20

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 25 new files
Database: no new tables, 9 new options
New WordPress options
db_upgraded
can_compress_scripts
bindusms_installed
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
bindusms_version
bindusms_wc_order_notification_settings

Browser metrics Passed 4 tests

An overview of browser requirements for BinduSms
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.23 ▼1.415.54 ▲3.7243.21 ▲0.82
Dashboard /wp-admin2,206 ▲185.85 ▲0.9996.31 ▼10.3139.77 ▼3.72
Posts /wp-admin/edit.php2,089 ▼01.98 ▼0.0239.33 ▼1.4330.65 ▼6.76
Add New Post /wp-admin/post-new.php1,533 ▼922.80 ▲4.53623.99 ▲3.3254.23 ▼0.77
Media Library /wp-admin/upload.php1,385 ▼34.26 ▲0.0299.23 ▲0.5343.60 ▲2.41

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
Please fix the following items
  • The uninstall procedure has failed, leaving 9 options in the database
    • bindusms_installed
    • bindusms_wc_order_notification_settings
    • widget_recent-posts
    • widget_theysaidso_widget
    • bindusms_version
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'BinduSms\\BinduSms\\Admin\\WCOrderNotification' not found in wp-content/plugins/bindusms/includes/Admin/views/wc-order-notification.php:2

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: update, woocommerce, sms, bangladesh, order notify

bindusms/bindusms.php Passed 13 tests

The main PHP script in "BinduSms" version 1.0.0 is automatically included on every request by WordPress
86 characters long description:
BinduSms lets you notify your customers about their WooCommerce order updates via SMS.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected1,143 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP172584921,106
JSON20027
Markdown18010

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity15.67
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity3.28
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes111.11%
Methods59
▷ Static methods1932.20%
▷ Public methods5694.92%
▷ Protected methods00.00%
▷ Private methods35.08%
Functions11
▷ Named functions1090.91%
▷ Anonymous functions19.09%
Constants7
▷ Global constants685.71%
▷ Class constants114.29%
▷ 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
There were not PNG files found in your plugin