79% real-time-auto-find-and-replace

Code Review | Better Find and Replace

WordPress plugin Better Find and Replace scored79%from 54 tests.

About plugin

  • Plugin page: real-time-auto-fi...
  • Plugin version: 1.5.5
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4
  • WordPress version: 6.3.1
  • First release: Nov 20, 2015
  • Latest release: Nov 14, 2023
  • Number of updates: 164
  • Update frequency: every 17.8 days
  • Top authors: m.tuhin (55.49%)codesolz (45.12%)

Code review

54 tests

User reviews

106 reviews

Install metrics

40,000+ active /546,945 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.09MB] [CPU: ▼3.10ms] Passed 4 tests

A check of server-side resources used by Better Find and Replace
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1242.78 ▲0.23
Dashboard /wp-admin3.40 ▲0.0548.33 ▼12.65
Posts /wp-admin/edit.php3.50 ▲0.1547.83 ▲2.85
Add New Post /wp-admin/post-new.php6.00 ▲0.1198.48 ▼2.82
Media Library /wp-admin/upload.php3.32 ▲0.0934.47 ▲3.93
Replace in Database /wp-admin/admin.php?page=cs-replace-in-database3.5133.21
All Replacement Rules /wp-admin/admin.php?page=cs-all-masking-rules3.3934.50
Add New Rule /wp-admin/admin.php?page=cs-add-replacement-rule3.6331.60
Restore in Database /wp-admin/admin.php?page=cs-bfar-restore-database-pro3.2929.83
Go Pro /wp-admin/admin.php?page=cs-bfar-go-pro3.2829.33

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 55 new files
Database: 1 new table, 9 new options
New tables
wp_rtafar_rules
New WordPress options
widget_theysaidso_widget
db_upgraded
rtafar_db_version
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
rtafar_plugin_version
rtafar_plugin_install_date

Browser metrics Passed 4 tests

This is an overview of browser requirements for Better Find and Replace
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,962 ▲19013.47 ▼0.7011.60 ▲9.7633.21 ▼10.38
Dashboard /wp-admin2,257 ▲795.69 ▲0.0790.80 ▼24.8482.30 ▲40.70
Posts /wp-admin/edit.php2,176 ▲762.02 ▲0.0539.02 ▲0.4536.65 ▲5.10
Add New Post /wp-admin/post-new.php1,581 ▲5522.98 ▲0.07752.44 ▲94.9559.80 ▲8.14
Media Library /wp-admin/upload.php1,459 ▲564.17 ▲0.03103.10 ▲2.8875.54 ▲34.15
Replace in Database /wp-admin/admin.php?page=cs-replace-in-database1,3062.4254.2393.29
All Replacement Rules /wp-admin/admin.php?page=cs-all-masking-rules1,0812.0325.0834.79
Add New Rule /wp-admin/admin.php?page=cs-add-replacement-rule1,2812.1031.9553.75
Restore in Database /wp-admin/admin.php?page=cs-bfar-restore-database-pro8072.0227.3124.72
Go Pro /wp-admin/admin.php?page=cs-bfar-go-pro2,6406.65168.71260.37

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_rtafar_rules
  • This plugin did not uninstall successfully, leaving 9 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • rtafar_db_version
    • rtafar_plugin_version
    • rtafar_plugin_install_date

Smoke tests Passed 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)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed: The official readme.txt is a good inspiration

real-time-auto-find-and-replace/real-time-auto-find-and-replace.php 92% from 13 tests

The main PHP script in "Better Find and Replace" version 1.5.5 is automatically included on every request by WordPress
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 354 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin17,891 lines of code in 52 files:
LanguageFilesBlank linesComment linesLines of code
JSON40012,884
PHP349241,4953,931
PO File1183223508
CSS4169354
JavaScript822130
Markdown116084

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity18.40
▷ Minimum class complexity1.00
▷ Maximum class complexity129.00
Average method complexity3.23
▷ Minimum method complexity1.00
▷ Maximum method complexity50.00
Code structure
Namespaces12
Interfaces0
Traits0
Classes30
▷ Abstract classes00.00%
▷ Concrete classes30100.00%
▷ Final classes00.00%
Methods226
▷ Static methods8035.40%
▷ Public methods17677.88%
▷ Protected methods00.00%
▷ Private methods5022.12%
Functions5
▷ Named functions120.00%
▷ Anonymous functions480.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.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.02MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/icon-24x24.png0.43KB0.64KB0.00%
assets/img/restore-db-pro.png24.99KB15.13KB▼ 39.44%