84% fathom-analytics-conversions

Code Review | Fathom Analytics Conversions

WordPress plugin Fathom Analytics Conversions scored84%from 54 tests.

About plugin

  • Plugin page: fathom-analytics-...
  • Plugin version: 1.0.12
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.4
  • WordPress version: 6.3.1
  • First release: May 1, 2022
  • Latest release: Nov 8, 2023
  • Number of updates: 32
  • Update frequency: every 17.5 days
  • Top authors: fathomconversions (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

300+ active /2,231 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
Installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼1.33ms] Passed 4 tests

This is a short check of server-side resources used by Fathom Analytics Conversions
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1041.44 ▼2.10
Dashboard /wp-admin3.41 ▲0.1046.03 ▼6.45
Posts /wp-admin/edit.php3.46 ▲0.1051.79 ▲3.91
Add New Post /wp-admin/post-new.php6.01 ▲0.12108.75 ▲5.96
Media Library /wp-admin/upload.php3.33 ▲0.1033.61 ▼0.66
Fathom Analytics Conversions /wp-admin/options-general.php?page=fac4wp-settings3.3234.18

Server storage [IO: ▲0.29MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
The plugin installed successfully
Filesystem: 61 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Fathom Analytics Conversions: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,920 ▲15813.38 ▼0.989.50 ▲7.8443.65 ▲1.18
Dashboard /wp-admin2,217 ▲365.64 ▼0.0788.84 ▼20.3244.91 ▲2.68
Posts /wp-admin/edit.php2,122 ▲222.06 ▲0.0839.74 ▼3.9137.18 ▲0.73
Add New Post /wp-admin/post-new.php6,265 ▲4,73026.13 ▲0.70850.20 ▲190.5357.12 ▼9.28
Media Library /wp-admin/upload.php1,416 ▲164.23 ▲0.0098.16 ▲1.1041.78 ▼1.48
Fathom Analytics Conversions /wp-admin/options-general.php?page=fac4wp-settings1,0411.6626.1431.33

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • 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
Everything seems fine, however this is by no means an exhaustive test

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 items
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/fathom-analytics-conversions/admin/partials/fathom-analytics-conversions-admin-display.php
    • > /wp-content/plugins/fathom-analytics-conversions/public/partials/fathom-analytics-conversions-public-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: conversions, analytics, fathom, events

fathom-analytics-conversions/fathom-analytics-conversions.php Passed 13 tests

The main PHP script in "Fathom Analytics Conversions" version 1.0.12 is automatically included on every request by WordPress
69 characters long description:
Easily add event conversions in WordPress plugins to Fathom Analytics

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
Success! There were no dangerous files found in this plugin5,003 lines of code in 54 files:
LanguageFilesBlank linesComment linesLines of code
PHP391,0662,4644,580
Markdown2800212
JavaScript81069109
JSON30081
CSS25821

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity23.96
▷ Minimum class complexity1.00
▷ Maximum class complexity81.00
Average method complexity3.54
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes25
▷ Abstract classes00.00%
▷ Concrete classes25100.00%
▷ Final classes00.00%
Methods227
▷ Static methods2912.78%
▷ Public methods18380.62%
▷ Protected methods73.08%
▷ Private methods3716.30%
Functions33
▷ Named functions3090.91%
▷ Anonymous functions39.09%
Constants20
▷ Global constants20100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin