78% republication-tracker-tool

Code Review | Republication Tracker Tool

WordPress plugin Republication Tracker Tool scored78%from 54 tests.

About plugin

  • Plugin page: republication-tra...
  • Plugin version: 1.4.2
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.2.2
  • WordPress version: 6.3.1
  • First release: May 28, 2019
  • Latest release: Oct 31, 2023
  • Number of updates: 17
  • Update frequency: every 95.4 days
  • Top authors: newspack (70.59%)innlabs (35.29%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,197 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
Install script ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼4.84ms] Passed 4 tests

A check of server-side resources used by Republication Tracker Tool
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1235.94 ▼3.94
Dashboard /wp-admin3.42 ▲0.1246.17 ▼4.18
Posts /wp-admin/edit.php3.54 ▲0.1848.55 ▲1.35
Add New Post /wp-admin/post-new.php6.01 ▲0.1385.82 ▼11.35
Media Library /wp-admin/upload.php3.35 ▲0.1235.75 ▲0.13

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_republication_tracker_tool
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Republication Tracker Tool
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.60 ▲0.251.64 ▼0.6540.02 ▼2.73
Dashboard /wp-admin2,198 ▲245.62 ▲0.0284.99 ▼7.7940.09 ▼0.21
Posts /wp-admin/edit.php2,127 ▲272.11 ▲0.0836.65 ▼1.4831.81 ▼3.18
Add New Post /wp-admin/post-new.php6,250 ▲4,72419.12 ▼4.12891.12 ▲170.2480.46 ▲26.11
Media Library /wp-admin/upload.php1,400 ▼04.19 ▼0.1098.40 ▼8.9241.92 ▼3.60

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
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_republication_tracker_tool
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% 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 everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/republication-tracker-tool/includes/pixel.php
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/republication-tracker-tool/republication-tracker-tool.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/republication-tracker-tool/includes/class-widget.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/republication-tracker-tool/includes/shareable-content.php:43

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

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
2 plugin tags: news, publishers

republication-tracker-tool/republication-tracker-tool.php 92% from 13 tests

"Republication Tracker Tool" version 1.4.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin866 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP7157362604
CSS1165118
Markdown280083
JavaScript214861

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity10.25
▷ Minimum class complexity5.00
▷ Maximum class complexity14.00
Average method complexity2.06
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes125.00%
Methods33
▷ Static methods412.12%
▷ Public methods3296.97%
▷ Protected methods13.03%
▷ Private methods00.00%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/creative-commons-sharing.png1.53KB1.28KB▼ 16.01%