68% experttexting-official

Code Review | ExpertTexting Official Wordpress Plugin

WordPress plugin ExpertTexting Official Wordpress Plugin scored68%from 54 tests.

About plugin

  • Plugin page: experttexting-off...
  • Plugin version: 1.2.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.8.1
  • WordPress version: 6.3.1
  • First release: Sep 20, 2021
  • Latest release: Dec 1, 2021
  • Number of updates: 7
  • Update frequency: every 10.7 days
  • Top authors: experttextingintegrations (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /577 total downloads

Benchmarks

Plugin footprint 65% 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: ▲3.96MB] [CPU: ▲33.39ms] 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 /7.32 ▲3.8677.52 ▲40.82
Dashboard /wp-admin7.28 ▲3.9882.16 ▲36.32
Posts /wp-admin/edit.php7.37 ▲4.0182.33 ▲36.95
Add New Post /wp-admin/post-new.php9.99 ▲4.10115.48 ▲19.45
Media Library /wp-admin/upload.php7.24 ▲4.0081.66 ▲46.70
Dashboard /wp-admin/admin.php?page=et_menu7.2077.66
Settings /wp-admin/admin.php?page=et_settings7.2368.98
Outbox /wp-admin/admin.php?page=et_subscribers_outbox7.2671.12
Subscribers /wp-admin/admin.php?page=et_subscribers7.3575.74
Integrations /wp-admin/admin.php?page=et_integration_settings7.1569.63
Groups /wp-admin/admin.php?page=et_subscribers_group7.2472.21
Send SMS /wp-admin/admin.php?page=et_send_sms7.1475.83
Welcome /wp-admin/index.php?page=et-plugin-welcome7.2586.18
Hooks & Functions (For Developers) /wp-admin/admin.php?page=et_hooks_n_functions7.2086.59

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 90 new files
Database: 3 new tables, 14 new options
New tables
wp_et_subscribes
wp_et_subscribes_group
wp_et_send
New WordPress options
et_plugin_db_version
widget_recent-comments
et_send_sms
et_api_set
et_balance_datetime
db_upgraded
widget_recent-posts
et_balance
can_compress_scripts
etApiAuth
...

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 /3,029 ▲26813.67 ▼0.688.28 ▲6.6837.62 ▼4.01
Dashboard /wp-admin2,329 ▲1525.03 ▼0.6187.10 ▼2.3180.17 ▲42.75
Posts /wp-admin/edit.php2,186 ▲862.42 ▲0.4237.74 ▲4.1236.56 ▼0.79
Add New Post /wp-admin/post-new.php1,670 ▲14222.65 ▼0.72679.83 ▲13.44127.30 ▲67.98
Media Library /wp-admin/upload.php1,486 ▲864.46 ▲0.25101.30 ▼5.8272.54 ▲24.00
Dashboard /wp-admin/admin.php?page=et_menu1,1242.0228.9449.28
Settings /wp-admin/admin.php?page=et_settings1,0212.0726.8943.01
Outbox /wp-admin/admin.php?page=et_subscribers_outbox1,1372.0427.6548.48
Subscribers /wp-admin/admin.php?page=et_subscribers1,5032.4926.9336.61
Integrations /wp-admin/admin.php?page=et_integration_settings9942.0226.3241.43
Groups /wp-admin/admin.php?page=et_subscribers_group1,1642.4829.3236.45
Send SMS /wp-admin/admin.php?page=et_send_sms1,1252.2942.1443.44
Welcome /wp-admin/index.php?page=et-plugin-welcome1,56510.20258.9659.49
Hooks & Functions (For Developers) /wp-admin/admin.php?page=et_hooks_n_functions2,0501.8827.3964.43

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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_subscribes
    • wp_et_send
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

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/experttextingofficial.php
    • > /wp-content/plugins/experttexting-official/ExptErrorLog/index.php
    • > /wp-content/plugins/experttexting-official/ExptTemplates/et_login_with_phone.php
  • 29× 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_Features.php:11
    • > PHP Fatal error
      Uncaught Error: Call to a member function plugin_et_header() on null in wp-content/plugins/experttexting-official/ExptTemplates/et_integration_settings.php:14
    • > PHP Fatal error
      Uncaught Error: Call to a member function plugin_et_header() on null in wp-content/plugins/experttexting-official/ExptTemplates/et_settings.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_Pages/Expt_Dashboard.php:18
    • > PHP Fatal error
      Uncaught Error: Call to a member function plugin_et_header() on null in wp-content/plugins/experttexting-official/ExptTemplates/et_hooks_n_functions.php:8
    • > 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_ApiCallbacks.php:12
    • > 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: Call to undefined function _e() in wp-content/plugins/experttexting-official/ExptTemplates/et_newpost_metabox.php:18
    • > 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

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.2.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 plugin26,464 lines of code in 65 files:
LanguageFilesBlank linesComment linesLines of code
CSS51,3925510,697
PHP502,6941,3918,904
JavaScript81,2318176,605
JSON200258

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.46
Average class complexity37.68
▷ Minimum class complexity1.00
▷ Maximum class complexity183.00
Average method complexity4.72
▷ Minimum method complexity1.00
▷ Maximum method complexity75.00
Code structure
Namespaces8
Interfaces0
Traits0
Classes31
▷ Abstract classes00.00%
▷ Concrete classes31100.00%
▷ Final classes13.23%
Methods294
▷ Static methods5719.39%
▷ Public methods28496.60%
▷ Protected methods00.00%
▷ Private methods103.40%
Functions14
▷ Named functions750.00%
▷ Anonymous functions750.00%
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
21 PNG files occupy 0.41MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/icon_cf7.png5.75KB3.47KB▼ 39.57%
assets/img/icon_api.png5.18KB4.06KB▼ 21.61%
assets/img/et_icon-big.png34.54KB14.87KB▼ 56.95%
assets/img/et_icon.png1.79KB1.62KB▼ 9.08%
assets/img/icon_notifications.png2.40KB1.99KB▼ 17.15%