84% go-live-update-urls

Code Review | Go Live Update Urls

WordPress plugin Go Live Update Urls scored84%from 54 tests.

About plugin

  • Plugin page: go-live-update-urls
  • Plugin version: 6.7.0
  • PHP compatiblity: 7.2.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Oct 9, 2011
  • Latest release: Nov 28, 2023
  • Number of updates: 204
  • Update frequency: every 21.7 days
  • Top authors: Mat Lipe (100%)

Code review

54 tests

User reviews

55 reviews

Install metrics

90,000+ active /1,629,625 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.07MB] [CPU: ▼7.17ms] Passed 4 tests

This is a short check of server-side resources used by Go Live Update Urls
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0941.74 ▼2.12
Dashboard /wp-admin3.39 ▲0.0446.74 ▼16.04
Posts /wp-admin/edit.php3.50 ▲0.1449.13 ▲2.35
Add New Post /wp-admin/post-new.php5.97 ▲0.0889.97 ▼10.32
Media Library /wp-admin/upload.php3.31 ▲0.0833.83 ▼0.20
Go Live /wp-admin/tools.php?page=go-live-update-urls-settings3.3133.99

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Go Live Update Urls
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲714.67 ▼0.041.59 ▼0.2243.99 ▲0.38
Dashboard /wp-admin2,202 ▲255.57 ▼0.0692.13 ▲6.2239.38 ▼0.70
Posts /wp-admin/edit.php2,104 ▲41.96 ▲0.0137.63 ▼0.4036.39 ▲2.61
Add New Post /wp-admin/post-new.php1,529 ▲323.62 ▲0.50586.53 ▼77.8248.30 ▼3.30
Media Library /wp-admin/upload.php1,404 ▲74.18 ▲0.0294.63 ▼9.2040.38 ▼3.39
Go Live /wp-admin/tools.php?page=go-live-update-urls-settings9711.9824.9233.00

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • 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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please fix the following items
  • 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Trait 'Go_Live_Update_Urls\\Traits\\Singleton' not found in wp-content/plugins/go-live-update-urls/src/Skip_Rows.php on line 16
    • > PHP Fatal error
      Trait 'Go_Live_Update_Urls\\Traits\\Singleton' not found in wp-content/plugins/go-live-update-urls/src/Admin.php on line 13
    • > PHP Fatal error
      Trait 'Go_Live_Update_Urls\\Traits\\Singleton' not found in wp-content/plugins/go-live-update-urls/src/Database.php on line 13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/go-live-update-urls/go-live-update-urls.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Go_Live_Update_Urls\\Updaters\\Updaters_Abstract' not found in wp-content/plugins/go-live-update-urls/src/Updaters/Url_Encoded.php:13
    • > PHP Fatal error
      Trait 'Go_Live_Update_Urls\\Traits\\Singleton' not found in wp-content/plugins/go-live-update-urls/src/Core.php on line 13
    • > PHP Fatal error
      Trait 'Go_Live_Update_Urls\\Traits\\Singleton' not found in wp-content/plugins/go-live-update-urls/src/Updaters/Repo.php on line 13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === go-live-update-urls === )
The official readme.txt is a good inspiration

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

The principal PHP file in "Go Live Update Urls" v. 6.7.0 is loaded by WordPress automatically on each request
67 characters long description:
Updates every URL on your site when going live or changing domains.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,242 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP11257814887
PO File377133273
CSS113072
JavaScript11510

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity10.10
▷ Minimum class complexity1.00
▷ Maximum class complexity37.00
Average method complexity2.43
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces3
Interfaces0
Traits1
Classes9
▷ Abstract classes111.11%
▷ Concrete classes888.89%
▷ Final classes00.00%
Methods67
▷ Static methods1217.91%
▷ Public methods5480.60%
▷ Protected methods1319.40%
▷ Private methods00.00%
Functions13
▷ Named functions323.08%
▷ Anonymous functions1076.92%
Constants11
▷ Global constants327.27%
▷ Class constants872.73%
▷ Public constants8100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected