73% texteller

Code Review | Texteller

WordPress plugin Texteller scored73%from 54 tests.

About plugin

  • Plugin page: texteller
  • Plugin version: 1.3.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.0
  • WordPress version: 6.3.1
  • First release: May 1, 2020
  • Latest release: Aug 20, 2022
  • Number of updates: 24
  • Update frequency: every 35.0 days
  • Top authors: yashar_hv (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

60+ active /3,364 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲1.51MB] [CPU: ▲5.33ms] Passed 4 tests

This is a short check of server-side resources used by Texteller
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.84 ▲1.3850.94 ▲3.77
Dashboard /wp-admin4.89 ▲1.5962.27 ▲8.34
Posts /wp-admin/edit.php4.94 ▲1.5962.71 ▲13.81
Add New Post /wp-admin/post-new.php7.44 ▲1.5598.77 ▼4.61
Media Library /wp-admin/upload.php4.75 ▲1.5255.12 ▲16.80
Member Groups /wp-admin/edit-tags.php?taxonomy=member_group4.7546.78
Send Message /wp-admin/admin.php?page=texteller4.8844.12
Messages /wp-admin/admin.php?page=tlr-messages5.6358.10
Members /wp-admin/admin.php?page=tlr-members5.1755.04
Tools /wp-admin/admin.php?page=tlr-tools4.8248.72
Add new Member /wp-admin/admin.php?page=tlr_edit_member5.1053.27
Options /wp-admin/admin.php?page=tlr-options5.3353.65

Server storage [IO: ▲29.17MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
It is recommended to fix the following issues
  • Total filesystem usage should be limited to 25MB (currently using 29.17MB)
Filesystem: 3,955 new files
Database: 2 new tables, 9 new options
New tables
wp_tlr_members
wp_tlr_messages
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
texteller_db_version
texteller_version
theysaidso_admin_options
widget_tlr_newsletter_form
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Texteller: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,983 ▲19714.29 ▼0.272.08 ▼0.5039.63 ▼14.19
Dashboard /wp-admin2,318 ▲1415.57 ▼0.0689.25 ▼8.5775.94 ▲37.17
Posts /wp-admin/edit.php2,238 ▲1342.00 ▲0.0336.65 ▼2.8232.50 ▼0.63
Add New Post /wp-admin/post-new.php1,592 ▲6423.15 ▼0.01680.16 ▲25.5947.48 ▼6.96
Media Library /wp-admin/upload.php1,542 ▲1454.24 ▲0.03105.23 ▲4.8170.16 ▲27.50
Member Groups /wp-admin/edit-tags.php?taxonomy=member_group1,4262.3029.8831.31
Send Message /wp-admin/admin.php?page=texteller3,3303.4958.9333.47
Messages /wp-admin/admin.php?page=tlr-messages1,4692.1739.3330.23
Members /wp-admin/admin.php?page=tlr-members1,3422.3837.1232.42
Tools /wp-admin/admin.php?page=tlr-tools1,1322.1633.3532.42
Add new Member /wp-admin/admin.php?page=tlr_edit_member3,1183.7381.0866.89
Options /wp-admin/admin.php?page=tlr-options1,3622.4653.24114.83

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie tables were found after uninstall: 2 tables
    • wp_tlr_messages
    • wp_tlr_members
  • Zombie WordPress options detected upon uninstall: 9 options
    • widget_theysaidso_widget
    • texteller_db_version
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_tlr_newsletter_form
    • texteller_version
    • db_upgraded

Smoke tests 75% 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)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 2174× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\Page' not found in wp-content/plugins/texteller/vendor/twilio/sdk/src/Twilio/Rest/Conversations/V1/Service/Conversation/WebhookPage.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\ListResource' not found in wp-content/plugins/texteller/vendor/twilio/sdk/src/Twilio/Rest/Serverless/V1/Service/Environment/LogList.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\Options' not found in wp-content/plugins/texteller/vendor/twilio/sdk/src/Twilio/Rest/Conversations/V1/CredentialOptions.php:57
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\InstanceContext' not found in wp-content/plugins/texteller/vendor/twilio/sdk/src/Twilio/Rest/Messaging/V1/Service/ShortCodeContext.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\Page' not found in wp-content/plugins/texteller/vendor/twilio/sdk/src/Twilio/Rest/Api/V2010/Account/NewSigningKeyPage.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\InstanceContext' not found in wp-content/plugins/texteller/vendor/twilio/sdk/src/Twilio/Rest/Preview/DeployedDevices/Fleet/KeyContext.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\InstanceResource' not found in wp-content/plugins/texteller/vendor/twilio/sdk/src/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCalls/AuthCallsCredentialListMappingInstance.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\Page' not found in wp-content/plugins/texteller/vendor/twilio/sdk/src/Twilio/Rest/Conversations/V1/AddressConfigurationPage.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\Page' not found in wp-content/plugins/texteller/vendor/twilio/sdk/src/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeRegistrationsPage.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\InstanceResource' not found in wp-content/plugins/texteller/vendor/twilio/sdk/src/Twilio/Rest/IpMessaging/V1/Service/Channel/InviteInstance.php:30

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
The official readme.txt is a good inspiration

texteller/texteller.php 92% from 13 tests

The principal PHP file in "Texteller" v. 1.3.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 142 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected724,861 lines of code in 3,763 files:
LanguageFilesBlank linesComment linesLines of code
PHP3,65536,612145,311716,695
JavaScript753619434,584
CSS11237492,243
JSON610582
Markdown71530392
YAML4192205
SVG21453110
XML20042
Dockerfile1308

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity3.36
▷ Minimum class complexity1.00
▷ Maximum class complexity368.00
Average method complexity1.41
▷ Minimum method complexity1.00
▷ Maximum method complexity77.00
Code structure
Namespaces243
Interfaces10
Traits3
Classes2,832
▷ Abstract classes31511.12%
▷ Concrete classes2,51788.88%
▷ Final classes150.60%
Methods16,387
▷ Static methods1,0266.26%
▷ Public methods14,58789.02%
▷ Protected methods1,64510.04%
▷ Private methods1550.95%
Functions254
▷ Named functions11344.49%
▷ Anonymous functions14155.51%
Constants159
▷ Global constants1911.95%
▷ Class constants14088.05%
▷ Public constants13999.29%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
15 PNG files occupy 0.27MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/logo2.png4.38KB2.34KB▼ 46.54%
assets/images/tlr_user_groups_hover.png1.57KB0.93KB▼ 40.75%
assets/images/tlr_email.png0.53KB0.80KB0.00%
assets/images/tlr_member.png0.71KB0.80KB0.00%
assets/images/tlr_member_group.png0.72KB0.94KB0.00%