84% wp-find-and-replace

Code Review | WP Find And Replace

WordPress plugin WP Find And Replace scored84%from 54 tests.

About plugin

  • Plugin page: wp-find-and-replace
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 6.3.1
  • First release: Jan 6, 2017
  • Latest release: Jan 6, 2017
  • Number of updates: 4
  • Update frequency: every 12.8 days
  • Top authors: afzalmultani (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

600+ active /8,828 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

An overview of server-side resources used by WP Find And Replace
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0137.62 ▼4.84
Dashboard /wp-admin3.36 ▲0.0149.84 ▼1.76
Posts /wp-admin/edit.php3.41 ▲0.0149.61 ▼1.96
Add New Post /wp-admin/post-new.php5.94 ▲0.0198.08 ▼9.38
Media Library /wp-admin/upload.php3.28 ▲0.0139.34 ▲5.87

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Find And Replace
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲4614.34 ▲0.021.76 ▼0.5342.50 ▼0.92
Dashboard /wp-admin2,201 ▲305.55 ▼0.1489.78 ▼13.0774.87 ▲33.47
Posts /wp-admin/edit.php2,121 ▲211.97 ▼0.0237.97 ▼2.6334.53 ▲1.00
Add New Post /wp-admin/post-new.php1,543 ▲1723.14 ▲0.08619.86 ▼5.98166.49 ▲107.46
Media Library /wp-admin/upload.php1,415 ▲154.22 ▼0.0398.18 ▼7.6578.23 ▲31.36

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-find-and-replace/search-replace.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: replace, page, find, search, find and replace...

wp-find-and-replace/search-replace.php 92% from 13 tests

The primary PHP file in "WP Find And Replace" version 1.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-find-and-replace.php" instead of "search-replace.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin66 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2251162
CSS1004

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.42
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%
Functions3
▷ Named functions3100.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
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
images/menu-icon.png1.60KB0.71KB▼ 55.37%