84% unique-title-checker

Code Review | Unique Title Checker

WordPress plugin Unique Title Checker scored84%from 54 tests.

About plugin

  • Plugin page: unique-title-checker
  • Plugin version: 1.7.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 4, 2014
  • Latest release: Sep 24, 2023
  • Number of updates: 37
  • Update frequency: every 87.7 days
  • Top authors: Kau-Boy (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

1,000+ active /12,954 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.39ms] Passed 4 tests

Server-side resources used by Unique Title Checker
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.30 ▲0.71
Dashboard /wp-admin3.33 ▲0.0348.53 ▲0.71
Posts /wp-admin/edit.php3.38 ▲0.0346.04 ▼3.47
Add New Post /wp-admin/post-new.php5.93 ▲0.0582.96 ▼11.52
Media Library /wp-admin/upload.php3.26 ▲0.0337.84 ▲2.80

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Unique Title Checker: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.78 ▲0.491.68 ▲0.0243.11 ▼0.70
Dashboard /wp-admin2,195 ▲185.61 ▼0.0585.25 ▼1.2337.93 ▼2.28
Posts /wp-admin/edit.php2,097 ▼31.98 ▲0.0136.84 ▼0.2732.33 ▲0.66
Add New Post /wp-admin/post-new.php1,531 ▲323.01 ▼0.23657.77 ▼24.7150.66 ▼12.28
Media Library /wp-admin/upload.php1,397 ▼34.14 ▼0.0398.89 ▼10.4241.00 ▼4.32

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 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
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/unique-title-checker/unique-title-checker.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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
4 plugin tags: duplicate title, title, unique title, seo

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

"Unique Title Checker" version 1.7.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
92 characters long description:
Checks if the title of a post, page or custom post type is unique and warn the editor if not

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
Success! There were no dangerous files found in this plugin217 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP148138138
JavaScript2151579

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity2.11
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods111.11%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ 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
There were not PNG files found in your plugin