84% duplicate-content-cure

Code Review | Duplicate Content Cure

WordPress plugin Duplicate Content Cure scored84%from 54 tests.

About plugin

  • Plugin page: duplicate-content...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2.2
  • WordPress version: 6.3.1
  • First release: Jun 2, 2015
  • Latest release: Jun 2, 2015
  • Number of updates: 4
  • Update frequency: every 1.3 days
  • Top authors: badijones (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /2,956 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.00MB] [CPU: ▼10.54ms] Passed 4 tests

Server-side resources used by Duplicate Content Cure
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.70 ▼2.12
Dashboard /wp-admin3.31 ▲0.0147.51 ▼7.21
Posts /wp-admin/edit.php3.36 ▲0.0053.41 ▼0.38
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.04 ▼27.53
Media Library /wp-admin/upload.php3.23 ▲0.0033.98 ▼5.31
Duplicate Content Cure /wp-admin/options-general.php?page=duplicate-content-cure/duplicate-content-cure.php3.1835.59

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
dupContCure_noindex_options

Browser metrics Passed 4 tests

An overview of browser requirements for Duplicate Content Cure
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.34 ▼0.211.51 ▼0.2143.10 ▲4.91
Dashboard /wp-admin2,202 ▲255.62 ▲0.0095.14 ▲9.1140.35 ▲2.69
Posts /wp-admin/edit.php2,104 ▲42.03 ▲0.0438.97 ▼0.7235.49 ▼1.76
Add New Post /wp-admin/post-new.php1,531 ▲322.95 ▼0.26650.67 ▼71.7449.25 ▼12.19
Media Library /wp-admin/upload.php1,404 ▲14.18 ▲0.0397.96 ▼17.3642.49 ▼4.55
Duplicate Content Cure /wp-admin/options-general.php?page=duplicate-content-cure/duplicate-content-cure.php8382.0327.5133.90

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/duplicate-content-cure/duplicate-content-cure.php
    • > /wp-content/plugins/duplicate-content-cure/uninstall.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% 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
7 plugin tags: category, noindex, categories, seo, archives...

duplicate-content-cure/duplicate-content-cure.php 92% from 13 tests

This is the main PHP file of "Duplicate Content Cure" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 190 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin117 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP28427117

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.75
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%
Functions3
▷ Named functions3100.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
No PNG files were detected