78% experttexting-official

Code Review | ExpertTexting Official Wordpress Plugin

WordPress plugin ExpertTexting Official Wordpress Plugin scored 78% from 54 tests.

About plugin

  • Plugin page: experttexting-off...
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.8.1
  • WordPress version: 5.8.1
  • First release: Sep 20, 2021
  • Latest release: Nov 8, 2021
  • Number of updates: 5
  • Update frequency: every 10.4 days
  • Top authors: experttextingintegrations (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 115 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲1.48MB] [CPU: ▼128.88ms] Passed 4 tests

A check of server-side resources used by ExpertTexting Official Wordpress Plugin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.20 ▲1.3649.45 ▲12.19
Dashboard /wp-admin4.56 ▲1.5061.48 ▲21.11
Posts /wp-admin/edit.php4.65 ▲1.5459.60 ▲13.14
Add New Post /wp-admin/post-new.php7.13 ▲1.70100.48 ▼557.74
Media Library /wp-admin/upload.php4.51 ▲1.5149.40 ▲16.90
Dashboard /wp-admin/admin.php?page=et_menu4.4955.12
Welcome /wp-admin/index.php?page=et-plugin-welcome4.4445.64
Integrations /wp-admin/admin.php?page=et_integration_settings4.4443.43
Settings /wp-admin/admin.php?page=et_settings4.5044.96
Subscribers /wp-admin/admin.php?page=et_subscribers4.6450.77
Groups /wp-admin/admin.php?page=et_subscribers_group4.5447.03
Outbox /wp-admin/admin.php?page=et_subscribers_outbox4.5442.41
Send SMS /wp-admin/admin.php?page=et_send_sms4.4454.59

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 85 new files
Database: 3 new tables, 8 new options
New tables
wp_et_subscribes
wp_et_subscribes_group
wp_et_send
New WordPress options
et_api_set
et_balance
et_balance_datetime
etApiAuthHidden
et_send_sms
et_plugin_db_version
etApiAuth
et_menu

Browser metrics Passed 4 tests

An overview of browser requirements for ExpertTexting Official Wordpress Plugin
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,005 ▲40916.60 ▲0.6012.19 ▲1.5745.59 ▼8.68
Dashboard /wp-admin3,163 ▲2296.62 ▲0.66177.87 ▲30.64109.66 ▼8.46
Posts /wp-admin/edit.php2,874 ▲1352.95 ▲0.2378.65 ▲14.7592.41 ▲6.32
Add New Post /wp-admin/post-new.php1,686 ▲321.41 ▲2.74289.67 ▼96.85111.06 ▲9.52
Media Library /wp-admin/upload.php1,864 ▲575.39 ▲0.35164.91 ▲5.17110.44 ▼5.42
Dashboard /wp-admin/admin.php?page=et_menu1,5482.5980.70134.30
Welcome /wp-admin/index.php?page=et-plugin-welcome2,1529.61264.64107.14
Integrations /wp-admin/admin.php?page=et_integration_settings1,2822.5964.89122.32
Settings /wp-admin/admin.php?page=et_settings1,3332.4672.24125.43
Subscribers /wp-admin/admin.php?page=et_subscribers1,9352.6867.51110.63
Groups /wp-admin/admin.php?page=et_subscribers_group1,5072.6965.12103.71
Outbox /wp-admin/admin.php?page=et_subscribers_outbox1,4322.6159.82102.65
Send SMS /wp-admin/admin.php?page=et_send_sms1,6992.9684.30139.27

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The plugin did not uninstall successfully, leaving 3 tables in the database
    • wp_et_subscribes_group
    • wp_et_send
    • wp_et_subscribes

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 0% 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 take a closer look at the following
  • 3× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/experttexting-official/ExptErrorLog/index.php
    • > /wp-content/plugins/experttexting-official/ExptTemplates/et_login_with_phone.php
    • > /wp-content/plugins/experttexting-official/experttextingofficial.php
  • 28× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'ExptTxt\\Expt_Base\\Expt_BaseController' not found in wp-content/plugins/experttexting-official/ExptTxt/Expt_Base/Expt_WidgetController.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/experttexting-official/ExptTemplates/et_subscribers.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'ExptTxt\\Expt_Base\\Expt_BaseController' not found in wp-content/plugins/experttexting-official/ExptTxt/Expt_Base/Expt_Enqueue.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'ExptTxt\\Expt_Base\\Expt_BaseController' not found in wp-content/plugins/experttexting-official/ExptTxt/Expt_Api/Expt_Callbacks/Expt_NewsletterCallbacks.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/experttexting-official/ExptTemplates/et_outbox.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'ExptTxt\\Expt_Base\\Expt_BaseController' not found in wp-content/plugins/experttexting-official/ExptTxt/Expt_GlobalVars.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_current_screen() in wp-content/plugins/experttexting-official/ExptTemplates/et_send_sms.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/experttexting-official/ExptTemplates/et_cf7_form.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'ExptTxt\\Expt_Base\\Expt_BaseController' not found in wp-content/plugins/experttexting-official/ExptTxt/Expt_Base/Expt_ImportExportController.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'ExptTxt\\Expt_Base\\Expt_BaseController' not found in wp-content/plugins/experttexting-official/ExptTxt/Expt_Api/Expt_Callbacks/Expt_AdminCallbacks.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
The official readme.txt might help

experttexting-official/experttextingofficial.php 85% from 13 tests

"ExpertTexting Official Wordpress Plugin" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 192 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("experttexting-official.php" instead of "experttextingofficial.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin24,488 lines of code in 62 files:
LanguageFilesBlank linesComment linesLines of code
CSS51,3885110,686
PHP492,3911,2507,221
JavaScript71,2288216,576
JSON1005

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity31.23
▷ Minimum class complexity1.00
▷ Maximum class complexity114.00
Average method complexity4.27
▷ Minimum method complexity1.00
▷ Maximum method complexity68.00
Code structure
Namespaces8
Interfaces0
Traits0
Classes31
▷ Abstract classes00.00%
▷ Concrete classes31100.00%
▷ Final classes13.23%
Methods282
▷ Static methods5720.21%
▷ Public methods27396.81%
▷ Protected methods00.00%
▷ Private methods93.19%
Functions13
▷ Named functions646.15%
▷ Anonymous functions753.85%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
19 PNG files occupy 0.40MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/logo.png8.03KB4.46KB▼ 44.44%
assets/img/icon_notifications.png2.40KB1.99KB▼ 17.15%
assets/chosen-sprite@2x.png0.72KB0.83KB0.00%
assets/img/et_icon-big.png34.54KB14.87KB▼ 56.95%
assets/img/icon_wc.png5.86KB3.34KB▼ 43.02%