79% call-tracking-metrics

Code Review | CallTrackingMetrics

WordPress plugin CallTrackingMetrics scored79%from 54 tests.

About plugin

  • Plugin page: call-tracking-met...
  • Plugin version: 1.2.12
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.4.1
  • WordPress version: 6.3.1
  • First release: Mar 23, 2011
  • Latest release: Dec 1, 2023
  • Number of updates: 129
  • Update frequency: every 36.1 days
  • Top authors: taf2 (42.64%)bonzaithepenguin (26.36%)bgraw3 (16.28%)mmillsctm (13.95%)rajctm (2.33%)

Code review

54 tests

User reviews

3 reviews

Install metrics

5,000+ active /70,427 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.17MB] [CPU: ▲4.14ms] Passed 4 tests

Server-side resources used by CallTrackingMetrics
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1751.30 ▲12.08
Dashboard /wp-admin3.47 ▲0.1754.01 ▲7.41
Posts /wp-admin/edit.php3.58 ▲0.2353.14 ▲3.82
Add New Post /wp-admin/post-new.php6.05 ▲0.1695.08 ▼1.62
Media Library /wp-admin/upload.php3.39 ▲0.1639.09 ▲6.95
CallTrackingMetrics /wp-admin/options-general.php?page=call-tracking-metrics3.3637.92

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for CallTrackingMetrics
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲7414.43 ▼0.281.74 ▼0.0443.45 ▼3.86
Dashboard /wp-admin2,238 ▲684.91 ▼0.72100.27 ▼1.5643.09 ▲0.31
Posts /wp-admin/edit.php2,104 ▲41.94 ▼0.0141.04 ▼3.1934.94 ▼1.11
Add New Post /wp-admin/post-new.php1,528 ▲223.37 ▲0.29649.28 ▲7.8752.45 ▼10.18
Media Library /wp-admin/upload.php1,404 ▲104.19 ▲0.0497.11 ▲0.7543.87 ▲2.48
CallTrackingMetrics /wp-admin/options-general.php?page=call-tracking-metrics1,0682.0629.9345.24

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% 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 | 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
The following issues need your attention
  • 7× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/call-tracking-metrics/call-tracking-metrics.php:81
    • > PHP Warning
      Use of undefined constant WP_CONTENT_URL - assumed 'WP_CONTENT_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/call-tracking-metrics/call-tracking-metrics.php on line 12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/call-tracking-metrics/call_tracking_metrics.php:5
    • > PHP Warning
      include_once(): Failed opening 'ABSPATH/wp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/call-tracking-metrics/call_tracking_metrics.php on line 3
    • > PHP Warning
      include_once(ABSPATH/wp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/call-tracking-metrics/call_tracking_metrics.php on line 3
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/call-tracking-metrics/call_tracking_metrics.php on line 3
    • > PHP Warning
      Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/call-tracking-metrics/call-tracking-metrics.php on line 15

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
    • > GET request to /wp-admin/options-general.php?page=call-tracking-metrics
    • > Javascript (severe) in unknown
    /wp-admin/options-general.php?page=call-tracking-metrics 243:16 Uncaught TypeError: Cannot read properties of null (reading 'addEventListener')

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: conversation analytics, advertising, seo, marketing attribution, google ads...

call-tracking-metrics/call-tracking-metrics.php Passed 13 tests

The main file in "CallTrackingMetrics" v. 1.2.12 serves as a complement to information provided in readme.txt and as the entry point to the plugin
129 characters long description:
View your CallTrackingMetrics daily call volume in your WordPress Dashboard, and integrate with Contact Form 7 and Gravity Forms.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin1,335 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP411549839
JavaScript119302
CSS2120194

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity82.00
▷ Minimum class complexity53.00
▷ Maximum class complexity111.00
Average method complexity4.60
▷ Minimum method complexity1.00
▷ Maximum method complexity43.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods45
▷ Static methods00.00%
▷ Public methods45100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There are no PNG files in this plugin