78% call-tracker

Code Review | Call Tracker

WordPress plugin Call Tracker scored78%from 54 tests.

About plugin

  • Plugin page: call-tracker
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.5.1
  • WordPress version: 6.3.1
  • First release: Jul 15, 2013
  • Latest release: Oct 10, 2013
  • Number of updates: 12
  • Update frequency: every 7.4 days
  • Top authors: calltrackerhitcrowd (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,676 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼0.69ms] Passed 4 tests

Server-side resources used by Call Tracker
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.31 ▼1.24
Dashboard /wp-admin3.32 ▼0.0362.01 ▲0.22
Posts /wp-admin/edit.php3.37 ▲0.0156.99 ▲9.04
Add New Post /wp-admin/post-new.php5.90 ▲0.0198.39 ▼3.25
Media Library /wp-admin/upload.php3.24 ▲0.0142.56 ▲1.49
Marketing Video /wp-admin/admin.php?page=video3.2130.92
Call Tracker /wp-admin/admin.php?page=ct-menu3.1932.83
Statistics /wp-admin/admin.php?page=statistics3.2131.62
Configure /wp-admin/admin.php?page=help3.2127.10

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Call Tracker
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,914 ▲15713.47 ▼0.887.57 ▲5.3442.39 ▼10.75
Dashboard /wp-admin2,221 ▲415.58 ▼0.07108.39 ▲18.5472.93 ▲33.30
Posts /wp-admin/edit.php2,144 ▲412.00 ▲0.0339.47 ▼2.5334.73 ▼3.37
Add New Post /wp-admin/post-new.php1,561 ▲2222.27 ▲4.19719.32 ▲94.8362.94 ▼18.28
Media Library /wp-admin/upload.php1,438 ▲354.23 ▲0.02128.22 ▲15.9686.40 ▲40.23
Marketing Video /wp-admin/admin.php?page=video1,0343.7047.6251.37
Call Tracker /wp-admin/admin.php?page=ct-menu1,0381.9924.6532.47
Statistics /wp-admin/admin.php?page=statistics8492.0123.2829.67
Configure /wp-admin/admin.php?page=help9182.0121.6726.57

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=ct-menu
    • > Warning in wp-content/plugins/call-tracker/call-tracker-decorator.php+106
    count(): Parameter must be an array or an object that implements Countable

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 trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/call-tracker/call-tracker-functions.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/call-tracker/call-tracker-functions.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected


Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Donate link: Invalid url: ""
  • Screenshots: These screenshots require images: #1 (Management), #2 (Configure), #3 (Analytics)
You can look at the official readme.txt

call-tracker/call-tracker.php 92% from 13 tests

Analyzing the main PHP file in "Call Tracker" version 1.3
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 252 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin590 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity24.50
▷ Minimum class complexity14.00
▷ Maximum class complexity35.00
Average method complexity2.57
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods1033.33%
▷ Public methods2376.67%
▷ Protected methods13.33%
▷ Private methods620.00%
▷ Named functions6100.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
7 PNG files occupy 0.28MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/ct-icon.png0.90KB0.73KB▼ 18.78%
screenshot-3.png12.10KB5.16KB▼ 57.39%
css/images/ct-logo.png1.46KB1.28KB▼ 12.08%
css/images/video-button.png10.33KB5.96KB▼ 42.27%
css/images/hit-crowd-banner.png33.78KB16.15KB▼ 52.20%