84% tiedupedeleter-simple-duplicate-post-deleter

Code Review | TIEdupedeleter Simple Duplicate Post Deleter

WordPress plugin TIEdupedeleter Simple Duplicate Post Deleter scored 84% from 54 tests.

About plugin

  • Plugin page: tiedupedeleter-si...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0
  • WordPress version: 6.3.1
  • First release: Nov 10, 2013
  • Latest release: Sep 10, 2014
  • Number of updates: 10
  • Update frequency: every 30.4 days
  • Top authors: TIEro (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 2,810 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
This plugin's installer ran successfully

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

This is a short check of server-side resources used by TIEdupedeleter Simple Duplicate Post Deleter
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0437.58 ▼10.01
Dashboard /wp-admin3.35 ▲0.0445.08 ▼4.97
Posts /wp-admin/edit.php3.40 ▲0.0447.17 ▲1.49
Add New Post /wp-admin/post-new.php5.93 ▲0.0495.69 ▲6.40
Media Library /wp-admin/upload.php3.27 ▲0.0435.38 ▲0.85

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 10 new options
New WordPress options
TIEdupedeleter_powerbutton
TIEdupedeleter_newoldradio
TIEdupedeleter_catsradio
db_upgraded
theysaidso_admin_options
TIEdupedeleter_status_published
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for TIEdupedeleter Simple Duplicate Post Deleter
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7013.21 ▼1.381.65 ▼0.0841.46 ▼2.42
Dashboard /wp-admin2,222 ▲405.88 ▲0.97106.91 ▼10.7842.67 ▼1.36
Posts /wp-admin/edit.php2,105 ▲192.01 ▲0.0239.54 ▲1.0334.65 ▼3.32
Add New Post /wp-admin/post-new.php1,550 ▲1723.38 ▲0.24625.58 ▼68.0949.89 ▼9.25
Media Library /wp-admin/upload.php1,404 ▲134.30 ▲0.1097.13 ▼7.8241.13 ▼5.99

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: 10 options
    • TIEdupedeleter_status_published
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • TIEdupedeleter_catsradio
    • TIEdupedeleter_powerbutton
    • widget_recent-comments
    • widget_recent-posts
    • TIEdupedeleter_newoldradio
    • widget_theysaidso_widget

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)
Good news, no errors were detected

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× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/tiedupedeleter-simple-duplicate-post-deleter/TIEdupedeleter.php:15

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 issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 13 tag instead of maximum 10
Please take inspiration from this readme.txt

tiedupedeleter-simple-duplicate-post-deleter/TIEdupedeleter.php 92% from 13 tests

The primary PHP file in "TIEdupedeleter Simple Duplicate Post Deleter" version 1.0.2 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("tiedupedeleter-simple-duplicate-post-deleter.php" instead of "TIEdupedeleter.php")

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 detected159 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12531159

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.71
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
dupe.png2.40KB1.62KB▼ 32.38%
donate.png3.91KB1.98KB▼ 49.29%