84% notification-sms

Code Review | Notification SMS - Custom Notifications SMS Plugin for WordPress

WordPress plugin Notification SMS - Custom Notifications SMS Plugin for WordPress scored84%from 54 tests.

About plugin

  • Plugin page: notification-sms
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9.5
  • WordPress version: 6.3.1
  • First release: Sep 3, 2018
  • Latest release: Sep 22, 2018
  • Number of updates: 4
  • Update frequency: every 5.8 days
  • Top authors: jilenloa (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /862 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Notification SMS - Custom Notifications SMS Plugin for WordPress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.12 ▼5.72
Dashboard /wp-admin3.32 ▲0.0147.16 ▼2.87
Posts /wp-admin/edit.php3.37 ▲0.0148.21 ▼2.92
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.27 ▼9.56
Media Library /wp-admin/upload.php3.24 ▲0.0135.59 ▼7.18

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Notification SMS - Custom Notifications SMS Plugin for WordPress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲2814.37 ▼0.181.83 ▼0.1340.10 ▼2.06
Dashboard /wp-admin2,195 ▲185.57 ▼0.0387.87 ▼3.8841.28 ▲1.73
Posts /wp-admin/edit.php2,100 ▼01.98 ▼0.0237.47 ▲2.9233.93 ▼6.91
Add New Post /wp-admin/post-new.php1,526 ▼023.04 ▲0.11626.55 ▼66.8851.68 ▼2.03
Media Library /wp-admin/upload.php1,400 ▼04.16 ▲0.05101.79 ▼17.2644.70 ▼3.91

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'BracketSpace\otification\\Admin\\Settings' not found in wp-content/plugins/notification-sms/class/SmsSetting/NotificationSmsSettings.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'BracketSpace\otification\\Ilensoft\\SmsGateway\\SmsGateway' not found in wp-content/plugins/notification-sms/class/SmsGateway/HubtelSms.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'BracketSpace\otification\\Ilensoft\\SmsGateway\\SmsGateway' not found in wp-content/plugins/notification-sms/class/SmsGateway/MNotify.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'BracketSpace\otification\\Ilensoft\\SmsGateway\\SmsGateway' not found in wp-content/plugins/notification-sms/class/SmsGateway/CustomGateway.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/notification-sms/notification-sms.php:45
    • > PHP Fatal error
      Uncaught Error: Class 'BracketSpace\otification\\Abstracts\\Recipient' not found in wp-content/plugins/notification-sms/class/Recipient/PhoneNumber.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'BracketSpace\otification\\Abstracts\otification' not found in wp-content/plugins/notification-sms/class/Notification/Sms.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: api, developer, framework, sms, alert...

notification-sms/notification-sms.php 92% from 13 tests

This is the main PHP file of "Notification SMS - Custom Notifications SMS Plugin for WordPress" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin424 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP9127140424

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity3.86
▷ Minimum class complexity1.00
▷ Maximum class complexity10.00
Average method complexity1.77
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes7
▷ Abstract classes114.29%
▷ Concrete classes685.71%
▷ Final classes00.00%
Methods28
▷ Static methods310.71%
▷ Public methods2589.29%
▷ Protected methods00.00%
▷ Private methods310.71%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants0
▷ Global constants00.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
No PNG files were detected