78% sendmsg-elementor-addon

Code Review | Sendmsg Elementor Addon

WordPress plugin Sendmsg Elementor Addon scored78%from 54 tests.

About plugin

  • Plugin page: sendmsg-elementor...
  • Plugin version: 1.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-5.8.2
  • WordPress version: 6.3.1
  • First release: Jul 12, 2021
  • Latest release: Nov 25, 2021
  • Number of updates: 7
  • Update frequency: every 19.7 days
  • Top authors: comstarsystems (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /669 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼10.60ms] Passed 4 tests

An overview of server-side resources used by Sendmsg Elementor Addon
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0736.27 ▼4.75
Dashboard /wp-admin3.38 ▲0.0746.36 ▼3.86
Posts /wp-admin/edit.php3.49 ▲0.1348.74 ▲2.18
Add New Post /wp-admin/post-new.php5.96 ▲0.0783.99 ▼23.10
Media Library /wp-admin/upload.php3.30 ▲0.0733.12 ▼10.67
Sendmsg API /wp-admin/options-general.php?page=sendmsg-api3.2531.09

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Sendmsg Elementor Addon
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.25 ▼1.132.14 ▲0.4344.10 ▼4.88
Dashboard /wp-admin2,228 ▲465.84 ▲0.0298.82 ▼5.6741.49 ▲3.26
Posts /wp-admin/edit.php2,110 ▲212.06 ▼0.0740.64 ▲0.9136.29 ▲1.98
Add New Post /wp-admin/post-new.php1,535 ▲2123.15 ▲5.31604.61 ▼54.7854.67 ▼16.14
Media Library /wp-admin/upload.php1,410 ▲224.24 ▲0.0199.52 ▼3.4843.92 ▲0.50
Sendmsg API /wp-admin/options-general.php?page=sendmsg-api8542.2026.1327.56

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, 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 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=sendmsg-api
    • > Notice in wp-content/plugins/sendmsg-elementor-addon/inc/settings.php+26
    Trying to access array offset on value of type bool

SRP 50% from 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
Almost there! Just fix the following items
  • 9× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/sendmsg-elementor-addon/inc/settings.php:148
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sendmsg-elementor-addon/inc/main.php:87
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Base_Data_Control' not found in wp-content/plugins/sendmsg-elementor-addon/inc/custom-select.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ElementorPro\\Modules\\Forms\\Classes\\Action_Base' not found in wp-content/plugins/sendmsg-elementor-addon/inc/class-fields.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sendmsg-elementor-addon/inc/ajax.php:39
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sendmsg-elementor-addon/inc/main.php:87
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sendmsg-elementor-addon/inc/scripts.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sendmsg-elementor-addon/inc/custom-control.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sendmsg-elementor-addon/inc/misc.php:208

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: sendmsg, elementor addon, elementor

sendmsg-elementor-addon/sendmsgs.php 85% from 13 tests

The primary PHP file in "Sendmsg Elementor Addon" version 1.2 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("sendmsg-elementor-addon.php" instead of "sendmsgs.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin873 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP9217235670
CSS1183123
JavaScript225280

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity7.20
▷ Minimum class complexity1.00
▷ Maximum class complexity15.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes120.00%
Methods31
▷ Static methods39.68%
▷ Public methods31100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions981.82%
▷ Anonymous functions218.18%
Constants4
▷ Global constants125.00%
▷ Class constants375.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected