93% similar-post-title-checker

Code Review | Similar post-title checker

WordPress plugin Similar post-title checker scored 93% from 54 tests.

About plugin

  • Plugin page: similar-post-titl...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.1.0
  • WordPress version: 5.8.1
  • First release: Oct 30, 2014
  • Latest release: May 12, 2020
  • Number of updates: 11
  • Update frequency: every 183.7 days
  • Top authors: man4toman (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

300+ active / 4,023 total downloads

Benchmarks

Plugin footprint Passed 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.02MB] [CPU: ▼141.56ms] Passed 4 tests

A check of server-side resources used by Similar post-title checker
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1336.13 ▲14.43
Dashboard /wp-admin3.08 ▲0.0244.34 ▲0.69
Posts /wp-admin/edit.php3.14 ▲0.0242.51 ▼3.14
Add New Post /wp-admin/post-new.php5.44 ▲0.0089.54 ▼562.68
Media Library /wp-admin/upload.php3.03 ▲0.0232.31 ▼1.10

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Similar post-title checker: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲7315.77 ▲0.158.55 ▼2.0547.12 ▼3.11
Dashboard /wp-admin2,973 ▲425.87 ▼0.16133.18 ▼16.60110.13 ▼7.21
Posts /wp-admin/edit.php2,736 ▼32.71 ▼0.0162.61 ▼5.3487.73 ▼8.62
Add New Post /wp-admin/post-new.php1,504 ▼17918.57 ▼0.11363.81 ▼21.77112.72 ▲2.70
Media Library /wp-admin/upload.php1,807 ▼05.02 ▼0.02145.23 ▲1.07116.82 ▲7.12

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/similar-post-title-checker/similar-post-title-checker.php:13

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Plugin in action), #2 (Plugin options from 'Screen Options')
  • Tags: Please reduce the number of tags, currently 25 tag instead of maximum 10
The official readme.txt is a good inspiration

similar-post-title-checker/similar-post-title-checker.php 92% from 13 tests

Analyzing the main PHP file in "Similar post-title checker" version 1.0.0
It is important to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected154 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP1102167
JavaScript171555
PO File16731
CSS1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png31.03KB13.37KB▼ 56.93%
screenshot-2.png18.00KB6.79KB▼ 62.27%