63% delete-duplicate-posts

Code Review | Delete Duplicate Posts

WordPress plugin Delete Duplicate Posts scored63%from 54 tests.

About plugin

  • Plugin page: delete-duplicate-...
  • Plugin version: 4.8.9
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2
  • WordPress version: 6.3.1
  • First release: Sep 2, 2009
  • Latest release: Jul 5, 2023
  • Number of updates: 143
  • Update frequency: every 35.3 days
  • Top authors: lkoudal (84.62%)cleverplugins (16.08%)

Code review

54 tests

User reviews

102 reviews

Install metrics

20,000+ active /656,971 total downloads

Benchmarks

Plugin footprint 47% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲5.58MB] [CPU: ▲22.59ms] 75% from 4 tests

Analyzing server-side resources used by Delete Duplicate Posts
Please fix the following
  • Extra RAM: Try to keep extra memory usage under 5MB (currently 5.58MB on /wp-admin/delete-duplicate-posts.php-contact)
PageMemory (MB)CPU Time (ms)
Home /9.41 ▲5.9469.90 ▲34.74
Dashboard /wp-admin9.43 ▲6.0883.19 ▲22.89
Posts /wp-admin/edit.php9.43 ▲6.0770.03 ▲25.38
Add New Post /wp-admin/post-new.php10.10 ▲4.21112.77 ▲7.33
Media Library /wp-admin/upload.php9.43 ▲6.2070.29 ▲36.35
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius9.4360.22
Delete Duplicate Posts /wp-admin/tools.php?page=delete-duplicate-posts9.4459.88

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 215 new files
Database: 1 new table, 10 new options
New tables
wp_ddp_log
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
fs_accounts
can_compress_scripts
delete_duplicate_posts_options_v4
fs_debug_mode
fs_active_plugins
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Delete Duplicate Posts
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,901 ▲14014.36 ▼0.041.72 ▼0.0842.31 ▼4.81
Dashboard /wp-admin2,307 ▲1295.54 ▼0.0885.78 ▼16.2946.44 ▲0.46
Posts /wp-admin/edit.php2,126 ▲262.01 ▲0.0235.44 ▲0.1833.39 ▼0.86
Add New Post /wp-admin/post-new.php1,547 ▲2123.02 ▼0.11686.29 ▲9.8257.15 ▲4.98
Media Library /wp-admin/upload.php1,426 ▲294.22 ▼0.0597.43 ▼13.4746.36 ▲0.82
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius1,0932.0724.9729.95
Upgrade  ➤ /wp-admin/delete-duplicate-posts.php-pricing260.420.0713.15
Support Forum /wp-admin/delete-duplicate-posts.php-wp-support-forum260.420.097.82
Delete Duplicate Posts /wp-admin/tools.php?page=delete-duplicate-posts1,6291.9934.7850.56
Contact Us /wp-admin/delete-duplicate-posts.php-contact260.420.125.26

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/delete-duplicate-posts/freemius/includes/class-freemius.php+8486
    Undefined property: stdClass::$plugins
  • Zombie tables detected upon uninstall: 1 table
    • wp_ddp_log
  • This plugin did not uninstall successfully, leaving 10 options in the database
    • fs_active_plugins
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • fs_accounts
    • delete_duplicate_posts_options_v4
    • fs_debug_mode
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% 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 Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
    • > GET request to /wp-admin/delete-duplicate-posts.php-pricing
    • > Network (severe)
    wp-admin/delete-duplicate-posts.php-pricing - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/delete-duplicate-posts.php-wp-support-forum
    • > Network (severe)
    wp-admin/delete-duplicate-posts.php-wp-support-forum - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/delete-duplicate-posts.php-contact
    • > Network (severe)
    wp-admin/delete-duplicate-posts.php-contact - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: delete duplicate posts, delete, duplicate

delete-duplicate-posts/delete-duplicate-posts.php 85% from 13 tests

The main file in "Delete Duplicate Posts" v. 4.8.9 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 184 characters long)
  • Domain Path: The domain path folder does not exist ("/languages3223")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin35,868 lines of code in 156 files:
LanguageFilesBlank linesComment linesLines of code
PHP1318,32518,01335,109
JavaScript68091378
CSS14530175
Markdown2390110
JSON20073
XML110523

PHP code 50% from 2 tests

An overview of cyclomatic complexity and code structure
It is recommended to fix the following
  • Class cyclomatic complexity should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity
Average complexity per logical line of code0.62
Average class complexity87.57
▷ Minimum class complexity1.00
▷ Maximum class complexity3,073.00
Average method complexity4.59
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes54
▷ Abstract classes23.70%
▷ Concrete classes5296.30%
▷ Final classes00.00%
Methods1,334
▷ Static methods24918.67%
▷ Public methods94270.61%
▷ Protected methods171.27%
▷ Private methods37528.11%
Functions103
▷ Named functions10097.09%
▷ Anonymous functions32.91%
Constants147
▷ Global constants10068.03%
▷ Class constants4731.97%
▷ Public constants47100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
images/security-ninja-logo.png6.74KB7.44KB0.00%
images/cleverpluginslogo.png28.63KB10.85KB▼ 62.11%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
images/seoboosterlogo.png3.86KB4.07KB0.00%