83% send-sms-with-46elks-for-contact-form-7

Code Review | Send SMS with 46elks for Contact Form 7

WordPress plugin Send SMS with 46elks for Contact Form 7 scored 83% from 54 tests.

About plugin

  • Plugin page: send-sms-with-46e...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2
  • WordPress version: 6.3.1
  • First release: May 20, 2022
  • Latest release: Apr 29, 2023
  • Number of updates: 7
  • Update frequency: every 50.6 days
  • Top authors: 46elks (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 586 total downloads

Benchmarks

Plugin footprint 82% 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.27MB] [CPU: ▲395.56ms] 75% from 4 tests

This is a short check of server-side resources used by Send SMS with 46elks for Contact Form 7
Please fix the following
  • Extra CPU: The extra CPU usage should be kept under 200.00ms (currently 395.56ms on /wp-admin/upload.php)
PageMemory (MB)CPU Time (ms)
Home /3.79 ▲0.32437.76 ▲400.41
Dashboard /wp-admin3.59 ▲0.28455.08 ▲409.01
Posts /wp-admin/edit.php3.67 ▲0.31457.57 ▲416.63
Add New Post /wp-admin/post-new.php6.15 ▲0.26482.20 ▲390.98
Media Library /wp-admin/upload.php3.48 ▲0.24418.46 ▲381.82

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

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

Browser metrics Passed 4 tests

Send SMS with 46elks for Contact Form 7: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,851 ▲10513.34 ▼1.441.98 ▼0.0345.07 ▼1.30
Dashboard /wp-admin2,270 ▲854.88 ▼0.02134.04 ▲29.7460.82 ▲15.36
Posts /wp-admin/edit.php2,103 ▲142.08 ▲0.0838.79 ▼1.0038.81 ▲3.25
Add New Post /wp-admin/post-new.php1,539 ▲620.91 ▼0.37829.02 ▲39.9271.50 ▼4.65
Media Library /wp-admin/upload.php1,402 ▲204.14 ▼0.10172.07 ▲38.0376.68 ▲17.49

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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 take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/send-sms-with-46elks-for-contact-form-7/wp-sms-46elks.php:60

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% 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
Please fix the following attributes:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === send-sms-with-46elks-for-contact-form-7 === )
You can take inspiration from this readme.txt

send-sms-with-46elks-for-contact-form-7/wp-sms-46elks.php 85% from 13 tests

The entry point to "Send SMS with 46elks for Contact Form 7" version 1.0.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("send-sms-with-46elks-for-contact-form-7.php" instead of "wp-sms-46elks.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin1,491 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP3169791,242
PO File15865162
JavaScript1162972
Markdown17015

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity112.00
▷ Minimum class complexity112.00
▷ Maximum class complexity112.00
Average method complexity3.22
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods50
▷ Static methods00.00%
▷ Public methods50100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
There are no PNG files in this plugin