100% rakam-link-tracking

Code Review | Rakam Link Tracking

WordPress plugin Rakam Link Tracking scored 100% from 54 tests.

About plugin

  • Plugin page: rakam-link-tracking
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.5.1
  • WordPress version: 5.8.1
  • First release: Jan 23, 2021
  • Latest release: Jan 27, 2021
  • Number of updates: 3
  • Update frequency: every 1.7 days
  • Top authors: recepuncu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 99 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼143.37ms] Passed 4 tests

An overview of server-side resources used by Rakam Link Tracking
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1234.16 ▲13.31
Dashboard /wp-admin3.08 ▲0.0248.66 ▲4.45
Posts /wp-admin/edit.php3.14 ▲0.0245.92 ▲0.46
Add New Post /wp-admin/post-new.php5.45 ▲0.0193.35 ▼577.85
Media Library /wp-admin/upload.php3.03 ▲0.0137.38 ▼0.54
Rakam Link Tracking /wp-admin/options-general.php?page=rakam-link-tracking3.0027.46

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Rakam Link Tracking: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,684 ▲8815.87 ▲0.248.65 ▼1.9245.32 ▼4.16
Dashboard /wp-admin2,975 ▲446.01 ▲0.05136.24 ▼7.93118.73 ▲0.80
Posts /wp-admin/edit.php2,744 ▲82.72 ▲0.0262.53 ▼3.1691.29 ▼2.24
Add New Post /wp-admin/post-new.php1,507 ▲718.48 ▼0.01370.61 ▲8.19103.50 ▼10.84
Media Library /wp-admin/upload.php1,812 ▲55.03 ▲0.02139.40 ▼14.86123.04 ▼2.93
Rakam Link Tracking /wp-admin/options-general.php?page=rakam-link-tracking1,0412.1054.5584.20

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 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
2 plugin tags: google analytics, utm tracking

rakam-link-tracking/rakam-link-tracking.php 92% from 13 tests

The primary PHP file in "Rakam Link Tracking" version 1.0.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin157 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP33014114
PO File181043

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity5.00
▷ Minimum class complexity3.00
▷ Maximum class complexity7.00
Average method complexity1.89
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected