89% dexatel-for-woocommerce

Code Review | Connect, Communicate, Expand with text messaging through WooCommerce

WordPress plugin Connect, Communicate, Expand with text messaging through WooCommerce scored 89% from 54 tests.

About plugin

  • Plugin page: dexatel-for-wooco...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.5.3
  • WordPress version: 6.3.1
  • First release: Nov 11, 2020
  • Latest release: Dec 8, 2020
  • Number of updates: 11
  • Update frequency: every 2.6 days
  • Top authors: dexatelwp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 431 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

An overview of server-side resources used by Connect, Communicate, Expand with text messaging through WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0453.24 ▲9.86
Dashboard /wp-admin3.35 ▲0.0555.03 ▲2.20
Posts /wp-admin/edit.php3.40 ▲0.0448.41 ▼2.70
Add New Post /wp-admin/post-new.php5.95 ▲0.06120.93 ▼1.47
Media Library /wp-admin/upload.php3.27 ▲0.0460.37 ▲25.04
Quick send /wp-admin/admin.php?page=dexatel-sms-sendsms3.2739.73
Events /wp-admin/admin.php?page=dexatel-sms-events3.3840.10
How to use /wp-admin/admin.php?page=dexatel-sms-howtouse3.2726.42
Home /wp-admin/admin.php?page=dexatel-sms3.2929.17
Settings /wp-admin/admin.php?page=dexatel-sms-settings3.2933.50

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 38 new files
Database: 2 new tables, 7 new options
New tables
wp_dexatel_sms_register
wp_dexatel_sms_settings
New WordPress options
db_upgraded
dexatel_sms_db_version
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Connect, Communicate, Expand with text messaging through WooCommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,871 ▲12514.78 ▲0.512.16 ▲0.3452.74 ▲6.84
Dashboard /wp-admin2,237 ▲525.05 ▲0.18134.75 ▲22.8081.28 ▲41.11
Posts /wp-admin/edit.php2,141 ▲522.30 ▲0.3046.62 ▲3.0735.66 ▼1.27
Add New Post /wp-admin/post-new.php1,585 ▲6523.86 ▲0.75969.40 ▲345.2343.29 ▼21.37
Media Library /wp-admin/upload.php1,431 ▲464.35 ▲0.16125.15 ▲20.2294.80 ▲47.83
Quick send /wp-admin/admin.php?page=dexatel-sms-sendsms8982.0929.1467.83
Events /wp-admin/admin.php?page=dexatel-sms-events1,0171.9834.1854.50
How to use /wp-admin/admin.php?page=dexatel-sms-howtouse9201.8632.2547.46
Home /wp-admin/admin.php?page=dexatel-sms9961.8437.0440.78
Settings /wp-admin/admin.php?page=dexatel-sms-settings9112.0235.9840.11

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 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 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Contributors: Plugin contributors not specified
You can take inspiration from this readme.txt

dexatel-for-woocommerce/dexatel-sms.php 85% from 13 tests

The main PHP file in "Connect, Communicate, Expand with text messaging through WooCommerce" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("dexatel-for-woocommerce.php" instead of "dexatel-sms.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin2,244 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
PHP243575881,864
CSS2527348
JavaScript353632

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.70
Average class complexity35.75
▷ Minimum class complexity1.00
▷ Maximum class complexity147.00
Average method complexity5.63
▷ Minimum method complexity1.00
▷ Maximum method complexity63.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods60
▷ Static methods1728.33%
▷ Public methods5490.00%
▷ Protected methods00.00%
▷ Private methods610.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/favicon-blue.png0.60KB0.59KB▼ 1.47%
admin/images/right-arrow.png0.61KB0.58KB▼ 5.25%