84% calltracker

Code Review | CallTracker

WordPress plugin CallTracker scored 84% from 54 tests.

About plugin

  • Plugin page: calltracker
  • Plugin version: 1.5
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.8
  • WordPress version: 6.3.1
  • First release: Feb 4, 2016
  • Latest release: Sep 27, 2017
  • Number of updates: 25
  • Update frequency: every 24.1 days
  • Top authors: calltracker (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,167 total downloads

Benchmarks

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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.57ms] Passed 4 tests

An overview of server-side resources used by CallTracker
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.32 ▼4.47
Dashboard /wp-admin3.32 ▲0.0246.10 ▼4.26
Posts /wp-admin/edit.php3.37 ▲0.0146.78 ▼4.83
Add New Post /wp-admin/post-new.php5.90 ▲0.0194.45 ▲2.03
Media Library /wp-admin/upload.php3.24 ▲0.0135.76 ▼0.72
Call Tracker /wp-admin/options-general.php?page=calltracker-settings3.2130.72

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for CallTracker
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6914.74 ▲0.091.58 ▼0.3240.92 ▼9.24
Dashboard /wp-admin2,210 ▲194.82 ▼0.07108.57 ▼9.5539.99 ▼8.23
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0539.48 ▲3.1736.39 ▲0.64
Add New Post /wp-admin/post-new.php1,545 ▲318.49 ▲0.12591.97 ▼46.9550.15 ▼2.61
Media Library /wp-admin/upload.php1,386 ▲44.19 ▼0.0195.32 ▼1.2541.27 ▼0.67
Call Tracker /wp-admin/options-general.php?page=calltracker-settings8172.0226.9928.55

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/calltracker/calltracker.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: ppc, adwords, call tracker, call tracking, calltrackerio...

calltracker/calltracker.php Passed 13 tests

The principal PHP file in "CallTracker" v. 1.5 is loaded by WordPress automatically on each request
38 characters long description:
WordPress Integration for Call Tracker

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected99 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP113999

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.40
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
No PNG images were found in this plugin