72% renoon-tracking-for-woocommerce

Code Review | Renoon Tracking for Woocommerce

WordPress plugin Renoon Tracking for Woocommerce scored72%from 54 tests.

About plugin

  • Plugin page: renoon-tracking-f...
  • Plugin version: 1.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.9
  • WordPress version: 6.3.1
  • First release: Mar 9, 2022
  • Latest release: Mar 15, 2022
  • Number of updates: 4
  • Update frequency: every 1.8 days
  • Top authors: renoon (75%)wpconcierges (50%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /220 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.14MB] [CPU: ▼0.04ms] Passed 4 tests

Analyzing server-side resources used by Renoon Tracking for Woocommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1443.11 ▲1.89
Dashboard /wp-admin3.44 ▲0.1445.81 ▼2.28
Posts /wp-admin/edit.php3.55 ▲0.2044.27 ▼2.30
Add New Post /wp-admin/post-new.php6.02 ▲0.1488.42 ▲2.55
Media Library /wp-admin/upload.php3.37 ▲0.1436.64 ▲2.89
Renoon Tracking /wp-admin/tools.php?page=renoon-tracking-pro3.3330.21

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Renoon Tracking for Woocommerce: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.25 ▼1.111.68 ▼0.1343.30 ▼3.50
Dashboard /wp-admin2,213 ▲254.86 ▼0.0499.73 ▼16.2037.94 ▼6.49
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0635.39 ▼4.0929.05 ▼5.52
Add New Post /wp-admin/post-new.php1,536 ▲2223.36 ▼0.15684.74 ▼0.1966.17 ▲1.41
Media Library /wp-admin/upload.php1,392 ▲44.21 ▼0.0094.27 ▼15.7842.19 ▼1.79
Renoon Tracking /wp-admin/tools.php?page=renoon-tracking-pro8202.0124.6126.05

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/renoon-tracking-for-woocommerce/public/partials/renoon-tracking-pro-public-display.php
    • > /wp-content/plugins/renoon-tracking-for-woocommerce/admin/partials/renoon-tracking-pro-admin-display.php
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/renoon-tracking-for-woocommerce/admin/partials/renoon-tracking-pro-admin-field-text.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/renoon-tracking-for-woocommerce/admin/partials/renoon-tracking-pro-admin-page-settings.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/renoon-tracking-for-woocommerce/admin/partials/renoon-tracking-pro-admin-section-messages.php:18

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
    • > GET request to /wp-admin/tools.php?page=renoon-tracking-pro
    • > Network (severe)
    wp-content/plugins/renoon-tracking-pro/assets/renoon-logo.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: renoon tracking, renoon

renoon-tracking-for-woocommerce/renoon-tracking-pro.php 69% from 13 tests

The entry point to "Renoon Tracking for Woocommerce" version 1.1.4 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("renoon-tracking-for-woocommerce.php" instead of "renoon-tracking-pro.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 154 characters long)
  • Text Domain: The text domain name should consist of only dashes and lowercase characters
  • Requires at least: Required version must match the one declared in readme.txt ("3.1" instead of "3.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected664 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP16355706664

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity10.75
▷ Minimum class complexity1.00
▷ Maximum class complexity36.00
Average method complexity2.42
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods55
▷ Static methods35.45%
▷ Public methods3461.82%
▷ Protected methods11.82%
▷ Private methods2036.36%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
1 PNG file occupies 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/renoon-logo.png42.42KB10.04KB▼ 76.33%