10% quick-sms-by-route-mobile

Code Review | Quick SMS by Route mobile

WordPress plugin Quick SMS by Route mobile scored10%from 54 tests.

About plugin

  • Plugin page: quick-sms-by-rout...
  • Plugin version: 4.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.4
  • WordPress version: 6.3.1
  • First release: Jul 22, 2020
  • Latest release: Nov 22, 2021
  • Number of updates: 15
  • Update frequency: every 32.6 days
  • Top authors: rmlproduct (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /446 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/quick-sms-by-route-mobile/routeMobile.php+50
    Undefined index: action

Server metrics [RAM: ▼1.95MB] [CPU: ▼61.66ms] Passed 4 tests

An overview of server-side resources used by Quick SMS by Route mobile
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.416.30 ▼47.92
Dashboard /wp-admin2.08 ▼1.275.55 ▼57.48
Posts /wp-admin/edit.php2.08 ▼1.285.45 ▼42.59
Add New Post /wp-admin/post-new.php2.08 ▼3.815.48 ▼98.63
Media Library /wp-admin/upload.php2.08 ▼1.165.68 ▼32.75

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Quick SMS by Route mobile
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲8014.41 ▲0.032.59 ▲0.4451.06 ▼1.94
Dashboard /wp-admin2,212 ▲325.59 ▼0.03111.45 ▲23.4944.14 ▲2.49
Posts /wp-admin/edit.php2,117 ▲172.04 ▲0.0535.71 ▲0.0131.84 ▼3.10
Add New Post /wp-admin/post-new.php1,556 ▲1123.08 ▼0.13729.48 ▲55.9354.37 ▼21.21
Media Library /wp-admin/upload.php1,417 ▲174.38 ▲0.12111.23 ▼4.4446.95 ▼1.81

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/quick-sms-by-route-mobile/routeMobile.php+50
    Undefined index: action
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/quick-sms-by-route-mobile/views/form.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/quick-sms-by-route-mobile/routeMobile.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/quick-sms-by-route-mobile/views/action.php:125

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 errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
1 plugin tags: name of plugin

quick-sms-by-route-mobile/routeMobile.php 85% from 13 tests

The principal PHP file in "Quick SMS by Route mobile" v. 4.6 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("quick-sms-by-route-mobile.php" instead of "routeMobile.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin1,220 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript19322588
PHP313640403
CSS2034229

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
asset/image/screenshot-1.png34.50KB16.83KB▼ 51.22%