84% custom-login-url

Code Review | Custom Login URL

WordPress plugin Custom Login URL scored84%from 54 tests.

About plugin

  • Plugin page: custom-login-url
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.0-4.2.2
  • WordPress version: 6.3.1
  • First release: Feb 24, 2014
  • Latest release: Aug 24, 2015
  • Number of updates: 7
  • Update frequency: every 78.0 days
  • Top authors: gwin (100%)

Code review

54 tests

User reviews

19 reviews

Install metrics

1,000+ active /46,953 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼8.81ms] Passed 4 tests

Server-side resources used by Custom Login URL
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.14 ▼5.59
Dashboard /wp-admin3.35 ▲0.0548.54 ▼2.80
Posts /wp-admin/edit.php3.47 ▲0.1152.72 ▲7.86
Add New Post /wp-admin/post-new.php5.93 ▲0.0583.63 ▼29.96
Media Library /wp-admin/upload.php3.28 ▲0.0536.94 ▲3.10

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Custom Login URL
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.57 ▼1.041.88 ▼0.1139.14 ▼2.30
Dashboard /wp-admin2,206 ▲185.84 ▲0.9398.55 ▼20.2541.72 ▼4.87
Posts /wp-admin/edit.php2,089 ▼31.98 ▼0.0538.84 ▼3.2034.08 ▼1.63
Add New Post /wp-admin/post-new.php1,533 ▲322.95 ▲4.42690.89 ▲68.0054.87 ▲6.09
Media Library /wp-admin/upload.php1,391 ▼04.25 ▲0.0797.99 ▼2.1544.48 ▲1.23

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

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 | 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
  • 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/custom-login-url/custom-login-url.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: custom registration url, custom login url

custom-login-url/custom-login-url.php Passed 13 tests

This is the main PHP file of "Custom Login URL" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
131 characters long description:
Plugin allows to change: login, registration, lost password URLs to some custom URLs without modifying any files, simple and swift.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin250 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP47110250

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.42
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%
Functions23
▷ Named functions23100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png35.27KB13.09KB▼ 62.89%