10% woo-telehooks-sms-notifications

Code Review | Telehooks SMS Notifications

WordPress plugin Telehooks SMS Notifications scored10%from 54 tests.

About plugin

  • Plugin page: woo-telehooks-sms...
  • Plugin version: 2.0
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.7.3
  • WordPress version: 6.3.1
  • First release: Mar 6, 2018
  • Latest release: Mar 6, 2018
  • Number of updates: 5
  • Update frequency: every 14.0 days
  • Top authors: onjection (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /485 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • The plugin cannot be installed
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'telehooks_plugin_registration_hook' not found or invalid function name

Server metrics [RAM: ▲0.01MB] [CPU: ▼1.28ms] Passed 4 tests

A check of server-side resources used by Telehooks SMS Notifications
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.36 ▼8.38
Dashboard /wp-admin3.31 ▲0.0155.13 ▲1.08
Posts /wp-admin/edit.php3.36 ▲0.0152.61 ▲4.27
Add New Post /wp-admin/post-new.php5.90 ▲0.0195.33 ▲0.07
Media Library /wp-admin/upload.php3.24 ▲0.0137.72 ▲2.10

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Telehooks SMS Notifications: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲8513.26 ▼0.922.03 ▼0.1844.12 ▼0.70
Dashboard /wp-admin2,212 ▲246.04 ▲1.17101.35 ▼16.4640.18 ▼3.00
Posts /wp-admin/edit.php2,095 ▲62.02 ▼0.0140.02 ▲4.7135.56 ▲1.12
Add New Post /wp-admin/post-new.php1,548 ▲2818.51 ▼4.50667.40 ▼11.5159.44 ▲5.55
Media Library /wp-admin/upload.php1,391 ▲64.26 ▲0.06104.55 ▼0.0743.33 ▼4.92

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: Screenshot #1 (screen1) image missing
Please take inspiration from this readme.txt

woo-telehooks-sms-notifications/init.php 92% from 13 tests

"Telehooks SMS Notifications" version 2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("woo-telehooks-sms-notifications.php" instead of "init.php")

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
Good job! No executable or dangerous file extensions detected239 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP28478239

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity2.82
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin