90% tracking-code-for-linkedin-insights-tag

Code Review | Tracking Code for Linkedin Insights Tag

WordPress plugin Tracking Code for Linkedin Insights Tag scored90%from 54 tests.

About plugin

  • Plugin page: tracking-code-for...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.6.0
  • WordPress version: 6.3.1
  • First release: Dec 1, 2020
  • Latest release: Dec 2, 2020
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: claytoncollie (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /521 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
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Tracking Code for Linkedin Insights Tag
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0145.36 ▲6.49
Dashboard /wp-admin3.32 ▲0.0250.68 ▲5.37
Posts /wp-admin/edit.php3.37 ▲0.0255.08 ▲2.13
Add New Post /wp-admin/post-new.php5.91 ▲0.0288.50 ▼21.31
Media Library /wp-admin/upload.php3.25 ▲0.0236.83 ▲0.43

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Tracking Code for Linkedin Insights Tag
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.10 ▼0.262.41 ▲0.6847.09 ▲2.88
Dashboard /wp-admin2,195 ▲185.55 ▼0.0687.14 ▼1.5038.91 ▼4.33
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0237.93 ▼2.6341.28 ▲1.53
Add New Post /wp-admin/post-new.php1,532 ▼423.28 ▲5.14627.33 ▼34.3759.52 ▼4.18
Media Library /wp-admin/upload.php1,403 ▲64.23 ▲0.0198.50 ▼5.1541.48 ▼2.31

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: tracking snippet, insights tag, analytics, tracking code, linkedin

tracking-code-for-linkedin-insights-tag/tracking-code-for-linkedin-insights-tag.php Passed 13 tests

The main file in "Tracking Code for Linkedin Insights Tag" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
84 characters long description:
Simple, lightweight solution for inserting your Linkedin Insights Tag tracking code.

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
There were no executable files found in this plugin100 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP3115285
Markdown212015

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions3
▷ Named functions3100.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