84% find-and-replace-text

Code Review | Find And Replace Text

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

About plugin

  • Plugin page: find-and-replace-...
  • Plugin version: 2.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.9.8
  • WordPress version: 6.3.1
  • First release: Sep 29, 2018
  • Latest release: Sep 29, 2018
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: jesselau (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

700+ active /3,916 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Find And Replace Text
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.68 ▼3.19
Dashboard /wp-admin3.31 ▲0.0147.27 ▼3.35
Posts /wp-admin/edit.php3.36 ▲0.0150.03 ▲0.55
Add New Post /wp-admin/post-new.php5.89 ▲0.0185.34 ▼22.38
Media Library /wp-admin/upload.php3.24 ▲0.0133.72 ▲0.06

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Find And Replace Text
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲614.61 ▲0.261.71 ▼0.2040.91 ▼3.79
Dashboard /wp-admin2,201 ▲275.67 ▲0.1289.36 ▼5.6437.02 ▼7.15
Posts /wp-admin/edit.php2,103 ▲32.03 ▲0.0136.37 ▼2.0238.76 ▲1.38
Add New Post /wp-admin/post-new.php1,529 ▼922.93 ▼0.20635.75 ▲21.2648.26 ▼10.05
Media Library /wp-admin/upload.php1,394 ▼04.21 ▲0.0199.23 ▼5.0542.46 ▼1.14

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

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 everything seems fine, this is not 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
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/find-and-replace-text/find-and-replace-text.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: editor, tinymce, replace, find

find-and-replace-text/find-and-replace-text.php Passed 13 tests

The entry point to "Find And Replace Text" version 2.0 is a PHP file that has certain tags in its header comment area
79 characters long description:
Add find and replace function in WordPress editor in both visual and text mode.

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
No dangerous file extensions were detected63 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1281463

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
PNG images were not found in this plugin