90% real-time-find-and-replace

Code Review | Real-Time Find and Replace

WordPress plugin Real-Time Find and Replace scored90%from 54 tests.

About plugin

  • Plugin page: real-time-find-an...
  • Plugin version: 4.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Jul 2, 2009
  • Latest release: Oct 19, 2023
  • Number of updates: 106
  • Update frequency: every 49.3 days
  • Top authors: Marios Alexandrou (100%)

Code review

54 tests

User reviews

76 reviews

Install metrics

100,000+ active /719,680 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
Install script ran successfully

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

An overview of server-side resources used by Real-Time Find and Replace
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0436.80 ▲1.23
Dashboard /wp-admin3.31 ▲0.0144.60 ▲2.44
Posts /wp-admin/edit.php3.36 ▲0.0144.17 ▲1.96
Add New Post /wp-admin/post-new.php5.89 ▲0.0198.44 ▲4.26
Media Library /wp-admin/upload.php3.23 ▲0.0132.62 ▼2.29
Real-Time Find and Replace /wp-admin/tools.php?page=real-time-find-and-replace3.2030.09

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

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

Browser metrics Passed 4 tests

Real-Time Find and Replace: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.23 ▼0.131.74 ▲0.0244.87 ▲9.03
Dashboard /wp-admin2,199 ▲185.64 ▼0.0290.87 ▼8.7038.98 ▼3.69
Posts /wp-admin/edit.php2,104 ▲41.98 ▼0.0244.02 ▲8.9141.50 ▲4.83
Add New Post /wp-admin/post-new.php1,539 ▲1122.97 ▼0.29659.46 ▼31.7359.17 ▲7.30
Media Library /wp-admin/upload.php1,398 ▼24.16 ▼0.0498.39 ▼3.6741.76 ▼2.08
Real-Time Find and Replace /wp-admin/tools.php?page=real-time-find-and-replace9701.7926.7829.58

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

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 Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
10 plugin tags: regex find, on demand find, on demand replace, search and replace, regex replace...

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

The main PHP script in "Real-Time Find and Replace" version 4.0.3 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 361 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected381 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP13243205
CSS1160117
JavaScript219459

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
css/draggable.png2.73KB0.13KB▼ 95.17%