68% https-domain-alias

Code Review | HTTPS Domain Alias

WordPress plugin HTTPS Domain Alias scored 68% from 54 tests.

About plugin

  • Plugin page: https-domain-alias
  • Plugin version: 1.4.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.9.4
  • WordPress version: 6.3.1
  • First release: Jan 14, 2014
  • Latest release: Jul 28, 2020
  • Number of updates: 55
  • Update frequency: every 43.4 days
  • Top authors: ottok (63.64%)Zuige (25.45%)onnimonni (7.27%)seravo (5.45%)deployer (5.45%)

Code review

54 tests

User reviews

5 reviews

Install metrics

80+ active / 11,602 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▼0.95MB] [CPU: ▼36.21ms] Passed 4 tests

Server-side resources used by HTTPS Domain Alias
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.63 ▲3.02
Dashboard /wp-admin3.00 ▼0.3122.48 ▼26.27
Posts /wp-admin/edit.php3.00 ▼0.3624.35 ▼28.84
Add New Post /wp-admin/post-new.php3.00 ▼2.8924.82 ▼78.46
Media Library /wp-admin/upload.php3.00 ▼0.2323.02 ▼11.25
HTTPS Domain Alias /wp-admin/options-general.php?page=https-domain-alias/https-domain-alias.php3.0020.60

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for HTTPS Domain Alias
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4713.15 ▼1.231.61 ▼0.5538.42 ▼9.56
Dashboard /wp-admin2,210 ▲225.85 ▲0.78105.56 ▼4.2341.95 ▼3.20
Posts /wp-admin/edit.php2,096 ▲101.99 ▼0.0540.06 ▲0.9035.39 ▼0.83
Add New Post /wp-admin/post-new.php1,517 ▼2517.70 ▼0.62670.98 ▲44.9159.92 ▼0.44
Media Library /wp-admin/upload.php1,395 ▲74.25 ▲0.0394.77 ▼3.3440.81 ▼4.87
HTTPS Domain Alias /wp-admin/options-general.php?page=https-domain-alias/https-domain-alias.php8792.0422.9941.55

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > 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
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=https-domain-alias/https-domain-alias.php
    • > 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      require_once(/tmp/wordpress-tests-lib/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/https-domain-alias/tests/bootstrap.php on line 16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/https-domain-alias/https-domain-alias.php:304
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/https-domain-alias/tests/test-plugin.php:3
    • > PHP Fatal error
      require_once(): Failed opening required '/tmp/wordpress-tests-lib/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/https-domain-alias/tests/bootstrap.php on line 16
    • > Constant HTTPS_DOMAIN_ALIAS is not defined

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: tls, ssl, https, seravo, domain...

https-domain-alias/https-domain-alias.php 92% from 13 tests

The main PHP script in "HTTPS Domain Alias" version 1.4.3 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 153 characters long)

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
Success! There were no dangerous files found in this plugin359 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP469200256
JSON10027
HTML18025
YAML110524
XML10014
JavaScript1077
Markdown1306

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin