84% replace-text

Code Review | Replace Text

WordPress plugin Replace Text scored 84% from 54 tests.

About plugin

  • Plugin page: replace-text
  • Plugin version: 1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.2.2
  • WordPress version: 6.3.1
  • First release: Aug 1, 2019
  • Latest release: Jun 21, 2023
  • Number of updates: 16
  • Update frequency: every 88.8 days
  • Top authors: yarddiant (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

400+ active / 13,896 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

An overview of server-side resources used by Replace Text
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.44 ▼14.78
Dashboard /wp-admin3.31 ▲0.0144.94 ▼3.95
Posts /wp-admin/edit.php3.36 ▲0.0148.06 ▲5.18
Add New Post /wp-admin/post-new.php5.89 ▲0.0193.20 ▲7.54
Media Library /wp-admin/upload.php3.24 ▲0.0136.29 ▲1.27

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Replace Text
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7014.47 ▲0.081.76 ▼0.2137.57 ▼5.31
Dashboard /wp-admin2,222 ▲315.83 ▲0.93104.15 ▼2.1137.86 ▼4.76
Posts /wp-admin/edit.php2,105 ▲192.05 ▼0.0039.37 ▲5.8036.04 ▼1.09
Add New Post /wp-admin/post-new.php1,555 ▲1323.34 ▲5.27613.44 ▲15.9552.92 ▲2.70
Media Library /wp-admin/upload.php1,404 ▲134.22 ▲0.0696.30 ▼7.0042.09 ▼0.19

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/replace-text/replace-text.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Donate link: Please fix this invalid URI: ""
You can look at the official readme.txt

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

The entry point to "Replace Text" version 1.0 is a PHP file that has certain tags in its header comment area
93 characters long description:
This plugin will help you to replace a text in whole Wordpress website with the required one.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected93 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1303293

PHP code Passed 2 tests

A brief analysis 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.12
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%
Functions5
▷ Named functions5100.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
PNG images were not found in this plugin