78% find-duplicates

Code Review | Find Duplicates

WordPress plugin Find Duplicates scored78%from 54 tests.

About plugin

  • Plugin page: find-duplicates
  • Plugin version: 1.4.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.6.1
  • WordPress version: 6.3.1
  • First release: Jul 20, 2011
  • Latest release: Oct 7, 2013
  • Number of updates: 15
  • Update frequency: every 54.7 days
  • Top authors: markusseyer (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

2,000+ active /30,177 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Find Duplicates
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1338.31 ▼1.68
Dashboard /wp-admin3.43 ▲0.1346.09 ▼3.72
Posts /wp-admin/edit.php3.54 ▲0.1949.97 ▲1.51
Add New Post /wp-admin/post-new.php6.01 ▲0.1289.60 ▼11.39
Media Library /wp-admin/upload.php3.35 ▲0.1232.97 ▼1.03
Find duplicates /wp-admin/tools.php?page=find-duplicates/find-duplicates.php3.1624.16
Find duplicates /wp-admin/options-general.php?page=find-duplicates/find-duplicates.php3.1625.63

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 28 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
db_upgraded
find_duplicates_data
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Find Duplicates
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲7513.21 ▼1.594.41 ▲2.6641.64 ▼2.80
Dashboard /wp-admin2,216 ▲285.87 ▲0.98106.57 ▼8.5339.50 ▼2.82
Posts /wp-admin/edit.php2,099 ▲102.03 ▲0.0138.96 ▲1.5334.66 ▲3.54
Add New Post /wp-admin/post-new.php1,526 ▼723.28 ▼0.17660.64 ▼30.6252.32 ▼13.18
Media Library /wp-admin/upload.php1,401 ▲134.18 ▼0.0395.73 ▼11.3243.24 ▼8.16
Find duplicates /wp-admin/tools.php?page=find-duplicates/find-duplicates.php1,1122.1658.6430.82
Find duplicates /wp-admin/options-general.php?page=find-duplicates/find-duplicates.php1,2942.1942.9530.22

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/tools.php?page=find-duplicates/find-duplicates.php
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method FindDuplicates::load_javascript() should not be called statically
    • > GET request to /wp-admin/options-general.php?page=find-duplicates/find-duplicates.php
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method FindDuplicates::load_javascript_options() should not be called statically

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
Almost there! Just fix the following items
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/find-duplicates/tpl/donation.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/find-duplicates/tpl/search.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/find-duplicates/tpl/options.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/find-duplicates/tpl/metabox.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/find-duplicates/find-duplicates.php:12

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 describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Screenshots: Please add images for these screenshots: #1 (Find duplicates), #2 (Find duplicates settings page)
Please take inspiration from this readme.txt

find-duplicates/find-duplicates.php 92% from 13 tests

Analyzing the main PHP file in "Find Duplicates" version 1.4.6
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 260 characters long)

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 detected1,358 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP59527910
JavaScript2195275
PO File15459124
CSS211449

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity81.00
▷ Minimum class complexity81.00
▷ Maximum class complexity81.00
Average method complexity4.48
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods23
▷ Static methods2191.30%
▷ Public methods1565.22%
▷ Protected methods834.78%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
13 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/smoothness/images/ui-icons_cd0a0a_256x240.png4.27KB4.11KB▼ 3.78%
css/smoothness/images/ui-bg_glass_65_ffffff_1x400.png0.10KB0.10KB▼ 5.71%
css/smoothness/images/ui-bg_flat_75_ffffff_40x100.png0.17KB0.08KB▼ 51.12%
css/smoothness/images/ui-bg_glass_75_dadada_1x400.png0.11KB0.16KB0.00%
css/smoothness/images/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%