78% ultimate-sms-feedback-form

Code Review | Ultimatesmsapi SMS PLugin

WordPress plugin Ultimatesmsapi SMS PLugin scored78%from 54 tests.

About plugin

  • Plugin page: ultimate-sms-feed...
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0-3.4.2
  • WordPress version: 6.3.1
  • First release: Sep 29, 2012
  • Latest release: Oct 18, 2012
  • Number of updates: 21
  • Update frequency: every 1.0 days
  • Top authors: rahul77758 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,580 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.95ms] Passed 4 tests

Server-side resources used by Ultimatesmsapi SMS PLugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0032.86 ▼7.39
Dashboard /wp-admin3.31 ▲0.0146.25 ▼1.40
Posts /wp-admin/edit.php3.36 ▲0.0048.39 ▼0.53
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.71 ▼2.47
Media Library /wp-admin/upload.php3.23 ▲0.0033.90 ▲0.40
UltimateSMSapi feedback form /wp-admin/options-general.php?page=ultimatesmsapi3.2531.20

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Ultimatesmsapi SMS PLugin
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4713.30 ▼1.341.58 ▼0.9136.95 ▼8.84
Dashboard /wp-admin2,210 ▲224.85 ▼1.15103.12 ▼7.9940.07 ▼2.91
Posts /wp-admin/edit.php2,093 ▲42.03 ▼0.0139.77 ▼2.2434.95 ▼0.84
Add New Post /wp-admin/post-new.php1,546 ▲422.85 ▲4.55618.23 ▼13.4852.30 ▲0.17
Media Library /wp-admin/upload.php1,392 ▲14.25 ▲0.0099.45 ▲0.7541.50 ▼2.14
UltimateSMSapi feedback form /wp-admin/options-general.php?page=ultimatesmsapi9212.0624.6038.01

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however 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
Please fix the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ultimate-sms-feedback-form/ultimatesmsapi_import_admin.php:81
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/ultimate-sms-feedback-form/ultimatesmsapi.php:102

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/options-general.php?page=ultimatesmsapi
    • > Network (severe)
    http://ultimatesmsapi.tk/mainlogo.png - Failed to load resource: net::ERR_NAME_NOT_RESOLVED

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: sms gateway, sms contact, sms api, free sms api, sms

ultimate-sms-feedback-form/ultimatesmsapi.php 92% from 13 tests

The primary PHP file in "Ultimatesmsapi SMS PLugin" version 1.1.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("ultimate-sms-feedback-form.php" instead of "ultimatesmsapi.php")

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

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.PNG37.24KB13.96KB▼ 62.52%