84% duplicate-title-validate

Code Review | Duplicate Title Validate

WordPress plugin Duplicate Title Validate scored84%from 54 tests.

About plugin

  • Plugin page: duplicate-title-v...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0
  • WordPress version: 6.3.1
  • First release: Oct 8, 2014
  • Latest release: Oct 25, 2014
  • Number of updates: 5
  • Update frequency: every 3.8 days
  • Top authors: wallfa_hm (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

800+ active /9,594 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.40ms] Passed 4 tests

Server-side resources used by Duplicate Title Validate
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0234.27 ▼13.14
Dashboard /wp-admin3.32 ▲0.0243.69 ▼2.60
Posts /wp-admin/edit.php3.37 ▲0.0246.44 ▲3.50
Add New Post /wp-admin/post-new.php5.92 ▲0.0493.71 ▼9.35
Media Library /wp-admin/upload.php3.24 ▲0.0236.12 ▼0.52

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Duplicate Title Validate
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.18 ▼1.571.93 ▲0.0341.90 ▼0.82
Dashboard /wp-admin2,206 ▲214.85 ▼1.04104.93 ▲1.3038.45 ▲0.08
Posts /wp-admin/edit.php2,091 ▲22.03 ▼0.0340.36 ▼2.1535.54 ▼1.11
Add New Post /wp-admin/post-new.php1,535 ▲223.18 ▲0.11615.83 ▼5.9054.73 ▲4.56
Media Library /wp-admin/upload.php1,382 ▼64.23 ▲0.0197.33 ▼8.5340.23 ▼2.53

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/duplicate-title-validate/duplicate-title-validate.php:36

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% 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:
  • Contributors: Plugin contributors not specified
  • Screenshots: Screenshot #1 (screenshot-1.png) image required
You can look at the official readme.txt

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

Analyzing the main PHP file in "Duplicate Title Validate" version 1.0
54 characters long description:
this plugin help , not allow publish Duplicate Title .

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin113 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2362668
PO File13325
JavaScript14520

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png66.53KB25.39KB▼ 61.84%