72% ssl-wireless-sms-notification

Code Review | SSL Wireless SMS Notification

WordPress plugin SSL Wireless SMS Notification scored72%from 54 tests.

About plugin

  • Plugin page: ssl-wireless-sms-...
  • Plugin version: 2.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.4.2
  • WordPress version: 6.3.1
  • First release: Jul 11, 2020
  • Latest release: Jul 21, 2020
  • Number of updates: 3
  • Update frequency: every 3.7 days
  • Top authors: prabalsslw (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /919 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.30MB] [CPU: ▼2.55ms] Passed 4 tests

Analyzing server-side resources used by SSL Wireless SMS Notification
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.2952.38 ▲10.75
Dashboard /wp-admin3.63 ▲0.2852.15 ▼11.83
Posts /wp-admin/edit.php3.74 ▲0.3853.58 ▲3.91
Add New Post /wp-admin/post-new.php6.21 ▲0.3291.61 ▼5.25
Media Library /wp-admin/upload.php3.55 ▲0.3240.55 ▲2.96
SSL Wireless /wp-admin/admin.php?page=sslcare-notification3.4933.58
SMS Report /wp-admin/admin.php?page=sslcare-report3.5335.27

Server storage [IO: ▲0.83MB] [DB: ▲0.00MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
Just a few items left to fix
  • Illegal file modification found: 1 file (4.00KB) outside of "wp-content/plugins/ssl-wireless-sms-notification/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 25 new files
Database: 1 new table, 8 new options
New tables
wp_sslcare_woo_alert
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
sslcare_plugin_version
sslcare_notification
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for SSL Wireless SMS Notification
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,867 ▲8113.33 ▼0.632.20 ▼0.1741.76 ▼1.01
Dashboard /wp-admin2,242 ▲395.81 ▲0.84104.45 ▼1.0538.63 ▼1.87
Posts /wp-admin/edit.php2,127 ▲272.01 ▼0.0241.17 ▲4.4535.69 ▼5.19
Add New Post /wp-admin/post-new.php1,567 ▲2623.31 ▲5.16669.39 ▲33.0263.34 ▲4.81
Media Library /wp-admin/upload.php1,427 ▲304.20 ▼0.03109.82 ▲9.4046.62 ▲2.68
SSL Wireless /wp-admin/admin.php?page=sslcare-notification1,1532.0322.3633.56
SMS Report /wp-admin/admin.php?page=sslcare-report1,0193.3766.8830.58

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • sslcare_notification

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=sslcare-notification
    • > Notice in wp-content/plugins/ssl-wireless-sms-notification/lib/sslcare-admin-setting.php+366
    Undefined variable: html

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      Use of undefined constant SSLW_SMS_PATH - assumed 'SSLW_SMS_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/ssl-wireless-sms-notification/lib/sslcare-woo-alert.php on line 8
    • > PHP Fatal error
      require_once(): Failed opening required 'SSLW_SMS_PATHlib/sslcare-sms-api.php' (include_path='.:/usr/share/php') in wp-content/plugins/ssl-wireless-sms-notification/lib/sslcare-woo-alert.php on line 8
    • > PHP Warning
      require_once(SSLW_SMS_PATHlib/sslcare-sms-api.php): failed to open stream: No such file or directory in wp-content/plugins/ssl-wireless-sms-notification/lib/sslcare-woo-alert.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_register_style() in wp-content/plugins/ssl-wireless-sms-notification/lib/sslcare-woo-report.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
    • > GET request to /wp-admin/admin.php?page=sslcare-report
    • > Network (severe)
    wp-content/plugins/ssl-wireless-sms-notification/lib/asset/images/sort_both.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=sslcare-report
    • > Network (severe)
    wp-content/plugins/ssl-wireless-sms-notification/lib/asset/images/sort_desc.png - Failed to load resource: the server responded with a status of 404 (Not Found)

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: official, isms, bangladesh, woocommerce, notification...

ssl-wireless-sms-notification/sslWireless.php 92% from 13 tests

This is the main PHP file of "SSL Wireless SMS Notification" version 2.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ssl-wireless-sms-notification.php" instead of "sslWireless.php")

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
There were no executable files found in this plugin1,723 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP8340521,416
JavaScript81365302
CSS3005

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity53.00
▷ Minimum class complexity4.00
▷ Maximum class complexity115.00
Average method complexity5.00
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods52
▷ Static methods47.69%
▷ Public methods52100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.14MB with 0.06MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/screenshot-3.png29.79KB15.55KB▼ 47.79%
images/screenshot-1.png46.16KB25.13KB▼ 45.54%
images/screenshot-2.png62.66KB30.95KB▼ 50.62%