79% joy-of-text

Code Review | Joy Of Text Lite - SMS messaging for Wordpress.

WordPress plugin Joy Of Text Lite - SMS messaging for Wordpress. scored79%from 54 tests.

About plugin

  • Plugin page: joy-of-text
  • Plugin version: 2.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Dec 29, 2014
  • Latest release: Sep 21, 2023
  • Number of updates: 141
  • Update frequency: every 22.6 days
  • Top authors: wilsos6 (99.29%)ultilmatewptech (1.42%)

Code review

54 tests

User reviews

24 reviews

Install metrics

700+ active /29,096 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
Installer ran successfully

Server metrics [RAM: ▲0.85MB] [CPU: ▲0.35ms] Passed 4 tests

A check of server-side resources used by Joy Of Text Lite - SMS messaging for Wordpress.
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.48 ▲1.0246.84 ▲8.26
Dashboard /wp-admin4.18 ▲0.8850.68 ▼1.88
Posts /wp-admin/edit.php4.23 ▲0.8749.91 ▲4.60
Add New Post /wp-admin/post-new.php6.72 ▲0.8383.62 ▼9.38
Media Library /wp-admin/upload.php4.04 ▲0.8140.57 ▲8.05

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 72 new files
Database: 7 new tables, 7 new options
New tables
wp_jot_groupmemxref
wp_jot_groupmembers
wp_jot_groupinvites
wp_jot_groupmeta
wp_jot_groups
wp_jot_messages
wp_jot_messagequeue
New WordPress options
jot-plugin-version
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Joy Of Text Lite - SMS messaging for Wordpress.: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,942 ▲18114.18 ▼0.158.90 ▲7.2841.29 ▼0.89
Dashboard /wp-admin2,234 ▲545.04 ▼0.5786.43 ▼2.0138.95 ▼3.15
Posts /wp-admin/edit.php2,148 ▲482.35 ▲0.3536.55 ▲1.9532.53 ▼5.20
Add New Post /wp-admin/post-new.php1,561 ▲2422.82 ▲4.61581.42 ▼52.5958.04 ▼11.87
Media Library /wp-admin/upload.php1,448 ▲544.78 ▲0.62106.24 ▲11.3850.36 ▲5.02

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie tables were found after uninstall: 7 tables
    • wp_jot_groupmemxref
    • wp_jot_groups
    • wp_jot_messagequeue
    • wp_jot_groupinvites
    • wp_jot_groupmembers
    • wp_jot_groupmeta
    • wp_jot_messages
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • jot-plugin-version
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% 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:
  • Tags: Please delete some tags, you are using 15 tag instead of maximum 10
Please take inspiration from this readme.txt

joy-of-text/joy-of-text.php 92% from 13 tests

This is the main PHP file of "Joy Of Text Lite - SMS messaging for Wordpress." version 2.3.1, 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:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
Success! There were no dangerous files found in this plugin6,755 lines of code in 44 files:
LanguageFilesBlank linesComment linesLines of code
PHP71,0686944,122
JavaScript293532691,187
CSS51323301,005
PO File2196232439
INI1202

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity63.71
▷ Minimum class complexity15.00
▷ Maximum class complexity134.00
Average method complexity4.18
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes7100.00%
Methods138
▷ Static methods75.07%
▷ Public methods12489.86%
▷ Protected methods85.80%
▷ Private methods64.35%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
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
18 PNG files occupy 0.16MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/jotpro.png17.58KB7.17KB▼ 59.20%
images/jotnotify.png14.46KB6.27KB▼ 56.62%
images/jotbp.png18.14KB7.68KB▼ 57.64%
images/Help.png0.80KB0.99KB0.00%
images/extensions/schedmgr.png49.54KB31.11KB▼ 37.19%