84% verification-sms-targetsms

Code Review | Verification SMS with TargetSMS

WordPress plugin Verification SMS with TargetSMS scored84%from 54 tests.

About plugin

  • Plugin page: verification-sms-...
  • Plugin version: 1.5
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.9
  • WordPress version: 6.3.1
  • First release: Feb 10, 2022
  • Latest release: Feb 10, 2022
  • Number of updates: 11
  • Update frequency: every 0.2 days
  • Top authors: cajka (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /376 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Verification SMS with TargetSMS
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1439.48 ▲3.15
Dashboard /wp-admin3.45 ▲0.1149.52 ▼12.11
Posts /wp-admin/edit.php3.56 ▲0.2151.19 ▲6.41
Add New Post /wp-admin/post-new.php6.03 ▲0.1590.79 ▼4.95
Media Library /wp-admin/upload.php3.37 ▲0.1533.28 ▼1.08
Verification SMS with TargetSMS /wp-admin/admin.php?page=verification-sms-targetsms/plugin-options.php3.3433.52

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Verification SMS with TargetSMS
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲5013.57 ▼0.712.38 ▲0.3745.11 ▲2.59
Dashboard /wp-admin2,217 ▲295.82 ▲0.9496.80 ▼5.6140.78 ▼5.53
Posts /wp-admin/edit.php2,100 ▲112.04 ▼0.0037.16 ▼1.8433.72 ▲2.67
Add New Post /wp-admin/post-new.php1,523 ▲417.63 ▼5.39640.20 ▼7.3051.36 ▼5.92
Media Library /wp-admin/upload.php1,405 ▲174.22 ▲0.0899.28 ▲1.7044.15 ▼5.19
Verification SMS with TargetSMS /wp-admin/admin.php?page=verification-sms-targetsms/plugin-options.php8542.0324.4728.79

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

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 | 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
  • 7× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/verification-sms-targetsms/inc/frontend.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/verification-sms-targetsms/inc/backend.php:235
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/verification-sms-targetsms/inc/ajax.php:7
    • > PHP Warning
      require_once(TARGETVR_PLUGIN_DIR_INC/class-target-send-sms.php): failed to open stream: No such file or directory in wp-content/plugins/verification-sms-targetsms/inc/sendcode.php on line 3
    • > PHP Fatal error
      require_once(): Failed opening required 'TARGETVR_PLUGIN_DIR_INC/class-target-send-sms.php' (include_path='.:/usr/share/php') in wp-content/plugins/verification-sms-targetsms/inc/sendcode.php on line 3
    • > PHP Warning
      Use of undefined constant TARGETVR_PLUGIN_DIR_INC - assumed 'TARGETVR_PLUGIN_DIR_INC' (this will throw an Error in a future version of PHP) in wp-content/plugins/verification-sms-targetsms/inc/sendcode.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function targetvr_get_plugin_menu() in wp-content/plugins/verification-sms-targetsms/plugin-options.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: targetsms, sms, confirmed, woocommerce, verification...

verification-sms-targetsms/verification-sms-targetsms.php 85% from 13 tests

The primary PHP file in "Verification SMS with TargetSMS" version 1.5 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 342 characters long)
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,283 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP10253164751
JavaScript18919238
CSS190155
PO File15565139

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity4.00
▷ Minimum class complexity3.00
▷ Maximum class complexity5.00
Average method complexity1.86
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods7
▷ Static methods457.14%
▷ Public methods457.14%
▷ Protected methods00.00%
▷ Private methods342.86%
Functions38
▷ Named functions3797.37%
▷ Anonymous functions12.63%
Constants6
▷ Global constants6100.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
7 PNG files occupy 0.26MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon.png46.08KB14.06KB▼ 69.49%
assets/screenshot-5.png15.88KB7.94KB▼ 50.02%
assets/screenshot-1.png54.73KB27.86KB▼ 49.09%
assets/screenshot-2.png65.35KB32.39KB▼ 50.44%
img/chek.png1.74KB1.05KB▼ 39.71%