83% text360-sms

Code Review | TEXT360 SMS

WordPress plugin TEXT360 SMS scored83%from 54 tests.

About plugin

  • Plugin page: text360-sms
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7
  • WordPress version: 6.3.1
  • First release: Mar 20, 2021
  • Latest release: Apr 22, 2021
  • Number of updates: 3
  • Update frequency: every 12.0 days
  • Top authors: text360 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /388 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

Analyzing server-side resources used by TEXT360 SMS
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.76 ▼3.51
Dashboard /wp-admin3.31 ▲0.0149.78 ▼1.55
Posts /wp-admin/edit.php3.37 ▲0.0149.32 ▼1.87
Add New Post /wp-admin/post-new.php5.90 ▲0.0195.77 ▼3.53
Media Library /wp-admin/upload.php3.24 ▲0.0137.06 ▼0.92
TEXT360 SMS /wp-admin/admin.php?page=text360-sms-save-api3.2032.20

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

TEXT360 SMS: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.75 ▲0.371.76 ▲0.0247.57 ▲7.48
Dashboard /wp-admin2,198 ▲215.60 ▲0.02106.51 ▲14.9742.95 ▼1.70
Posts /wp-admin/edit.php2,103 ▲32.03 ▼0.0041.43 ▲4.5936.81 ▼4.92
Add New Post /wp-admin/post-new.php1,526 ▼1117.56 ▼5.67655.93 ▼24.1859.70 ▲1.08
Media Library /wp-admin/upload.php1,397 ▼64.21 ▼0.02103.80 ▲1.5643.88 ▼3.42
TEXT360 SMS /wp-admin/admin.php?page=text360-sms-save-api8652.1725.1528.31

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/text360-sms/text360-sms-woocommerce.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Screenshots: Screenshot #1 (assets/img/screenshot.png) image missing
You can take inspiration from this readme.txt

text360-sms/text360-sms-woocommerce.php 85% from 13 tests

This is the main PHP file of "TEXT360 SMS" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("text360-sms.php" instead of "text360-sms-woocommerce.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 224 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected147 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP91813147

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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.09MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/text360-logo.png7.76KB2.88KB▼ 62.94%
assets/img/screenshot.png87.04KB22.89KB▼ 73.70%