83% vht-sms

Code Review | VHT SMS

WordPress plugin VHT SMS scored83%from 54 tests.

About plugin

  • Plugin page: vht-sms
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-6.0
  • WordPress version: 6.3.1
  • First release: Apr 17, 2018
  • Latest release: Jun 16, 2022
  • Number of updates: 4
  • Update frequency: every 380.5 days
  • Top authors: levantoan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /778 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

This is a short check of server-side resources used by VHT SMS
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1441.65 ▲3.09
Dashboard /wp-admin3.45 ▲0.1046.92 ▼18.00
Posts /wp-admin/edit.php3.57 ▲0.2149.85 ▲3.57
Add New Post /wp-admin/post-new.php6.03 ▲0.1495.12 ▼1.01
Media Library /wp-admin/upload.php3.38 ▲0.1435.47 ▼1.43

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

VHT SMS: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.68 ▼0.704.50 ▲2.8543.52 ▲0.60
Dashboard /wp-admin2,203 ▲155.79 ▲0.6395.38 ▼9.2137.97 ▼5.70
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0540.93 ▲5.1235.49 ▼1.91
Add New Post /wp-admin/post-new.php1,533 ▲1123.44 ▲0.27577.54 ▼80.5948.62 ▼11.90
Media Library /wp-admin/upload.php1,388 ▼04.21 ▼0.0191.09 ▼15.5345.77 ▼0.06

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/vht-sms/vht-sms.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Screenshots: Add images for these screenshots: #1 (Cài đặt chung của VHT SMS và cài đặt cho Contact Form 7 và NinjaForm), #2 (Cài đặt API của VHT)
The official readme.txt is a good inspiration

vht-sms/vht-sms.php 77% from 13 tests

The entry point to "VHT SMS" version 1.0.2 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 215 characters long)
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Requires at least: Required version does not match the one declared in readme.txt ("3.0" instead of "3.0.0")

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
Success! There were no dangerous files found in this plugin882 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP16228768
CSS10081
JavaScript10033

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.68
Average class complexity187.00
▷ Minimum class complexity187.00
▷ Maximum class complexity187.00
Average method complexity8.44
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods25
▷ Static methods14.00%
▷ Public methods2392.00%
▷ Protected methods00.00%
▷ Private methods28.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.14MB with 0.09MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png55.84KB18.28KB▼ 67.26%
screenshot-1.png70.05KB24.66KB▼ 64.80%
screenshot-3.png14.13KB4.17KB▼ 70.47%