84% mc-woocommerce-tracking

Code Review | MC Woocommerce Tracking

WordPress plugin MC Woocommerce Tracking scored84%from 54 tests.

About plugin

  • Plugin page: mc-woocommerce-tr...
  • Plugin version: 2.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 8.0-6.3
  • WordPress version: 6.3.1
  • First release: Jul 20, 2018
  • Latest release: Oct 25, 2023
  • Number of updates: 37
  • Update frequency: every 52.0 days
  • Top authors: mookie4a4 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,617 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.95ms] Passed 4 tests

A check of server-side resources used by MC Woocommerce Tracking
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.85 ▼4.98
Dashboard /wp-admin3.34 ▲0.0346.25 ▼3.57
Posts /wp-admin/edit.php3.39 ▲0.0342.44 ▼4.41
Add New Post /wp-admin/post-new.php5.92 ▲0.0389.80 ▼2.84
Media Library /wp-admin/upload.php3.26 ▲0.0334.76 ▼2.50

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

MC Woocommerce Tracking: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.27 ▼0.301.84 ▲0.1843.70 ▲3.70
Dashboard /wp-admin2,195 ▲155.61 ▼0.0485.19 ▼2.2142.26 ▲3.09
Posts /wp-admin/edit.php2,097 ▼32.01 ▲0.0035.48 ▲1.7729.82 ▼5.61
Add New Post /wp-admin/post-new.php1,537 ▲1118.25 ▼5.11633.52 ▼69.4270.23 ▲10.23
Media Library /wp-admin/upload.php1,400 ▼34.19 ▼0.0092.28 ▼9.8442.18 ▼4.52

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/mc-woocommerce-tracking/mc-woocommerce-tracking.php

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 errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
There were no plugin tags found

mc-woocommerce-tracking/mc-woocommerce-tracking.php 92% from 13 tests

The principal PHP file in "MC Woocommerce Tracking" v. 2.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("4.6" instead of "8.0")

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
Good job! No executable or dangerous file extensions detected205 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP11224117
Markdown141088

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.75
Average class complexity36.00
▷ Minimum class complexity36.00
▷ Maximum class complexity36.00
Average method complexity7.80
▷ Minimum method complexity2.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.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
PNG images were not found in this plugin