89% avoid-duplicate-titles

Code Review | Avoid Duplicate Titles

WordPress plugin Avoid Duplicate Titles scored89%from 54 tests.

About plugin

  • Plugin page: avoid-duplicate-t...
  • Plugin version: 2.0.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-4.9.7
  • WordPress version: 6.3.1
  • First release: Jan 10, 2018
  • Latest release: Jul 13, 2018
  • Number of updates: 55
  • Update frequency: every 3.4 days
  • Top authors: Venutius (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /5,898 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.05MB] [CPU: ▼0.10ms] Passed 4 tests

A check of server-side resources used by Avoid Duplicate Titles
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0442.36 ▲1.79
Dashboard /wp-admin3.35 ▲0.0547.42 ▼0.96
Posts /wp-admin/edit.php3.40 ▲0.0546.46 ▲0.96
Add New Post /wp-admin/post-new.php5.95 ▲0.0786.49 ▲0.73
Media Library /wp-admin/upload.php3.27 ▲0.0532.36 ▼1.13
Avoid Duplicate Titles /wp-admin/options-general.php?page=AvoidDuplicates3.2433.10

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts
wpadt_selected_post_types

Browser metrics Passed 4 tests

An overview of browser requirements for Avoid Duplicate Titles
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.25 ▼0.901.72 ▼1.1143.86 ▼4.43
Dashboard /wp-admin2,210 ▲224.84 ▼0.07110.27 ▼10.7442.02 ▼2.18
Posts /wp-admin/edit.php2,098 ▲92.04 ▲0.0335.69 ▼3.2632.61 ▼1.05
Add New Post /wp-admin/post-new.php1,539 ▲423.50 ▲0.31656.03 ▼32.5752.00 ▼5.89
Media Library /wp-admin/upload.php1,395 ▲74.28 ▲0.0399.99 ▼9.7043.34 ▼4.96
Avoid Duplicate Titles /wp-admin/options-general.php?page=AvoidDuplicates8872.0223.9027.46

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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

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 errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Screenshots: Add a description for screenshot #3 in avoid-duplicate-titles/assets to your readme.txt
  • Donate link: Invalid URI found ("paypal.me/GeorgeChaplin")
You can look at the official readme.txt

avoid-duplicate-titles/avoid-duplicate-titles.php 92% from 13 tests

The main file in "Avoid Duplicate Titles" v. 2.0.2 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: Keep the plugin description shorter than 140 characters (currently 183 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected317 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP56755198
PO File1212289
JavaScript14730

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.34
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%
Functions10
▷ Named functions10100.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
There were not PNG files found in your plugin