83% better-search-and-replace

Code Review | OCSR ( OneClick search & replace ) OCSR URLs

WordPress plugin OCSR ( OneClick search & replace ) OCSR URLs scored83%from 54 tests.

About plugin

  • Plugin page: better-search-and...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.0
  • WordPress version: 6.3.1
  • First release: Jul 18, 2022
  • Latest release: Jul 18, 2022
  • Number of updates: 5
  • Update frequency: every 3.6 days
  • Top authors: itoneclick (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /310 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

Server-side resources used by OCSR ( OneClick search & replace ) OCSR URLs
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0136.14 ▼5.12
Dashboard /wp-admin3.31 ▲0.0143.02 ▼14.74
Posts /wp-admin/edit.php3.36 ▲0.0147.96 ▲0.27
Add New Post /wp-admin/post-new.php5.89 ▲0.0195.29 ▲3.62
Media Library /wp-admin/upload.php3.23 ▲0.0142.63 ▲6.50

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for OCSR ( OneClick search & replace ) OCSR URLs
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲8413.43 ▼0.945.23 ▲3.5138.53 ▼8.58
Dashboard /wp-admin2,225 ▲405.88 ▼0.0096.96 ▼1.0372.77 ▲32.63
Posts /wp-admin/edit.php2,111 ▲252.02 ▲0.0141.50 ▲0.2635.12 ▼1.61
Add New Post /wp-admin/post-new.php1,684 ▲15122.56 ▼0.61626.33 ▼55.8142.35 ▼24.32
Media Library /wp-admin/upload.php1,404 ▲164.13 ▼0.10115.22 ▲0.3945.52 ▼4.67
OCSR URLs /wp-admin/ocsr-url-update-urls.php260.440.1014.80

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
    • > GET request to /wp-admin/ocsr-url-update-urls.php
    • > Network (severe)
    wp-admin/ocsr-url-update-urls.php - Failed to load resource: the server responded with a status of 404 (Not Found)


Plugin configuration 83% 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: Add an image for screenshot #1 (The Admin screen for the plugin. screenshot-1.png)
  • Tags: You are using too many tags: 15 tag instead of maximum 10
You can take inspiration from this readme.txt

better-search-and-replace/ocsr-url-update-urls.php 77% from 13 tests

"OCSR ( OneClick search & replace ) OCSR URLs" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 279 characters long)
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("better-search-and-replace.php" instead of "ocsr-url-update-urls.php")

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
No dangerous file extensions were detected447 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.44
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions7100.00%
▷ Anonymous functions00.00%
▷ 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 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon.png0.58KB0.56KB▼ 2.70%