68% multireplace

Code Review | MultiReplace

WordPress plugin MultiReplace scored68%from 54 tests.

About plugin

  • Plugin page: multireplace
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.0
  • WordPress version: 6.3.1
  • First release: Mar 21, 2016
  • Latest release: Nov 14, 2018
  • Number of updates: 11
  • Update frequency: every 88.3 days
  • Top authors: rtowebsites (54.55%)crazypsycho (54.55%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,009 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.94MB] [CPU: ▼37.86ms] Passed 4 tests

Server-side resources used by MultiReplace
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.68 ▼3.56
Dashboard /wp-admin3.01 ▼0.3425.94 ▼38.60
Posts /wp-admin/edit.php3.01 ▼0.3527.00 ▼27.96
Add New Post /wp-admin/post-new.php3.01 ▼2.8823.00 ▼75.30
Media Library /wp-admin/upload.php3.01 ▼0.2224.46 ▼9.56
MultiReplace /wp-admin/tools.php?page=multireplace3.0124.29

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for MultiReplace
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4314.69 ▲0.281.69 ▲0.0542.85 ▼0.51
Dashboard /wp-admin2,196 ▲195.52 ▼0.1284.93 ▼15.2136.87 ▼9.52
Posts /wp-admin/edit.php2,104 ▲42.03 ▲0.0139.86 ▲4.1937.15 ▲0.75
Add New Post /wp-admin/post-new.php1,530 ▲222.91 ▼0.31618.74 ▼88.4351.12 ▼1.85
Media Library /wp-admin/upload.php1,404 ▲74.21 ▼0.07107.98 ▲4.9643.98 ▲0.29
MultiReplace /wp-admin/tools.php?page=multireplace8012.0224.2227.01

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/tools.php?page=multireplace
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/multireplace/multireplace.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === multireplace === )
Please take inspiration from this readme.txt

multireplace/multireplace.php 92% from 13 tests

The main PHP script in "MultiReplace" version 1.0.2 is automatically included on every request by WordPress
It is important to fix the following:
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected98 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3294898

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.86
▷ Minimum method complexity1.00
▷ Maximum method complexity7.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%
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

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin