78% subitosms

Code Review | SubitoSMS

WordPress plugin SubitoSMS scored78%from 54 tests.

About plugin

  • Plugin page: subitosms
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-4.1.1
  • WordPress version: 6.3.1
  • First release: Dec 1, 2013
  • Latest release: Apr 21, 2015
  • Number of updates: 37
  • Update frequency: every 13.7 days
  • Top authors: subitosms (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,418 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▼7.13ms] Passed 4 tests

A check of server-side resources used by SubitoSMS
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1538.28 ▼1.28
Dashboard /wp-admin3.46 ▲0.1147.21 ▼12.99
Posts /wp-admin/edit.php3.57 ▲0.2151.57 ▲0.97
Add New Post /wp-admin/post-new.php6.04 ▲0.1583.18 ▼15.23
Media Library /wp-admin/upload.php3.38 ▲0.1536.30 ▲4.18
Send SMS /wp-admin/admin.php?page=subitosms-admin-menu3.3230.17
Settings /wp-admin/admin.php?page=subitosms-admin-settings3.3230.40

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for SubitoSMS
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲6213.35 ▼1.031.59 ▼0.1540.57 ▼1.36
Dashboard /wp-admin2,239 ▲544.88 ▼0.9898.78 ▼8.0880.40 ▲34.22
Posts /wp-admin/edit.php2,125 ▲362.04 ▲0.0141.06 ▲4.3135.64 ▲1.43
Add New Post /wp-admin/post-new.php1,562 ▲2918.26 ▼2.79687.46 ▲105.4562.96 ▲11.24
Media Library /wp-admin/upload.php1,424 ▲334.14 ▼0.0493.55 ▼5.4073.21 ▲30.10
Send SMS /wp-admin/admin.php?page=subitosms-admin-menu8102.0633.2526.86
Settings /wp-admin/admin.php?page=subitosms-admin-settings8672.0722.3632.94

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

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=subitosms-admin-settings
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=subitosms-admin-settings
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=subitosms-admin-settings
    • > Notice in wp-content/plugins/subitosms/subitosms.php+392
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/subitosms/subitosms.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Donate link: Please fix this invalid url: ""
Please take inspiration from this readme.txt

subitosms/subitosms.php Passed 13 tests

"SubitoSMS" version 1.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
90 characters long description:
Send SMS messages to all your subscribed users and add mobile number to registration form.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected909 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP112550643
PO File16485180
JavaScript117083
CSS1203

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
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%
Functions26
▷ Named functions26100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon_32x32_send.png0.54KB0.35KB▼ 34.31%
images/icon_16x16.png0.52KB0.50KB▼ 3.02%