90% twisms

Code Review | TwiSMS

WordPress plugin TwiSMS scored90%from 54 tests.

About plugin

  • Plugin page: twisms
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.4
  • WordPress version: 6.3.1
  • First release: Apr 26, 2020
  • Latest release: Apr 26, 2020
  • Number of updates: 4
  • Update frequency: every 2.0 days
  • Top authors: plainplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /438 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.21ms] Passed 4 tests

A check of server-side resources used by TwiSMS
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.81 ▼3.18
Dashboard /wp-admin3.34 ▲0.0346.76 ▼0.65
Posts /wp-admin/edit.php3.39 ▲0.0347.79 ▼5.47
Add New Post /wp-admin/post-new.php5.92 ▲0.0390.85 ▼11.52
Media Library /wp-admin/upload.php3.26 ▲0.0335.04 ▲1.99
TwiSMS /wp-admin/admin.php?page=twi-sms3.2330.58
Settings /wp-admin/admin.php?page=twi-sms-settings3.2330.78

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

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

Browser metrics Passed 4 tests

TwiSMS: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲9214.47 ▼0.131.80 ▼0.4338.99 ▼5.97
Dashboard /wp-admin2,233 ▲484.86 ▼1.04109.21 ▲11.1037.86 ▼7.10
Posts /wp-admin/edit.php2,116 ▲272.05 ▼0.0139.27 ▼2.2435.36 ▼0.31
Add New Post /wp-admin/post-new.php1,555 ▲1323.32 ▲5.32664.79 ▲38.8963.99 ▲14.51
Media Library /wp-admin/upload.php1,415 ▲274.25 ▲0.0496.13 ▼6.9842.77 ▼0.40
TwiSMS /wp-admin/admin.php?page=twi-sms8132.0623.0920.71
Settings /wp-admin/admin.php?page=twi-sms-settings8712.0326.6423.40

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
5 plugin tags: twilio, text, integration, message, sms

twisms/twi-sms.php 92% from 13 tests

The main PHP script in "TwiSMS" version 1.0.1 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("twisms.php" instead of "twi-sms.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected227 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP27726227

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods111.11%
▷ Public methods111.11%
▷ Protected methods00.00%
▷ Private methods888.89%
Functions5
▷ Named functions00.00%
▷ Anonymous functions5100.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
PNG images were not found in this plugin