74% sendsms-dashboard

Code Review | SendSMS Dashboard

WordPress plugin SendSMS Dashboard scored74%from 54 tests.

About plugin

  • Plugin page: sendsms-dashboard
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2
  • WordPress version: 6.3.1
  • First release: Aug 21, 2021
  • Latest release: Mar 19, 2023
  • Number of updates: 7
  • Update frequency: every 84.3 days
  • Top authors: catalinsendsms (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /457 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

A check of server-side resources used by SendSMS Dashboard
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.09 ▼2.85
Dashboard /wp-admin3.31 ▼0.0457.02 ▼9.21
Posts /wp-admin/edit.php3.36 ▲0.0048.81 ▼3.92
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.43 ▼22.61
Media Library /wp-admin/upload.php3.23 ▲0.0036.13 ▲0.68

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 53 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for SendSMS Dashboard
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.37 ▼0.051.85 ▲0.1539.44 ▼4.18
Dashboard /wp-admin2,189 ▲125.54 ▼0.1487.93 ▼1.0043.96 ▼6.19
Posts /wp-admin/edit.php2,103 ▼01.98 ▲0.0435.83 ▼6.1135.68 ▲0.98
Add New Post /wp-admin/post-new.php1,535 ▲924.79 ▲1.78605.08 ▼37.1769.05 ▲12.09
Media Library /wp-admin/upload.php1,403 ▲64.08 ▼0.10100.66 ▼1.1443.43 ▼2.88

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The plugin did not uninstall successfully, leaving 53 files (1.41MB) in the plugin directory
    • (new file) README.txt
    • (new file) admin/css/jBox.all.min.css
    • (new file) admin/css/index.php
    • (new file) admin/extension/sendsms-dashboard-history.php
    • (new file) admin/img/logo-test-area.png
    • (new file) admin/css/sendsms-dashboard-admin.css
    • (new file) admin/class-sendsms-dashboard-admin.php
    • (new file) admin/img/index.php
    • (new file) admin/extension/sendsms-dashboard-subscribers.php
    • (new file) LICENSE.txt
    • ...
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

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
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following
  • 22× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Notice
      Undefined variable: args in wp-content/plugins/sendsms-dashboard/public/partials/sendsms-dashboard-subscription-widget.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/sendsms-dashboard/public/partials/sendsms-dashboard-unsubscribe-widget.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/sendsms-dashboard/public/partials/sendsms-dashboard-unsubscribe-widget-admin-form.php:2
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/sendsms-dashboard/public/partials/sendsms-dashboard-unsubscribe-widget.php on line 2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/sendsms-dashboard/public/extension/sendsms-dashboard-unsubscribe-widget.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/sendsms-dashboard/admin/partials/sendsms-dashboard-history-admin-display.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/sendsms-dashboard/public/extension/sendsms-dashboard-subscribe-widget.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/sendsms-dashboard/admin/partials/user/sendsms-dashboard-mobile-field-register.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/sendsms-dashboard/admin/extension/sendsms-dashboard-subscribers.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/sendsms-dashboard/admin/extension/sendsms-dashboard-history.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === sendsms-dashboard === )
  • Screenshots: These screenshots need descriptions #1, #2, #3, #4, #5, #6, #7 in sendsms-dashboard/assets to your readme.txt
The official readme.txt might help

sendsms-dashboard/sendsms-dashboard.php Passed 13 tests

The principal PHP file in "SendSMS Dashboard" v. 1.0.1 is loaded by WordPress automatically on each request
57 characters long description:
Use this plugin to communicate with everyone on your site

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected3,426 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
PHP303459132,746
JavaScript4917366
CSS34518314

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity18.38
▷ Minimum class complexity1.00
▷ Maximum class complexity98.00
Average method complexity2.66
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods136
▷ Static methods21.47%
▷ Public methods13095.59%
▷ Protected methods10.74%
▷ Private methods53.68%
Functions8
▷ Named functions8100.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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/img/logo-test-area.png23.44KB5.26KB▼ 77.54%
admin/img/sendsms-dashboard-setting.png0.65KB0.63KB▼ 3.15%