94% callrail-phone-call-tracking

Code Review | CallRail Phone Call Tracking

WordPress plugin CallRail Phone Call Tracking scored 94% from 54 tests.

About plugin

Code review

54 tests

User reviews

4 reviews

Install metrics

20,000+ active / 196,421 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.04MB] [CPU: ▼144.64ms] 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 /2.88 ▲0.0434.13 ▼0.54
Dashboard /wp-admin3.10 ▲0.0547.67 ▲4.21
Posts /wp-admin/edit.php3.15 ▲0.0437.59 ▼4.42
Add New Post /wp-admin/post-new.php5.48 ▲0.0595.58 ▼564.04
Media Library /wp-admin/upload.php3.04 ▲0.0429.10 ▼9.54
CallRail /wp-admin/options-general.php?page=callrail3.0122.48

Server storage [IO: ▲0.02MB] [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, no new options

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 /3,708 ▲11215.87 ▲0.179.02 ▼0.6047.70 ▼3.76
Dashboard /wp-admin2,978 ▲445.93 ▼0.02139.83 ▼10.92111.11 ▼1.50
Posts /wp-admin/edit.php2,744 ▲52.72 ▲0.0164.22 ▼2.1795.28 ▲7.21
Add New Post /wp-admin/post-new.php1,875 ▲37519.20 ▲0.54377.17 ▲4.74103.39 ▼4.86
Media Library /wp-admin/upload.php1,812 ▲55.04 ▼0.01146.17 ▼1.84121.58 ▼10.41
CallRail /wp-admin/options-general.php?page=callrail1,1012.0852.8173.94

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully

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: analytics, conversion tracking, adwords, call tracking, ppc...

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

The entry point to "CallRail Phone Call Tracking" version 0.4.9 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 detected289 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16943289

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.40
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.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