84% free-click-to-chat-button-by-timelinesai

Code Review | Free Click To Chat Button by TimelinesAI

WordPress plugin Free Click To Chat Button by TimelinesAI scored 84% from 54 tests.

About plugin

  • Plugin page: free-click-to-cha...
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.8
  • WordPress version: 6.3.1
  • First release: Oct 8, 2021
  • Latest release: May 9, 2022
  • Number of updates: 10
  • Update frequency: every 21.3 days
  • Top authors: timelinesai (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 1,606 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼12.39ms] Passed 4 tests

This is a short check of server-side resources used by Free Click To Chat Button by TimelinesAI
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0336.49 ▼6.35
Dashboard /wp-admin3.44 ▲0.1444.68 ▼5.06
Posts /wp-admin/edit.php3.49 ▲0.1449.21 ▲1.46
Add New Post /wp-admin/post-new.php5.98 ▲0.0995.75 ▼39.59
Media Library /wp-admin/upload.php3.30 ▲0.0736.27 ▲2.14
Free Click To Chat Button By TimelinesAI Settings /wp-admin/plugins.php?page=free-click-to-chat-button-by-timelinesai3.3136.89

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 525 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Free Click To Chat Button by TimelinesAI
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,905 ▲17014.02 ▼0.365.23 ▲3.4036.54 ▼10.86
Dashboard /wp-admin2,212 ▲215.40 ▲0.53113.03 ▲13.7338.50 ▼0.33
Posts /wp-admin/edit.php2,101 ▲122.55 ▲0.5646.71 ▲8.7834.89 ▼0.31
Add New Post /wp-admin/post-new.php1,531 ▼318.70 ▼4.39621.22 ▼52.7435.25 ▼19.82
Media Library /wp-admin/upload.php1,391 ▲64.64 ▲0.45105.99 ▲5.9743.06 ▼3.28
Free Click To Chat Button By TimelinesAI Settings /wp-admin/plugins.php?page=free-click-to-chat-button-by-timelinesai1,3173.7755.9772.12

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% 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
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/free-click-to-chat-button-by-timelinesai/public/partials/free-click-to-chat-button-by-timelinesai-public-display.php
    • > /wp-content/plugins/free-click-to-chat-button-by-timelinesai/admin/partials/free-click-to-chat-button-by-timelinesai-admin-display.php

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

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: widget, chat

free-click-to-chat-button-by-timelinesai/free-click-to-chat-button-by-timelinesai.php 92% from 13 tests

The main file in "Free Click To Chat Button by TimelinesAI" v. 1.0.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 291 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin36,022 lines of code in 491 files:
LanguageFilesBlank linesComment linesLines of code
JSON10015,622
JavaScript4211,5878,6598,087
CSS15652965,646
PHP521,8101,6603,995
SVG2002,672

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity16.20
▷ Minimum class complexity1.00
▷ Maximum class complexity208.00
Average method complexity4.37
▷ Minimum method complexity1.00
▷ Maximum method complexity61.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes46
▷ Abstract classes12.17%
▷ Concrete classes4597.83%
▷ Final classes00.00%
Methods204
▷ Static methods3014.71%
▷ Public methods18490.20%
▷ Protected methods157.35%
▷ Private methods52.45%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
17 compressed PNG files occupy 0.09MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/exopite-simple-options/assets/images/ui-bg_flat_0_aaaaaa_40x100.png0.18KB0.08KB▼ 51.67%
admin/exopite-simple-options/assets/images/ui-icons_bf3030_256x240.png4.27KB4.11KB▼ 3.78%
admin/exopite-simple-options/assets/images/ui-bg_inset-soft_95_fef1ec_1x100.png0.12KB0.16KB0.00%
admin/exopite-simple-options/assets/chosen-sprite.png0.53KB0.88KB0.00%
admin/exopite-simple-options/assets/images/ui-bg_glass_75_dadada_1x400.png0.11KB0.16KB0.00%