84% customizer-login-page

Code Review | Custom Login Page - Admin Page Customizer

WordPress plugin Custom Login Page - Admin Page Customizer scored84%from 54 tests.

About plugin

  • Plugin page: customizer-login-...
  • Plugin version: 1.0.32
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3.2
  • WordPress version: 6.3.1
  • First release: Jul 16, 2018
  • Latest release: Oct 20, 2023
  • Number of updates: 51
  • Update frequency: every 39.9 days
  • Top authors: awordpresslife (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

500+ active /28,764 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
Install script ran successfully

Server metrics [RAM: ▲0.52MB] [CPU: ▼8.49ms] Passed 4 tests

A check of server-side resources used by Custom Login Page - Admin Page Customizer
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.01 ▲0.5538.68 ▼2.54
Dashboard /wp-admin3.87 ▲0.5347.45 ▼9.60
Posts /wp-admin/edit.php3.92 ▲0.5749.64 ▲3.18
Add New Post /wp-admin/post-new.php6.39 ▲0.5081.46 ▼23.98
Media Library /wp-admin/upload.php3.73 ▲0.5037.50 ▲2.16
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins3.8036.27

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
customizer_login_page_settings
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Custom Login Page - Admin Page Customizer
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,846 ▲6014.16 ▼0.431.61 ▼0.2439.84 ▲1.75
Dashboard /wp-admin2,252 ▲775.64 ▼0.0285.21 ▼20.4443.19 ▲4.38
Posts /wp-admin/edit.php2,163 ▲632.02 ▲0.0342.51 ▲7.2941.16 ▲3.18
Add New Post /wp-admin/post-new.php1,573 ▲4723.15 ▲0.38649.30 ▲2.8156.78 ▼0.05
Media Library /wp-admin/upload.php1,465 ▲654.28 ▲0.0694.56 ▼1.4548.41 ▲8.47
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins1,0432.1925.3328.22

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • customizer_login_page_settings
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/customizer-login-page/customizer-setting-page.php:73
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/customizer-login-page/class-tgm-plugin-activation.php:2109

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed: You can take inspiration from this readme.txt

customizer-login-page/customizer-login-page.php Passed 13 tests

The entry point to "Custom Login Page - Admin Page Customizer" version 1.0.32 is a PHP file that has certain tags in its header comment area
36 characters long description:
customizer Login Page For Wordpress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected9,767 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
CSS2241,2334,900
PHP56221,7002,787
JavaScript25871961,609
PO File3192195471

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity37.70
▷ Minimum class complexity1.00
▷ Maximum class complexity206.00
Average method complexity4.14
▷ Minimum method complexity1.00
▷ Maximum method complexity37.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods117
▷ Static methods54.27%
▷ Public methods9177.78%
▷ Protected methods2521.37%
▷ Private methods10.85%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants770.00%
▷ Class constants330.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin