78% automatic-domain-changer

Code Review | Automatic Domain Changer

WordPress plugin Automatic Domain Changer scored 78% from 54 tests.

About plugin

  • Plugin page: automatic-domain-...
  • Plugin version: 2.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.0
  • WordPress version: 6.3.1
  • First release: Apr 2, 2013
  • Latest release: Mar 16, 2023
  • Number of updates: 23
  • Update frequency: every 158.1 days
  • Top authors: nuagelab (100%)

Code review

54 tests

User reviews

28 reviews

Install metrics

10,000+ active / 146,168 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼3.58ms] Passed 4 tests

Server-side resources used by Automatic Domain Changer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0839.95 ▼3.33
Dashboard /wp-admin3.39 ▲0.0843.64 ▼2.23
Posts /wp-admin/edit.php3.44 ▲0.0844.11 ▼0.18
Add New Post /wp-admin/post-new.php5.97 ▲0.0891.41 ▼6.61
Media Library /wp-admin/upload.php3.31 ▲0.0835.53 ▼2.14

Server storage [IO: ▲0.06MB] [DB: ▲0.33MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 9 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Automatic Domain Changer
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4713.21 ▼1.171.65 ▼0.2939.35 ▼6.40
Dashboard /wp-admin2,210 ▲614.85 ▼0.80103.92 ▲4.5338.99 ▼2.47
Posts /wp-admin/edit.php2,096 ▲72.06 ▲0.0634.44 ▼1.8633.17 ▲2.66
Add New Post /wp-admin/post-new.php1,539 ▼323.45 ▲4.97614.46 ▲4.9454.11 ▲1.91
Media Library /wp-admin/upload.php1,392 ▲44.19 ▼0.04102.29 ▲5.7847.54 ▲6.76
Change Domain /wp-admin/auto-domain-change.php260.440.0815.34

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin does not fully uninstall, leaving 9 options in the database
    • auto_domain_change-https
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • auto_domain_change-www
    • auto_domain_change-domain
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/automatic-domain-changer/auto-domain-change.php:52

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
    • > GET request to /wp-admin/auto-domain-change.php
    • > Network (severe)
    wp-admin/auto-domain-change.php - Failed to load resource: the server responded with a status of 404 (Not Found)


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #1 (The domain change and admin notice) image required
The official readme.txt might help

automatic-domain-changer/auto-domain-change.php 92% from 13 tests

The entry point to "Automatic Domain Changer" version 2.0.4 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("automatic-domain-changer.php" instead of "auto-domain-change.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin604 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PO File34570206

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity83.00
▷ Minimum class complexity83.00
▷ Maximum class complexity83.00
Average method complexity8.45
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods19.09%
▷ Public methods545.45%
▷ Protected methods00.00%
▷ Private methods654.55%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png22.71KB10.58KB▼ 53.40%