89% sb-sms-sender

Code Review | SB SMS Sender

WordPress plugin SB SMS Sender scored89%from 54 tests.

About plugin

  • Plugin page: sb-sms-sender
  • Plugin version: 0.0.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7
  • WordPress version: 6.3.1
  • First release: Jun 21, 2021
  • Latest release: Jun 21, 2021
  • Number of updates: 2
  • Update frequency: every 2.0 days
  • Top authors: shostakmaksim (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /331 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.04MB] [CPU: ▼1.39ms] Passed 4 tests

This is a short check of server-side resources used by SB SMS Sender
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0542.06 ▼5.17
Dashboard /wp-admin3.35 ▲0.0447.06 ▼2.11
Posts /wp-admin/edit.php3.40 ▲0.0453.44 ▲3.90
Add New Post /wp-admin/post-new.php5.93 ▲0.0497.04 ▼1.85
Media Library /wp-admin/upload.php3.27 ▲0.0435.88 ▲3.57

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for SB SMS Sender
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2914.45 ▼0.022.14 ▼0.1339.17 ▼5.14
Dashboard /wp-admin2,209 ▲184.81 ▼0.0598.68 ▼44.8939.33 ▼11.24
Posts /wp-admin/edit.php2,092 ▲31.98 ▼0.0340.68 ▲2.0636.26 ▼0.88
Add New Post /wp-admin/post-new.php1,535 ▲223.12 ▼0.20647.66 ▼34.8956.52 ▲2.77
Media Library /wp-admin/upload.php1,391 ▼04.18 ▼0.0596.01 ▼7.7541.71 ▼2.23

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

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 an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (General tab plugin features), #2 (Cabinet tab user credentials)
Please take inspiration from this readme.txt

sb-sms-sender/sb-sms-sender.php 92% from 13 tests

The primary PHP file in "SB SMS Sender" version 0.0.2 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin419 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP36030216
PO File25656203

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin