62% conexteo

Code Review | Conexteo - SMS for Woocommerce

WordPress plugin Conexteo - SMS for Woocommerce scored62%from 54 tests.

About plugin

  • Plugin page: conexteo
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2
  • WordPress version: 6.3.1
  • First release: Jul 7, 2023
  • Latest release: Jul 19, 2023
  • Number of updates: 15
  • Update frequency: every 5.0 days
  • Top authors: conexteo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /100 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.19MB] [CPU: ▼0.82ms] Passed 4 tests

This is a short check of server-side resources used by Conexteo - SMS for Woocommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1838.44 ▼3.76
Dashboard /wp-admin3.49 ▲0.1846.83 ▲0.18
Posts /wp-admin/edit.php3.60 ▲0.2450.38 ▲2.72
Add New Post /wp-admin/post-new.php6.09 ▲0.2089.56 ▼2.41
Media Library /wp-admin/upload.php3.41 ▲0.1837.71 ▲8.49
Nouveau modèle /wp-admin/admin.php?page=conexteo-new-model3.4232.64
Configuration de Conexteo /wp-admin/admin.php?page=conexteo-settings3.3928.26
Modèles de SMS /wp-admin/admin.php?page=conexteo-models3.3932.67

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 25 new files
Database: 3 new tables, 7 new options
New tables
wp_conexteo_models
wp_conexteo_contacts
wp_conexteo_cart_sms
New WordPress options
widget_recent-comments
conexteo_cronkey_setting
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Conexteo - SMS for Woocommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,845 ▲5914.39 ▲0.041.96 ▲0.1144.59 ▼0.40
Dashboard /wp-admin2,226 ▲495.67 ▲0.0491.36 ▼4.0441.01 ▼2.48
Posts /wp-admin/edit.php2,134 ▲312.02 ▼0.0141.01 ▲0.3835.50 ▼2.16
Add New Post /wp-admin/post-new.php1,552 ▲2623.15 ▲0.11657.27 ▲49.8151.97 ▲1.38
Media Library /wp-admin/upload.php1,431 ▲374.27 ▲0.1599.59 ▼4.5241.97 ▼4.34
Nouveau modèle /wp-admin/admin.php?page=conexteo-new-model1,0142.0224.8428.82
Configuration de Conexteo /wp-admin/admin.php?page=conexteo-settings9631.8223.6031.14
Modèles de SMS /wp-admin/admin.php?page=conexteo-models8522.0225.1424.42

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The plugin did not uninstall successfully, leaving 3 tables in the database
    • wp_conexteo_cart_sms
    • wp_conexteo_contacts
    • wp_conexteo_models
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • conexteo_cronkey_setting
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/admin.php?page=conexteo-new-model
    • > Notice in wp-content/plugins/conexteo/admin/partials/conexteo-admin-new-model-display.php+6
    Undefined variable: model
    • > GET request to /wp-admin/admin.php?page=conexteo-settings
    • > Notice in wp-content/plugins/conexteo/admin/partials/conexteo-admin-settings-display.php+86
    Undefined variable: lists
    • > GET request to /wp-admin/admin.php?page=conexteo-settings
    • > Warning in wp-content/plugins/conexteo/admin/partials/conexteo-admin-settings-display.php+86
    Invalid argument supplied for foreach()
    • > GET request to /wp-admin/admin.php?page=conexteo-settings
    • > Notice in wp-content/plugins/conexteo/admin/partials/conexteo-admin-settings-display.php+99
    Undefined variable: credits

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/conexteo/admin/partials/conexteo-admin-models-display.php
  • 12× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/conexteo/cron_sync.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/conexteo/admin/partials/conexteo-admin-new-model-display.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/conexteo/admin/partials/conexteo-admin-settings-display.php:94
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/conexteo/admin/partials/conexteo-admin-settings-display.php on line 86
    • > PHP Notice
      Undefined variable: models in wp-content/plugins/conexteo/admin/partials/conexteo-admin-models-display.php on line 57
    • > PHP Notice
      Undefined variable: lists in wp-content/plugins/conexteo/admin/partials/conexteo-admin-settings-display.php on line 86
    • > PHP Warning
      count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/conexteo/admin/partials/conexteo-admin-models-display.php on line 101
    • > PHP Notice
      Undefined variable: connection_ok in wp-content/plugins/conexteo/admin/partials/conexteo-admin-settings-display.php on line 20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/conexteo/admin/class-conexteo-admin.php:24
    • > PHP Notice
      Undefined variable: models in wp-content/plugins/conexteo/admin/partials/conexteo-admin-models-display.php on line 101

User-side errors Passed 1 test

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

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
4 plugin tags: marketing automation, woocommerce, sms, sync

conexteo/conexteo.php 92% from 13 tests

This is the main PHP file of "Conexteo - SMS for Woocommerce" version 1.0.0, 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:
  • Description: Keep the plugin description shorter than 140 characters (currently 207 characters long)

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
Good job! No executable or dangerous file extensions detected1,738 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP183605751,502
JavaScript1376205
CSS18431

PHP code Passed 2 tests

A short review 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.32
Average class complexity8.78
▷ Minimum class complexity1.00
▷ Maximum class complexity43.00
Average method complexity2.13
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods62
▷ Static methods1625.81%
▷ Public methods5893.55%
▷ Protected methods00.00%
▷ Private methods46.45%
Functions19
▷ Named functions1894.74%
▷ Anonymous functions15.26%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin