84% notify-duplicate-title

Code Review | Notify Duplicate Title

WordPress plugin Notify Duplicate Title scored 84% from 54 tests.

About plugin

  • Plugin page: notify-duplicate-...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.6
  • WordPress version: 6.3.1
  • First release: Nov 15, 2016
  • Latest release: Nov 15, 2016
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: smkn (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 1,358 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.66ms] Passed 4 tests

An overview of server-side resources used by Notify Duplicate Title
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.94 ▼8.88
Dashboard /wp-admin3.31 ▲0.0144.80 ▼6.55
Posts /wp-admin/edit.php3.36 ▲0.0149.08 ▼0.58
Add New Post /wp-admin/post-new.php5.91 ▲0.0383.32 ▼18.63
Media Library /wp-admin/upload.php3.24 ▲0.0136.44 ▲0.27

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Notify Duplicate Title
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.18 ▼1.384.91 ▲2.9240.80 ▼4.23
Dashboard /wp-admin2,209 ▲185.90 ▲1.0399.29 ▼16.6040.42 ▼7.12
Posts /wp-admin/edit.php2,086 ▼32.02 ▲0.0339.20 ▲3.0435.89 ▼1.79
Add New Post /wp-admin/post-new.php1,542 ▲2318.18 ▼5.03632.99 ▼65.6859.05 ▲5.17
Media Library /wp-admin/upload.php1,382 ▼34.14 ▼0.0195.97 ▼19.9442.30 ▼5.75

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/notify-duplicate-title/notify-duplicate-title.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (Unique title.), #2 (Duplicate title.)
The official readme.txt is a good inspiration

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

Analyzing the main PHP file in "Notify Duplicate Title" version 1.0.0
23 characters long description:
Notify Duplicate Title.

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
No dangerous file extensions were detected66 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript12024
PHP151124
PO File12218

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions2
▷ Named functions2100.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
2 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png37.21KB21.23KB▼ 42.95%
screenshot-1.png36.94KB21.01KB▼ 43.12%