84% callrail-phone-call-tracking

Code Review | CallRail Phone Call Tracking

WordPress plugin CallRail Phone Call Tracking scored84%from 54 tests.

About plugin

Code review

54 tests

User reviews

4 reviews

Install metrics

20,000+ active /310,749 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.01MB] [CPU: ▼3.95ms] Passed 4 tests

A check of server-side resources used by CallRail Phone Call Tracking
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.89 ▲3.77
Dashboard /wp-admin3.31 ▲0.0147.92 ▲2.95
Posts /wp-admin/edit.php3.36 ▲0.0143.44 ▼0.16
Add New Post /wp-admin/post-new.php5.90 ▲0.0179.41 ▼15.85
Media Library /wp-admin/upload.php3.23 ▲0.0132.23 ▼2.74
CallRail /wp-admin/options-general.php?page=callrail3.2028.66

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

CallRail Phone Call Tracking: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.68 ▲0.101.73 ▲0.1146.01 ▲5.75
Dashboard /wp-admin2,199 ▲185.48 ▼0.2387.25 ▼10.6738.35 ▼4.55
Posts /wp-admin/edit.php2,107 ▲72.00 ▲0.0434.11 ▼4.1732.31 ▼9.71
Add New Post /wp-admin/post-new.php1,529 ▲223.33 ▼0.05650.42 ▲2.4650.19 ▲0.84
Media Library /wp-admin/upload.php1,401 ▼24.17 ▼0.0594.06 ▼28.4841.83 ▼9.22
CallRail /wp-admin/options-general.php?page=callrail8172.1524.1229.32

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% 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
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/callrail-phone-call-tracking/callrail.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: call tracking, optimization, adwords, ppc, seo...

callrail-phone-call-tracking/callrail.php 92% from 13 tests

The entry point to "CallRail Phone Call Tracking" version 0.5.3 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("callrail-phone-call-tracking.php" instead of "callrail.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected121 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13222121

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin