94% wp-tracking-manager

Code Review | WP Tracking Manager

WordPress plugin WP Tracking Manager scored 94% from 54 tests.

About plugin

  • Plugin page: wp-tracking-manager
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8.2
  • WordPress version: 5.8.1
  • First release: Sep 24, 2018
  • Latest release: Nov 17, 2021
  • Number of updates: 25
  • Update frequency: every 46.1 days
  • Top authors: india-web-developer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 1,954 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.07MB] [CPU: ▼137.48ms] Passed 4 tests

An overview of server-side resources used by WP Tracking Manager
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.90 ▲0.0632.57 ▼4.21
Dashboard /wp-admin3.13 ▲0.0744.49 ▲6.54
Posts /wp-admin/edit.php3.18 ▲0.0742.71 ▲4.81
Add New Post /wp-admin/post-new.php5.49 ▲0.0692.30 ▼549.85
Media Library /wp-admin/upload.php3.07 ▲0.0731.25 ▼0.66
WP Tracking Manager /wp-admin/options-general.php?page=wp_tracking_manager3.0531.37

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by WP Tracking Manager
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,713 ▲11715.76 ▲0.308.37 ▲0.0546.62 ▼8.67
Dashboard /wp-admin2,994 ▲636.09 ▲0.19133.20 ▼13.70114.06 ▲13.01
Posts /wp-admin/edit.php2,760 ▲212.70 ▲0.0073.57 ▲8.6994.63 ▲3.79
Add New Post /wp-admin/post-new.php1,509 ▼16318.79 ▼0.28358.12 ▼31.67104.81 ▼7.90
Media Library /wp-admin/upload.php1,828 ▲185.00 ▼0.04144.37 ▼13.60124.11 ▼3.87
WP Tracking Manager /wp-admin/options-general.php?page=wp_tracking_manager1,4642.1358.26126.88

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-tracking-manager/lib/settings.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
The official readme.txt might help

wp-tracking-manager/wp-tracking-manager.php Passed 13 tests

"WP Tracking Manager" version 1.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
127 characters long description:
Very Simple plugin to add any type of tracking code on your website in a second and also block the direct access to thank page.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin422 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP432110410
JavaScript10111
CSS1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity26.00
▷ Minimum class complexity20.00
▷ Maximum class complexity32.00
Average method complexity3.78
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods18
▷ Static methods211.11%
▷ Public methods18100.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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin