67% delete-duplicate-data

Code Review | Delete Duplicate Data

WordPress plugin Delete Duplicate Data scored67%from 54 tests.

About plugin

  • Plugin page: delete-duplicate-...
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.8.1
  • WordPress version: 6.3.1
  • First release: Jan 12, 2014
  • Latest release: Mar 4, 2014
  • Number of updates: 26
  • Update frequency: every 2.0 days
  • Top authors: bhagirath25 (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

100+ active /15,912 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

A check of server-side resources used by Delete Duplicate Data
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0437.58 ▼4.12
Dashboard /wp-admin3.35 ▲0.0447.00 ▼10.19
Posts /wp-admin/edit.php3.40 ▲0.0445.89 ▲2.00
Add New Post /wp-admin/post-new.php5.93 ▲0.0488.08 ▲0.52
Media Library /wp-admin/upload.php3.27 ▲0.0434.77 ▲3.05
Delete Duplicate Data /wp-admin/options-general.php?page=delete_duplicate_data3.2229.98

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Delete Duplicate Data
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.62 ▲0.441.72 ▼0.2141.18 ▼1.95
Dashboard /wp-admin2,202 ▲255.63 ▼0.0893.88 ▲1.2440.87 ▼3.68
Posts /wp-admin/edit.php2,101 ▲11.98 ▲0.0239.63 ▲0.5736.58 ▲1.38
Add New Post /wp-admin/post-new.php1,540 ▲1418.32 ▼4.69615.75 ▼26.5667.58 ▲17.00
Media Library /wp-admin/upload.php1,407 ▲74.17 ▼0.0597.25 ▼3.4243.76 ▼3.27
Delete Duplicate Data /wp-admin/options-general.php?page=delete_duplicate_data1,2174.1363.0786.21

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=delete_duplicate_data
    • > Notice in wp-content/plugins/delete-duplicate-data/delete-duplicate-data.php+84
    Undefined index: delete_duplicate_hidden
    • > GET request to /wp-admin/options-general.php?page=delete_duplicate_data
    • > Notice in wp-content/plugins/delete-duplicate-data/delete-duplicate-data.php+137
    Undefined index: delete_duplicate_category_hidden

SRP 0% 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
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/delete-duplicate-data/class/our_plugins.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/delete-duplicate-data/delete-duplicate-data.php:12

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=delete_duplicate_data
    • > Network (severe)
    wp-admin/admin-ajax.php - Failed to load resource: the server responded with a status of 400 (Bad Request)
    • > GET request to /wp-admin/options-general.php?page=delete_duplicate_data
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
    • > GET request to /wp-admin/options-general.php?page=delete_duplicate_data
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.
    • > GET request to /wp-admin/options-general.php?page=delete_duplicate_data
    • > Other (severe) in unknown
    chrome-error://chromewebdata/ - Refused to display 'https://developers.google.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
10 plugin tags: duplicate category, category, post, trash, custom post...

delete-duplicate-data/delete-duplicate-data.php Passed 13 tests

The main file in "Delete Duplicate Data" v. 1.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
86 characters long description:
Delete Duplicate post, category, pages, custom post, taxonomy,trash,Delete Permanently

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected8,302 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
CSS531296,214
JavaScript35882791,567
PHP26616292
SVG100229

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected