89% woo-sms-by-divine-info-service

Code Review | Woo SMS by Divine Info Service

WordPress plugin Woo SMS by Divine Info Service scored89%from 54 tests.

About plugin

  • Plugin page: woo-sms-by-divine...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2.0-4.9.4
  • WordPress version: 6.3.1
  • First release: Mar 8, 2018
  • Latest release: Mar 8, 2018
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: anil.oxzin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /518 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.07MB] [CPU: ▼7.55ms] Passed 4 tests

A check of server-side resources used by Woo SMS by Divine Info Service
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.0842.22 ▲1.38
Dashboard /wp-admin3.42 ▲0.0447.56 ▼16.25
Posts /wp-admin/edit.php3.53 ▲0.1547.03 ▼2.97
Add New Post /wp-admin/post-new.php6.00 ▲0.0892.41 ▼7.52
Media Library /wp-admin/upload.php3.34 ▲0.0834.44 ▼3.44

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: no files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Woo SMS by Divine Info Service
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6013.60 ▼0.651.83 ▲0.1742.79 ▲1.89
Dashboard /wp-admin2,215 ▲305.85 ▲0.9696.20 ▼4.4340.44 ▼7.63
Posts /wp-admin/edit.php2,095 ▲62.00 ▼0.0236.35 ▲2.3033.25 ▼4.67
Add New Post /wp-admin/post-new.php1,520 ▲617.78 ▲0.28639.38 ▼64.9150.93 ▼2.29
Media Library /wp-admin/upload.php1,391 ▲64.22 ▲0.0193.52 ▼8.9940.03 ▼6.38

Uninstaller [IO: ✅] [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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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

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 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Tags: There are too many tags (11 tag instead of maximum 10)
You can take inspiration from this readme.txt

woo-sms-by-divine-info-service/woo-divineinfo-sms-services.php 85% from 13 tests

"Woo SMS by Divine Info Service" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("woo-sms-by-divine-info-service.php" instead of "woo-divineinfo-sms-services.php")
  • Text Domain: The text domain name should consist of only dashes and lowercase characters

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected1,262 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP213635854
CSS292311
JavaScript315097

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity28.00
▷ Minimum class complexity1.00
▷ Maximum class complexity55.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods24
▷ Static methods28.33%
▷ Public methods24100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
3 PNG files occupy 0.23MB with 0.10MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/down-arrow.png0.32KB0.32KB0.00%
images/flags.png64.41KB23.38KB▼ 63.70%
images/flags@2x.png169.54KB64.26KB▼ 62.10%