78% update-urls

Code Review | Update URLs - Quick and Easy way to search old links and replace them with new links in WordPress

WordPress plugin Update URLs - Quick and Easy way to search old links and replace them with new links in WordPress scored 78% from 54 tests.

About plugin

  • Plugin page: update-urls
  • Plugin version: 1.2.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-6.3
  • WordPress version: 6.3.1
  • First release: Mar 30, 2022
  • Latest release: Aug 11, 2023
  • Number of updates: 32
  • Update frequency: every 15.6 days
  • Top authors: kaizencoders (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

5,000+ active / 32,828 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲5.42MB] [CPU: ▲26.87ms] 75% from 4 tests

Server-side resources used by Update URLs - Quick and Easy way to search old links and replace them with new links in WordPress
Please have a look at the following items
  • Extra RAM: Extra memory usage should kept under 5MB (currently 5.42MB on /wp-admin/tools.php?page=update-urls)
PageMemory (MB)CPU Time (ms)
Home /9.20 ▲5.7463.88 ▲20.84
Dashboard /wp-admin9.22 ▲5.9275.71 ▲27.12
Posts /wp-admin/edit.php9.22 ▲5.8686.91 ▲39.30
Add New Post /wp-admin/post-new.php10.03 ▲4.15114.28 ▲24.18
Media Library /wp-admin/upload.php9.22 ▲5.9970.78 ▲35.33
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius9.2259.03
Update URLs /wp-admin/tools.php?page=update-urls9.2262.38

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 340 new files
Database: no new tables, 11 new options
New WordPress options
fs_accounts
fs_active_plugins
kc_uu_installed_on
fs_debug_mode
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
...

Browser metrics Passed 4 tests

Checking browser requirements for Update URLs - Quick and Easy way to search old links and replace them with new links in WordPress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,930 ▲19513.56 ▼0.835.17 ▲3.4029.83 ▼13.21
Dashboard /wp-admin2,228 ▲405.86 ▲0.97110.30 ▼6.7346.07 ▲0.36
Posts /wp-admin/edit.php2,111 ▲222.03 ▲0.0338.42 ▼0.7738.68 ▲5.11
Add New Post /wp-admin/post-new.php1,522 ▲322.06 ▼1.07688.96 ▼15.2062.22 ▲7.68
Media Library /wp-admin/upload.php1,404 ▲134.21 ▼0.11100.16 ▼2.9546.17 ▲1.24
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius1,0692.2023.5426.97
Update URLs /wp-admin/tools.php?page=update-urls9911.7227.4268.07

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
  • The uninstall procedure has failed, leaving 11 options in the database
    • widget_recent-posts
    • fs_active_plugins
    • kc_uu_installed_on
    • theysaidso_admin_options
    • can_compress_scripts
    • fs_debug_mode
    • widget_recent-comments
    • update_urls_do_activation_redirect
    • db_upgraded
    • fs_accounts
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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 take a closer look at the following
  • 105× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/update-urls/vendor/composer/installers/src/Composer/Installers/TYPO3CmsInstaller.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/update-urls/vendor/composer/installers/src/Composer/Installers/TastyIgniterInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/update-urls/vendor/composer/installers/src/Composer/Installers/EliasisInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/update-urls/vendor/composer/installers/src/Composer/Installers/KirbyInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/update-urls/vendor/composer/installers/src/Composer/Installers/CraftInstaller.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/update-urls/vendor/composer/installers/src/Composer/Installers/JoomlaInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/update-urls/vendor/composer/installers/src/Composer/Installers/SiteDirectInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/update-urls/vendor/composer/installers/src/Composer/Installers/TuskInstaller.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/update-urls/vendor/composer/installers/src/Composer/Installers/MODULEWorkInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/update-urls/vendor/composer/installers/src/Composer/Installers/Symfony1Installer.php:9

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/tools.php?page=update-urls
    • > Network (severe)
    wp-content/plugins/update-urls/lite/dist/scripts/app.js?ver=1.2.4 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% 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
These attributes need your attention:
  • Tags: Please delete some tags, you are using 22 tag instead of maximum 10
The official readme.txt is a good inspiration

update-urls/update-urls.php Passed 13 tests

"Update URLs - Quick and Easy way to search old links and replace them with new links in WordPress" version 1.2.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
83 characters long description:
Quick and Easy way to search old links and replace them with new links in WordPress

Code Analysis 97% from 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
Success! There were no dangerous files found in this plugin38,755 lines of code in 282 files:
LanguageFilesBlank linesComment linesLines of code
PHP2529,31119,34037,741
JSON200282
Markdown1680214
JavaScript738113208
CSS175519187
YAML3313123

PHP code 50% from 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
  • Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity29.99
▷ Minimum class complexity1.00
▷ Maximum class complexity3,073.00
Average method complexity4.23
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes169
▷ Abstract classes31.78%
▷ Concrete classes16698.22%
▷ Final classes00.00%
Methods1,549
▷ Static methods28018.08%
▷ Public methods1,10771.47%
▷ Protected methods513.29%
▷ Private methods39125.24%
Functions112
▷ Named functions10694.64%
▷ Anonymous functions65.36%
Constants160
▷ Global constants10968.12%
▷ Class constants5131.87%
▷ Public constants51100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
libs/fs/assets/img/plugin-icon.png6.09KB4.17KB▼ 31.54%
lite/dist/assets/images/icon-64.png3.88KB1.75KB▼ 54.86%
libs/fs/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
libs/fs/assets/img/update-urls.png14.90KB5.21KB▼ 65.04%