90% dynamic-tracker

Code Review | Dynamic Tracker

WordPress plugin Dynamic Tracker scored90%from 54 tests.

About plugin

  • Plugin page: dynamic-tracker
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.2
  • WordPress version: 6.3.1
  • First release: Jun 26, 2019
  • Latest release: Jun 26, 2019
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: jagdish1o1 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /500 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼12.37ms] Passed 4 tests

Analyzing server-side resources used by Dynamic Tracker
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.41 ▼0.0627.27 ▼19.78
Dashboard /wp-admin3.34 ▼0.0051.53 ▼15.19
Posts /wp-admin/edit.php3.39 ▲0.0350.33 ▼4.22
Add New Post /wp-admin/post-new.php5.92 ▲0.0391.38 ▼10.30
Media Library /wp-admin/upload.php3.26 ▲0.0336.36 ▼2.46

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

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

Browser metrics Passed 4 tests

Dynamic Tracker: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,488 ▼25814.48 ▲0.287.79 ▲5.3615.96 ▼27.07
Dashboard /wp-admin2,210 ▲305.63 ▲0.0285.72 ▼17.8740.27 ▼1.51
Posts /wp-admin/edit.php2,112 ▲122.02 ▼0.0135.63 ▼0.2735.03 ▲0.43
Add New Post /wp-admin/post-new.php1,547 ▲1918.30 ▼4.95652.97 ▼13.5374.17 ▲17.93
Media Library /wp-admin/upload.php1,409 ▲124.17 ▼0.0394.98 ▼17.8543.53 ▼5.17

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
5 plugin tags: conversion tracking, google dynamic conversion tracking, google conversion tracking, tracking, google ads

dynamic-tracker/dynamic-tracker.php Passed 13 tests

"Dynamic Tracker" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
71 characters long description:
Easy and Simple Google Ads Dynamic Conversion Tracking for WooCommerce.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected144 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13313144

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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 images were found in this plugin