84% wp-formidable-twilio-sms

Code Review | Formidable Twilio SMS

WordPress plugin Formidable Twilio SMS scored 84% from 54 tests.

About plugin

  • Plugin page: wp-formidable-twi...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.1
  • WordPress version: 6.3.1
  • First release: Jan 3, 2017
  • Latest release: Oct 27, 2022
  • Number of updates: 12
  • Update frequency: every 176.6 days
  • Top authors: spectodesign (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 879 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼5.31ms] Passed 4 tests

A check of server-side resources used by Formidable Twilio SMS
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0538.98 ▼1.56
Dashboard /wp-admin3.36 ▲0.0646.66 ▼2.46
Posts /wp-admin/edit.php3.41 ▲0.0645.47 ▼3.05
Add New Post /wp-admin/post-new.php5.94 ▲0.0583.03 ▼14.16
Media Library /wp-admin/upload.php3.28 ▲0.0534.81 ▲1.48
WP Formidable Twilio SMS /wp-admin/options-general.php?page=sms-settings3.2533.26

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Formidable Twilio SMS
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.23 ▼1.041.79 ▲0.1043.58 ▲0.09
Dashboard /wp-admin2,213 ▲224.85 ▼0.02102.83 ▼3.4041.26 ▲0.34
Posts /wp-admin/edit.php2,096 ▲102.05 ▲0.0335.43 ▼3.8731.84 ▼5.37
Add New Post /wp-admin/post-new.php1,537 ▲423.22 ▲0.06675.15 ▼9.8452.30 ▼2.64
Media Library /wp-admin/upload.php1,392 ▲14.25 ▲0.0596.36 ▼7.2140.51 ▼5.77
WP Formidable Twilio SMS /wp-admin/options-general.php?page=sms-settings8752.0323.4827.34

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wp-formidable-twilio-sms/formidable-twilio-sms.php
    • > /wp-content/plugins/wp-formidable-twilio-sms/formidable-twilio-sms-settings.php

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

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: formidable, sms

wp-formidable-twilio-sms/formidable-twilio-sms.php 92% from 13 tests

The entry point to "Formidable Twilio SMS" version 1.0.2 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-formidable-twilio-sms.php" instead of "formidable-twilio-sms.php")

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
Everything looks great! No dangerous files found in this plugin212 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP27737212

PHP code Passed 2 tests

An short overview of 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.14
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%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin