94% technoscore-pardot-tracking

Code Review | Technoscore Pardot Tracking

WordPress plugin Technoscore Pardot Tracking scored 94% from 54 tests.

About plugin

  • Plugin page: technoscore-pardo...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3.6-4.7
  • WordPress version: 5.8.1
  • First release: Jun 6, 2017
  • Latest release: Jun 6, 2017
  • Number of updates: 4
  • Update frequency: every 2.0 days
  • Top authors: saravan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 362 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Technoscore Pardot Tracking
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0032.38 ▲0.11
Dashboard /wp-admin3.06 ▲0.0144.00 ▲2.43
Posts /wp-admin/edit.php3.12 ▲0.0146.07 ▲5.82
Add New Post /wp-admin/post-new.php5.43 ▼0.0094.64 ▼564.72
Media Library /wp-admin/upload.php3.01 ▼0.0029.38 ▼11.85

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Technoscore Pardot Tracking
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,723 ▲12715.87 ▲0.269.22 ▼0.1547.12 ▼1.06
Dashboard /wp-admin2,993 ▲625.90 ▼0.22129.62 ▼10.32111.67 ▼0.01
Posts /wp-admin/edit.php2,759 ▲202.71 ▼0.0063.02 ▼1.4183.46 ▼4.97
Add New Post /wp-admin/post-new.php1,511 ▼54618.87 ▼0.57372.24 ▼18.23108.33 ▲0.13
Media Library /wp-admin/upload.php1,827 ▲205.05 ▲0.00157.53 ▲9.92119.03 ▼8.93

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
Uninstaller 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 everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/technoscore-pardot-tracking/technoscore-pardot-tracking.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 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
3 plugin tags: pardot, pardot tracking, tracking

technoscore-pardot-tracking/technoscore-pardot-tracking.php 92% from 13 tests

This is the main PHP file of "Technoscore Pardot Tracking" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Text Domain: The text domain should only use lowercase characters and dashes

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
Everything looks great! No dangerous files found in this plugin54 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2181854

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.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 files were detected