83% mma-call-tracking

Code Review | MMA Call Tracking

WordPress plugin MMA Call Tracking scored83%from 54 tests.

About plugin

  • Plugin page: mma-call-tracking
  • Plugin version: 2.3.15
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-4.5
  • WordPress version: 6.3.1
  • First release: Jul 30, 2015
  • Latest release: May 17, 2018
  • Number of updates: 74
  • Update frequency: every 13.8 days
  • Top authors: MessageMetric (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

60+ active /6,116 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.20MB] [CPU: ▼4.65ms] 75% from 4 tests

Server-side resources used by MMA Call Tracking
The following require your attention
  • CPU: The total CPU usage must kept under 500.00ms (currently 654.96ms on /wp-admin/admin.php?page=mma_call_tracking_menu2)
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2136.94 ▲1.86
Dashboard /wp-admin3.52 ▲0.1845.66 ▼19.96
Posts /wp-admin/edit.php3.63 ▲0.2852.71 ▼1.31
Add New Post /wp-admin/post-new.php6.10 ▲0.2292.15 ▲0.80
Media Library /wp-admin/upload.php3.44 ▲0.2137.69 ▲3.81
Settings /wp-admin/admin.php?page=mma_call_tracking_menu3.4134.18
Phone Numbers /wp-admin/admin.php?page=mma_call_tracking_menu23.41654.96

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

MMA Call Tracking: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲6913.59 ▼0.791.70 ▼0.2039.71 ▼5.08
Dashboard /wp-admin2,232 ▲414.90 ▼0.0697.69 ▼5.3975.42 ▲32.38
Posts /wp-admin/edit.php2,115 ▲262.00 ▼0.0439.59 ▼0.4236.34 ▲1.81
Add New Post /wp-admin/post-new.php1,535 ▲2121.97 ▲4.42693.75 ▼4.5755.36 ▲2.73
Media Library /wp-admin/upload.php1,417 ▲324.13 ▼0.05110.66 ▲7.7079.00 ▲32.84
Settings /wp-admin/admin.php?page=mma_call_tracking_menu9802.1724.3443.93
Phone Numbers /wp-admin/admin.php?page=mma_call_tracking_menu28672.0428.1029.11

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/mma-call-tracking/mma_call_tracking.php

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)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === mma-call-tracking === )
You can take inspiration from this readme.txt

mma-call-tracking/mma_call_tracking.php 92% from 13 tests

This is the main PHP file of "MMA Call Tracking" version 2.3.15, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("mma-call-tracking.php" instead of "mma_call_tracking.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,088 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2192781,049
JavaScript15439

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity235.00
▷ Minimum class complexity235.00
▷ Maximum class complexity235.00
Average method complexity6.85
▷ Minimum method complexity1.00
▷ Maximum method complexity48.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods40
▷ Static methods00.00%
▷ Public methods40100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
icon.png1.13KB1.23KB0.00%