89% callback-tracker-intellectual-click-to-call-widget

Code Review | Callback Tracker - Click to call widget offering callbacks, live chats, email, and SMS messaging for streamlined customer interactions

WordPress plugin Callback Tracker - Click to call widget offering callbacks, live chats, email, and SMS messaging for streamlined customer interactions scored89%from 54 tests.

About plugin

  • Plugin page: callback-tracker-...
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.8
  • WordPress version: 6.3.1
  • First release: Feb 15, 2017
  • Latest release: Aug 19, 2021
  • Number of updates: 16
  • Update frequency: every 111.1 days
  • Top authors: callbacktracker (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /4,061 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▲1.15ms] Passed 4 tests

Analyzing server-side resources used by Callback Tracker - Click to call widget offering callbacks, live chats, email, and SMS messaging for streamlined customer interactions
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.59 ▲1.52
Dashboard /wp-admin3.32 ▲0.0245.16 ▲1.33
Posts /wp-admin/edit.php3.37 ▲0.0248.19 ▲5.08
Add New Post /wp-admin/post-new.php5.90 ▲0.0289.93 ▼3.34
Media Library /wp-admin/upload.php3.24 ▲0.0140.09 ▲7.42

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Callback Tracker - Click to call widget offering callbacks, live chats, email, and SMS messaging for streamlined customer interactions
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲9913.32 ▼0.941.82 ▲0.2345.15 ▲8.12
Dashboard /wp-admin2,240 ▲514.88 ▼0.06104.00 ▼40.3883.94 ▲40.92
Posts /wp-admin/edit.php2,122 ▲302.03 ▼0.0241.32 ▼0.5738.32 ▲2.44
Add New Post /wp-admin/post-new.php1,699 ▲17922.28 ▼0.68715.46 ▲106.6162.19 ▲8.14
Media Library /wp-admin/upload.php1,416 ▲254.14 ▼0.18106.29 ▲8.9849.24 ▲6.02

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

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
These attributes need your attention:
  • Tags: There are too many tags (15 tag instead of maximum 10)
The official readme.txt is a good inspiration

callback-tracker-intellectual-click-to-call-widget/callbacktracker.php 92% from 13 tests

Analyzing the main PHP file in "Callback Tracker - Click to call widget offering callbacks, live chats, email, and SMS messaging for streamlined customer interactions" version 1.2.0
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("callback-tracker-intellectual-click-to-call-widget.php" instead of "callbacktracker.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected280 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP45536240
CSS461039
JavaScript1011

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity6.50
▷ Minimum class complexity1.00
▷ Maximum class complexity22.00
Average method complexity2.57
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods1392.86%
▷ Protected methods17.14%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.97MB with 0.70MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/logo-cbt-16x16.png1.35KB0.30KB▼ 77.51%
screenshot-3.png495.36KB147.99KB▼ 70.12%
screenshot-1.png495.36KB147.99KB▼ 70.12%