78% mediahawk-call-tracking

Code Review | MediaHawk Call Tracking Integration

WordPress plugin MediaHawk Call Tracking Integration scored78%from 54 tests.

About plugin

  • Plugin page: mediahawk-call-tr...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 11, 2016
  • Latest release: Aug 18, 2017
  • Number of updates: 7
  • Update frequency: every 66.3 days
  • Top authors: lslominski (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /815 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by MediaHawk Call Tracking Integration
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.80 ▲0.04
Dashboard /wp-admin3.32 ▲0.0148.87 ▼2.98
Posts /wp-admin/edit.php3.37 ▲0.0148.90 ▼2.67
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.98 ▼8.69
Media Library /wp-admin/upload.php3.24 ▲0.0137.79 ▼8.50
Mediahawk call tracking /wp-admin/options-general.php?page=mediahawk-call-tracking/mediahawk-call-tracking.php3.1832.91

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for MediaHawk Call Tracking Integration
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.54 ▼0.021.97 ▲0.3344.39 ▲2.10
Dashboard /wp-admin2,202 ▲255.62 ▼0.0093.79 ▲4.8242.25 ▼5.23
Posts /wp-admin/edit.php2,104 ▲41.96 ▼0.1333.26 ▼4.5037.78 ▼0.96
Add New Post /wp-admin/post-new.php1,529 ▲323.46 ▲0.48684.14 ▲53.7446.46 ▼2.64
Media Library /wp-admin/upload.php1,404 ▲74.20 ▼0.04109.99 ▲3.5847.78 ▲2.65
Mediahawk call tracking /wp-admin/options-general.php?page=mediahawk-call-tracking/mediahawk-call-tracking.php8482.0029.6834.63

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=mediahawk-call-tracking/mediahawk-call-tracking.php
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=mediahawk-call-tracking/mediahawk-call-tracking.php
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/mediahawk-call-tracking/mediahawk-call-tracking.php:108

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === mediahawk-call-tracking === )
You can take inspiration from this readme.txt

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

The main file in "MediaHawk Call Tracking Integration" v. 2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
56 characters long description:
Plugin adds Mediahawk call tracking software to website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin86 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP117886

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods116.67%
▷ Public methods6100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected