84% tracking-revisions

Code Review | Tracking Revisions

WordPress plugin Tracking Revisions scored84%from 54 tests.

About plugin

  • Plugin page: tracking-revisions
  • Plugin version: 1.5.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Sep 17, 2020
  • Latest release: Sep 6, 2023
  • Number of updates: 27
  • Update frequency: every 40.2 days
  • Top authors: nickanhem (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /726 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.19MB] [CPU: ▼2.71ms] Passed 4 tests

An overview of server-side resources used by Tracking Revisions
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1740.10 ▲0.77
Dashboard /wp-admin3.50 ▲0.2051.79 ▲2.00
Posts /wp-admin/edit.php3.62 ▲0.2646.03 ▼3.82
Add New Post /wp-admin/post-new.php6.09 ▲0.2087.74 ▼5.97
Media Library /wp-admin/upload.php3.43 ▲0.2037.33 ▼1.83

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Tracking Revisions: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲4014.35 ▲0.141.65 ▼0.1045.50 ▲2.69
Dashboard /wp-admin2,197 ▲205.64 ▼0.0192.28 ▼3.6449.70 ▲7.64
Posts /wp-admin/edit.php2,114 ▲142.01 ▲0.0034.09 ▼0.9834.08 ▲0.16
Add New Post /wp-admin/post-new.php1,533 ▲723.34 ▲0.28673.31 ▼32.1155.95 ▼7.64
Media Library /wp-admin/upload.php1,408 ▲84.27 ▲0.08104.18 ▼4.3947.51 ▼0.96

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 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)
Even though no errors were found, this is by no means 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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/tracking-revisions/tracking-revisions.php:20

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: slack integration, tracking posts, tracking, tracking linkout, bitrix24 integration

tracking-revisions/tracking-revisions.php 85% from 13 tests

The primary PHP file in "Tracking Revisions" version 1.5.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Domain Path: Use only dashes and lowercase characters for the domain path ("languages")
  • Domain Path: Prefix the domain path with a forward slash character ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin868 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP4163129726
PO File14355133
CSS1009

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity20.00
▷ Minimum class complexity10.00
▷ Maximum class complexity30.00
Average method complexity2.27
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods30
▷ Static methods00.00%
▷ Public methods30100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.16MB with 0.08MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png35.31KB18.62KB▼ 47.26%
screenshot-1.png20.17KB11.00KB▼ 45.48%
screenshot-3.png103.36KB42.23KB▼ 59.14%