10% exsile-sms-gateway

Code Review | Exsile SMS Gateway

WordPress plugin Exsile SMS Gateway scored 10% from 54 tests.

About plugin

  • Plugin page: exsile-sms-gateway
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Oct 3, 2021
  • Latest release: Aug 18, 2023
  • Number of updates: 33
  • Update frequency: every 20.8 days
  • Top authors: DudiCohen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 461 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • The plugin did not install without errors
    • > Warning in wp-content/plugins/exsile-sms-gateway/exsile-sms-gateway.php+82
    include_once(wp-content/plugins/exsile-sms-gateway/includes/ignore-fields.php): failed to open stream: No such file or directory

Server metrics [RAM: ▼1.88MB] [CPU: ▼52.08ms] Passed 4 tests

An overview of server-side resources used by Exsile SMS Gateway
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.10 ▼1.3613.45 ▼28.25
Dashboard /wp-admin2.12 ▼1.188.16 ▼40.94
Posts /wp-admin/edit.php2.12 ▼1.237.06 ▼47.61
Add New Post /wp-admin/post-new.php2.12 ▼3.768.18 ▼91.53
Media Library /wp-admin/upload.php2.12 ▼1.117.91 ▼24.92
SMS Leads /wp-admin/options-general.php?page=exsile-sms-gateway2.128.20

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Exsile SMS Gateway
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲7713.19 ▼1.181.72 ▼0.1542.94 ▲4.21
Dashboard /wp-admin2,218 ▲304.93 ▲0.07101.75 ▼2.0441.65 ▼0.03
Posts /wp-admin/edit.php2,101 ▲92.04 ▼0.0635.16 ▼1.7934.01 ▲2.52
Add New Post /wp-admin/post-new.php1,525 ▼823.38 ▲0.13677.94 ▲44.4560.28 ▲3.47
Media Library /wp-admin/upload.php1,400 ▲214.26 ▲0.1296.86 ▼4.6243.93 ▼3.32
SMS Leads /wp-admin/options-general.php?page=exsile-sms-gateway1,0382.1639.4527.90

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Warning in wp-content/plugins/exsile-sms-gateway/exsile-sms-gateway.php+82
    include_once(wp-content/plugins/exsile-sms-gateway/includes/ignore-fields.php): failed to open stream: No such file or directory
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=exsile-sms-gateway
    • > Warning in wp-content/plugins/exsile-sms-gateway/exsile-sms-gateway.php+82
    include_once(wp-content/plugins/exsile-sms-gateway/includes/ignore-fields.php): failed to open stream: No such file or directory
    • > GET request to /wp-admin/options-general.php?page=exsile-sms-gateway
    • > Warning in wp-content/plugins/exsile-sms-gateway/exsile-sms-gateway.php+82
    include_once(): Failed opening 'wp-content/plugins/exsile-sms-gateway/includes/ignore-fields.php' for inclusion (include_path='.:/usr/share/php')

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success

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

Optimizations

Plugin configuration 96% from 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
4 plugin tags: sending sms, send leads, sending leads by sms, send sms

exsile-sms-gateway/exsile-sms-gateway.php 92% from 13 tests

Analyzing the main PHP file in "Exsile SMS Gateway" version 1.1.0
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 442 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected7,900 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript82521986,734
PHP8293142926
PO File14754136
CSS2125104

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions28
▷ Named functions2796.43%
▷ Anonymous functions13.57%
Constants0
▷ Global constants00.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
1 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/logo.png12.13KB12.26KB0.00%