83% esms-gui-tin-nhan-sms

Code Review | eSMS

WordPress plugin eSMS scored83%from 54 tests.

About plugin

  • Plugin page: esms-gui-tin-nhan...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.0
  • WordPress version: 6.3.1
  • First release: Jul 13, 2018
  • Latest release: Jun 22, 2022
  • Number of updates: 8
  • Update frequency: every 180.3 days
  • Top authors: levantoan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,484 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.15MB] [CPU: ▲0.61ms] Passed 4 tests

A check of server-side resources used by eSMS
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1546.96 ▲8.45
Dashboard /wp-admin3.46 ▲0.1648.59 ▲2.76
Posts /wp-admin/edit.php3.57 ▲0.2248.59 ▲3.53
Add New Post /wp-admin/post-new.php6.04 ▲0.1581.03 ▼4.58
Media Library /wp-admin/upload.php3.38 ▲0.1538.88 ▲0.75

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for eSMS
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.17 ▼0.181.68 ▼0.1444.22 ▲1.13
Dashboard /wp-admin2,195 ▲155.65 ▼0.0094.04 ▲8.7341.73 ▼3.33
Posts /wp-admin/edit.php2,100 ▼01.96 ▼0.0734.03 ▼0.1735.96 ▼0.04
Add New Post /wp-admin/post-new.php1,526 ▼223.11 ▼0.19645.60 ▼8.3460.03 ▼4.14
Media Library /wp-admin/upload.php1,400 ▲64.18 ▼0.0794.16 ▼9.3743.30 ▲0.75

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 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
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/esms-gui-tin-nhan-sms/esms.php

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)
There were no browser issues found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots do not have images: #1 (Cài đặt chung của eSMS và cài đặt cho Contact Form 7 và NinjaForm), #2 (Cài đặt API của eSMS)
Please take inspiration from this readme.txt

esms-gui-tin-nhan-sms/esms.php 69% from 13 tests

Analyzing the main PHP file in "eSMS" version 1.0.2
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("esms-gui-tin-nhan-sms.php" instead of "esms.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 205 characters long)
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

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 plugin872 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP16212769
CSS10375
JavaScript10028

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity188.00
▷ Minimum class complexity188.00
▷ Maximum class complexity188.00
Average method complexity8.79
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods24
▷ Static methods14.17%
▷ Public methods2187.50%
▷ Protected methods00.00%
▷ Private methods312.50%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.18MB with 0.12MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png85.33KB29.35KB▼ 65.60%
screenshot-2.png58.01KB19.14KB▼ 67.01%
screenshot-3.png41.86KB14.24KB▼ 65.98%