78% notify-woosms

Code Review | Notify WooSMS

WordPress plugin Notify WooSMS scored78%from 54 tests.

About plugin

  • Plugin page: notify-woosms
  • Plugin version: 2.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.4
  • WordPress version: 6.3.1
  • First release: May 1, 2020
  • Latest release: Oct 26, 2020
  • Number of updates: 5
  • Update frequency: every 35.6 days
  • Top authors: solaymanhaider (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /817 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼3.02ms] Passed 4 tests

Analyzing server-side resources used by Notify WooSMS
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0444.12 ▲5.33
Dashboard /wp-admin3.36 ▲0.0653.25 ▼2.25
Posts /wp-admin/edit.php3.47 ▲0.1246.81 ▼3.23
Add New Post /wp-admin/post-new.php5.94 ▲0.0588.60 ▼8.57
Media Library /wp-admin/upload.php3.28 ▲0.0538.17 ▲1.96
Notify WooSMS /wp-admin/options-general.php?page=notify_woosms3.2232.70

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Notify WooSMS: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6014.80 ▲0.701.74 ▼0.1043.98 ▼0.43
Dashboard /wp-admin2,215 ▲304.85 ▼0.03105.83 ▼5.4944.57 ▲1.60
Posts /wp-admin/edit.php2,095 ▲62.06 ▲0.0437.91 ▲4.5333.71 ▼3.29
Add New Post /wp-admin/post-new.php1,534 ▲12823.03 ▲5.05661.79 ▲44.9264.72 ▲12.55
Media Library /wp-admin/upload.php1,391 ▲64.17 ▼0.01100.22 ▼35.0345.15 ▼10.76
Notify WooSMS /wp-admin/options-general.php?page=notify_woosms9602.0223.1036.65

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

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

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
  • 14 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=notify_woosms
    • > Notice in wp-content/plugins/notify-woosms/admin.php+256
    Trying to access array offset on value of type bool

SRP 50% 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
The following issues need your attention
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/notify-woosms/notify-woosms.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/notify-woosms/woocommerce.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/notify-woosms/admin.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Screenshots: Please add images for these screenshots: #1 (/assets/screenshot-1.png), #2 (/assets/screenshot-2.png)
Please take inspiration from this readme.txt

notify-woosms/notify-woosms.php Passed 13 tests

The principal PHP file in "Notify WooSMS" v. 2.0 is loaded by WordPress automatically on each request
88 characters long description:
WooCommerce order status sms notifications plugin for Bangladeshi SMS service providers.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin406 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP59521292
CSS1180104
Markdown18010

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
2 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-2.png26.85KB13.93KB▼ 48.13%
assets/screenshot-1.png26.28KB10.48KB▼ 60.11%