82% ddev-find-replace

Code Review | DDev Find Replace

WordPress plugin DDev Find Replace scored 82% from 54 tests.

About plugin

  • Plugin page: ddev-find-replace
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.4
  • WordPress version: 5.8.1
  • First release: Jun 11, 2020
  • Latest release: Jun 11, 2020
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: deepfitnessclub (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 178 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼145.37ms] Passed 4 tests

Analyzing server-side resources used by DDev Find Replace
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0230.80 ▼2.78
Dashboard /wp-admin3.08 ▲0.0338.45 ▼6.83
Posts /wp-admin/edit.php3.13 ▲0.0342.23 ▼0.37
Add New Post /wp-admin/post-new.php5.44 ▲0.0086.11 ▼571.51
Media Library /wp-admin/upload.php3.02 ▲0.0232.12 ▲1.02
Find Replace /wp-admin/admin.php?page=find_replace2.9925.62
Remove Replace Tool /wp-admin/admin.php?page=remove_replace_tool2.9928.51
Find Replace Tool /wp-admin/admin.php?page=find_replace_tool3.0028.17

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 22 new files
Database: 2 new tables, no new options
New tables

Browser metrics Passed 4 tests

This is an overview of browser requirements for DDev Find Replace
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,741 ▲14615.87 ▲0.259.43 ▲1.9950.58 ▲1.64
Dashboard /wp-admin3,007 ▲735.90 ▼0.22133.98 ▼0.19100.73 ▼8.22
Posts /wp-admin/edit.php2,773 ▲342.81 ▲0.1369.18 ▲0.6989.33 ▼2.32
Add New Post /wp-admin/post-new.php1,700 ▲2818.84 ▲0.34374.08 ▲20.03110.61 ▲5.56
Media Library /wp-admin/upload.php1,844 ▲345.00 ▼0.02161.62 ▲17.12108.15 ▼5.77
Find Replace /wp-admin/admin.php?page=find_replace1,1172.0956.0498.40
Remove Replace Tool /wp-admin/admin.php?page=remove_replace_tool1,1052.3358.6676.70
Find Replace Tool /wp-admin/admin.php?page=find_replace_tool1,2642.3662.0190.23

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
    • > GET request to /wp-admin/admin.php?page=find_replace_tool
    • > Notice in wp-content/plugins/ddev-find-replace/inc/ajax/get-all-presets.php+25
    Undefined variable: output

SRP 50% from 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
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/ddev-find-replace/ddev-find-replace.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=find_replace
    • > Network (severe)
    wp-admin/%3C?php%20echo%20plugins_url(%27/assets/images/find-replace.png%27,%20DDEV_FR_PLUGIN_URL)%20?%3E - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=find_replace
    • > Network (severe)
    wp-admin/%3C?php%20echo%20plugins_url(%27/assets/images/remove-replace.png%27,%20DDEV_FR_PLUGIN_URL)%20?%3E - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=find_replace_tool
    • > Javascript (severe) in unknown
    /wp-content/plugins/ddev-find-replace/assets/js/find-replace.js?ver=5.8.1 13:24 Uncaught TypeError: Cannot read properties of null (reading 'status')


Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === ddev-find-replace === )
You can look at the official readme.txt

ddev-find-replace/ddev-find-replace.php 85% from 13 tests

This is the main PHP file of "DDev Find Replace" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 281 characters long)
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.7" instead of "5.2")

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 plugin1,015 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.39
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 functions18100.00%
▷ Anonymous functions00.00%
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/remove-replace.png13.67KB7.31KB▼ 46.55%
assets/images/find-replace.png18.88KB9.63KB▼ 48.99%