78% freespee-call-tracking

Code Review | Freespee Call Tracking

WordPress plugin Freespee Call Tracking scored78%from 54 tests.

About plugin

  • Plugin page: freespee-call-tra...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.2
  • WordPress version: 6.3.1
  • First release: Nov 30, 2014
  • Latest release: Apr 21, 2015
  • Number of updates: 9
  • Update frequency: every 15.8 days
  • Top authors: effeks (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,094 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

A check of server-side resources used by Freespee Call Tracking
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.67 ▲0.78
Dashboard /wp-admin3.32 ▲0.0145.73 ▼1.34
Posts /wp-admin/edit.php3.37 ▲0.0145.59 ▲1.14
Add New Post /wp-admin/post-new.php5.90 ▲0.01104.87 ▲18.52
Media Library /wp-admin/upload.php3.24 ▲0.0135.85 ▲2.07
Freespee /wp-admin/options-general.php?page=fs_settings_page3.2029.48

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: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Freespee Call Tracking
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲9413.28 ▼1.014.84 ▲3.0341.32 ▼7.40
Dashboard /wp-admin2,224 ▲395.79 ▲0.91100.00 ▼6.7637.85 ▼8.66
Posts /wp-admin/edit.php2,104 ▲152.04 ▲0.0339.11 ▼0.2534.82 ▼0.77
Add New Post /wp-admin/post-new.php1,557 ▲4318.01 ▲0.36656.39 ▼19.0269.93 ▲7.53
Media Library /wp-admin/upload.php1,400 ▲154.20 ▲0.01101.95 ▲4.8945.90 ▲4.16
Freespee /wp-admin/options-general.php?page=fs_settings_page7011.536.5418.57

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=fs_settings_page
    • > Error in wp-admin/includes/template.php+1801
    Uncaught ArgumentCountError: Too few arguments to function do_settings_fields(), 1 passed in wp-content/plugins/freespee-call-tracking/templates/settings.php on line 5 and exactly 2 expected in wp-admin/includes/template.php:1801
    Stack trace:
    #0 wp-content/plugins/freespee-call-tracking/templates/settings.php(5): do_settings_fields()
    #1 wp-content/plugins/freespee-call-tracking/freespee_call_tracking.php(33): include('/var/www/wordpr...')
    #2 wp-includes/class-wp-hook.php(310): fsct_plugin_settings_page()
    #3 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #4 wp-includes/plugin.php(517): WP_Hook->do_action()
    #5 wp-admin/admin.php(259): do_action()
    #6 wp-admin/options-general.php(10): require_once('/var/www/wordpr...')
    #7 {main}
    thrown

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/freespee-call-tracking/templates/settings.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/freespee-call-tracking/templates/fs_conf_js.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/freespee-call-tracking/templates/notify_banner.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/freespee-call-tracking/freespee_call_tracking.php:55

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: adwords, conversion tracking, call tracking, freespee, analytics...

freespee-call-tracking/freespee_call_tracking.php 85% from 13 tests

This is the main PHP file of "Freespee Call Tracking" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 306 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("freespee-call-tracking.php" instead of "freespee_call_tracking.php")

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 plugin73 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4151273

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions6
▷ Named functions6100.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