10% simple-microsoft-dynamics-marketing-web-tracking

Code Review | Simple Dynamics Marketing Tracking Code Plugin

WordPress plugin Simple Dynamics Marketing Tracking Code Plugin scored10%from 54 tests.

About plugin

  • Plugin page: simple-microsoft-...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.1.1
  • WordPress version: 6.3.1
  • First release: Apr 17, 2015
  • Latest release: Apr 22, 2015
  • Number of updates: 8
  • Update frequency: every 0.8 days
  • Top authors: hansvandevelde (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /762 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/simple-microsoft-dynamics-marketing-web-tracking/microsoft-dynamics-marketing.php+13
    Methods with the same name as their class will not be constructors in a future version of PHP; microsoftDynamicsMarketingTracking has a deprecated constructor

Server metrics [RAM: ▼1.90MB] [CPU: ▼51.16ms] Passed 4 tests

A check of server-side resources used by Simple Dynamics Marketing Tracking Code Plugin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.384.94 ▼33.18
Dashboard /wp-admin2.10 ▼1.206.29 ▼44.27
Posts /wp-admin/edit.php2.10 ▼1.256.13 ▼41.12
Add New Post /wp-admin/post-new.php2.10 ▼3.787.24 ▼86.06
Media Library /wp-admin/upload.php2.10 ▼1.126.05 ▼28.19
Dynamics Marketing Tracking /wp-admin/options-general.php?page=microsoft_dynamics_marketing_tracking2.115.97

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Simple Dynamics Marketing Tracking Code Plugin
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.38 ▼0.231.72 ▲0.1148.40 ▲4.16
Dashboard /wp-admin2,196 ▲165.64 ▼0.0496.78 ▼3.3141.97 ▼1.70
Posts /wp-admin/edit.php2,104 ▲41.99 ▼0.0136.53 ▲0.7034.05 ▼3.65
Add New Post /wp-admin/post-new.php1,529 ▲123.46 ▲0.47626.19 ▼65.5656.22 ▼1.97
Media Library /wp-admin/upload.php1,398 ▲44.19 ▲0.03101.35 ▼0.8842.92 ▼2.94
Dynamics Marketing Tracking /wp-admin/options-general.php?page=microsoft_dynamics_marketing_tracking8581.9921.9627.82

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/simple-microsoft-dynamics-marketing-web-tracking/microsoft-dynamics-marketing.php+13
    Methods with the same name as their class will not be constructors in a future version of PHP; microsoftDynamicsMarketingTracking has a deprecated constructor
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=microsoft_dynamics_marketing_tracking
    • > Deprecated in wp-content/plugins/simple-microsoft-dynamics-marketing-web-tracking/microsoft-dynamics-marketing.php+13
    Methods with the same name as their class will not be constructors in a future version of PHP; microsoftDynamicsMarketingTracking has a deprecated constructor

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 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 get_option() in wp-content/plugins/simple-microsoft-dynamics-marketing-web-tracking/microsoft-dynamics-marketing.php:63

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (The options page.), #2 (Where to find your Dynamics Marketing tracking code.), #3 (Source of the tracking code inserted just before </body>.)
You can take inspiration from this readme.txt

simple-microsoft-dynamics-marketing-web-tracking/microsoft-dynamics-marketing.php 85% from 13 tests

"Simple Dynamics Marketing Tracking Code Plugin" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 149 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("simple-microsoft-dynamics-marketing-web-tracking.php" instead of "microsoft-dynamics-marketing.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected140 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13227140

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
3 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png23.12KB13.99KB▼ 39.49%
screenshot-3.png33.10KB20.25KB▼ 38.82%
screenshot-2.png10.06KB5.83KB▼ 42.01%