89% find-and-replace-content

Code Review | Find And Replace content for WordPress

WordPress plugin Find And Replace content for WordPress scored89%from 54 tests.

About plugin

  • Plugin page: find-and-replace-...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.7
  • WordPress version: 6.3.1
  • First release: Jan 23, 2017
  • Latest release: Feb 22, 2017
  • Number of updates: 8
  • Update frequency: every 3.9 days
  • Top authors: jankimoradiya (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /2,495 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼7.71ms] Passed 4 tests

An overview of server-side resources used by Find And Replace content for WordPress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.09 ▼2.58
Dashboard /wp-admin3.34 ▼0.0045.33 ▼15.92
Posts /wp-admin/edit.php3.39 ▲0.0447.20 ▼1.40
Add New Post /wp-admin/post-new.php5.92 ▲0.0483.79 ▼10.93
Media Library /wp-admin/upload.php3.26 ▲0.0433.57 ▲0.72

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: 1 new table, 6 new options
New tables
wp_far
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Find And Replace content for WordPress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8113.32 ▼1.041.90 ▲0.0843.18 ▼0.29
Dashboard /wp-admin2,222 ▲334.85 ▼0.07105.38 ▼17.0140.71 ▼5.58
Posts /wp-admin/edit.php2,105 ▲162.06 ▲0.0739.10 ▲0.0336.18 ▲0.10
Add New Post /wp-admin/post-new.php1,556 ▲2318.70 ▼4.37629.91 ▼12.7568.00 ▲14.23
Media Library /wp-admin/upload.php1,404 ▲194.11 ▼0.0994.45 ▼2.9142.37 ▼0.01

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

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files

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 describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: find, findandreplace, find replace, replace, find and replace

find-and-replace-content/FAR.php 92% from 13 tests

The entry point to "Find And Replace content for WordPress" version 1.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("find-and-replace-content.php" instead of "FAR.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected305 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP43413261
JavaScript12627
CSS15117

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.57
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
(invalid) images/loading.png11.27KB0.00KB▼ 100.00%