84% duplicate-title-checker

Code Review | Duplicate Title Checker

WordPress plugin Duplicate Title Checker scored84%from 54 tests.

About plugin

  • Plugin page: duplicate-title-c...
  • Plugin version: 1.2
  • PHP compatiblity: 5.5.9+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.2.1
  • WordPress version: 6.3.1
  • First release: Dec 24, 2013
  • Latest release: May 30, 2019
  • Number of updates: 8
  • Update frequency: every 248.1 days
  • Top authors: ketanajani (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

700+ active /15,395 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.15MB] [CPU: ▼12.77ms] Passed 4 tests

An overview of server-side resources used by Duplicate Title Checker
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.64 ▼4.83
Dashboard /wp-admin3.21 ▼0.1034.26 ▼16.45
Posts /wp-admin/edit.php3.27 ▼0.0834.34 ▼15.50
Add New Post /wp-admin/post-new.php5.47 ▼0.4274.44 ▼14.30
Media Library /wp-admin/upload.php3.21 ▼0.0231.73 ▼1.08

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Duplicate Title Checker
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6713.27 ▼1.111.60 ▼0.1839.27 ▼5.32
Dashboard /wp-admin2,211 ▲205.91 ▲1.0097.57 ▼16.2137.57 ▼7.37
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0038.74 ▲0.3833.93 ▲1.09
Add New Post /wp-admin/post-new.php1,542 ▲718.25 ▼4.83602.53 ▼60.9648.04 ▼2.06
Media Library /wp-admin/upload.php1,381 ▼74.22 ▲0.0597.77 ▲0.2443.57 ▲1.14

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/duplicate-title-checker/duplicate-title-checker.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Tags: There are too many tags (20 tag instead of maximum 10)
The official readme.txt might help

duplicate-title-checker/duplicate-title-checker.php Passed 13 tests

The main file in "Duplicate Title Checker" v. 1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
103 characters long description:
This plugin provides alert message for duplicate post title and unique post title when adding new post.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin122 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript210463
PHP1261259

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions5
▷ Named functions5100.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
No PNG files were detected