10% custom-wp-admin-login

Code Review | Custom WP Admin Login

WordPress plugin Custom WP Admin Login scored10%from 54 tests.

About plugin

  • Plugin page: custom-wp-admin-l...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.9.8
  • WordPress version: 6.3.1
  • First release: Oct 6, 2018
  • Latest release: Oct 6, 2018
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: saching567 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,234 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
  • Install procedure had errors
    • > Warning in wp-content/plugins/custom-wp-admin-login/admin/lib/ReduxCore/inc/class.redux_filesystem.php+28
    Creating default object from empty value

Server metrics [RAM: ▼0.72MB] [CPU: ▼49.54ms] Passed 4 tests

Analyzing server-side resources used by Custom WP Admin Login
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.26 ▼0.2017.61 ▼26.50
Dashboard /wp-admin3.28 ▼0.0213.31 ▼41.96
Posts /wp-admin/edit.php3.28 ▼0.0715.47 ▼37.29
Add New Post /wp-admin/post-new.php3.28 ▼2.6013.86 ▼92.39
Media Library /wp-admin/upload.php3.28 ▲0.0612.75 ▼23.39
Redux Framework /wp-admin/tools.php?page=redux-about3.2813.60

Server storage [IO: ▲3.70MB] [DB: ▲0.07MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 421 new files
Database: no new tables, 9 new options
New WordPress options
custom_wp_admin_login-transients
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
custom_wp_admin_login
widget_recent-comments
can_compress_scripts
redux_version_upgraded_from

Browser metrics Passed 4 tests

A check of browser resources used by Custom WP Admin Login
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,875 ▲11414.35 ▲0.011.86 ▲0.1640.13 ▼6.44
Dashboard /wp-admin2,277 ▲995.64 ▲0.0784.23 ▼18.3037.44 ▼8.05
Posts /wp-admin/edit.php2,120 ▲202.03 ▲0.0736.44 ▼4.8234.71 ▲0.55
Add New Post /wp-admin/post-new.php1,542 ▲1523.14 ▼0.11642.31 ▼16.3559.25 ▲7.63
Media Library /wp-admin/upload.php1,414 ▲174.15 ▼0.1491.55 ▼6.6342.48 ▲1.22
Redux Framework /wp-admin/tools.php?page=redux-about1,0563.6473.5966.11

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin cannot be uninstalled
    • > Warning in wp-content/plugins/custom-wp-admin-login/admin/lib/ReduxCore/inc/class.redux_filesystem.php+28
    Creating default object from empty value
  • Zombie WordPress options were found after uninstall: 9 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • redux_version_upgraded_from
    • db_upgraded
    • widget_recent-posts
    • custom_wp_admin_login-transients
    • widget_recent-comments
    • custom_wp_admin_login
    • theysaidso_admin_options

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
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/tools.php?page=redux-about
    • > Warning in wp-content/plugins/custom-wp-admin-login/admin/lib/ReduxCore/inc/class.redux_filesystem.php+28
    Creating default object from empty value

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 22× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Section' not found in wp-content/plugins/custom-wp-admin-login/admin/lib/ReduxCore/inc/extensions/customizer/inc/customizer_section.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Section' not found in wp-content/plugins/custom-wp-admin-login/admin/lib/ReduxCore/inc/extensions/customizer/inc/customizer_devs.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/custom-wp-admin-login/admin/apply-css.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/custom-wp-admin-login/admin/lib/ReduxCore/inc/welcome/views/extensions.php:64
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/custom-wp-admin-login/admin/lib/ReduxCore/inc/extensions/customizer/inc/customizer_control.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/custom-wp-admin-login/admin/lib/ReduxCore/inc/welcome/views/about.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/custom-wp-admin-login/admin/lib/ReduxCore/templates/panel/header_stickybar.tpl.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/custom-wp-admin-login/admin/lib/ReduxCore/inc/fields/select/elusive-icons.php:312
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/custom-wp-admin-login/custom-wp-admin-login.php:40
    • > PHP Fatal error
      Uncaught Error: Interface 'themecheck' not found in wp-content/plugins/custom-wp-admin-login/admin/lib/ReduxCore/inc/themecheck/checks/embedded.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Tags: You are using too many tags: 29 tag instead of maximum 10
You can take inspiration from this readme.txt

custom-wp-admin-login/custom-wp-admin-login.php Passed 13 tests

The entry point to "Custom WP Admin Login" version 1.0 is a PHP file that has certain tags in its header comment area
106 characters long description:
Custom WP Admin Login plugin allows you to easily customize your admin login page according to your needs.

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin37,280 lines of code in 295 files:
LanguageFilesBlank linesComment linesLines of code
PHP1073,6995,41515,634
JavaScript852,5931,94911,982
Sass541,182607,571
SVG100934
JSON11840909
CSS46935197
LESS10053

PHP code 50% from 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Please fix the following
  • Please reduce cyclomatic complexity of methods to less than 100 (currently 113)
Cyclomatic complexity
Average complexity per logical line of code0.62
Average class complexity32.38
▷ Minimum class complexity1.00
▷ Maximum class complexity880.00
Average method complexity6.55
▷ Minimum method complexity1.00
▷ Maximum method complexity113.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes102
▷ Abstract classes00.00%
▷ Concrete classes102100.00%
▷ Final classes00.00%
Methods578
▷ Static methods10017.30%
▷ Public methods43775.61%
▷ Protected methods9115.74%
▷ Private methods508.65%
Functions12
▷ Named functions1191.67%
▷ Anonymous functions18.33%
Constants63
▷ Global constants69.52%
▷ Class constants5790.48%
▷ Public constants57100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
30 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/lib/ReduxCore/inc/fields/spinner/arrow_right.png0.15KB0.12KB▼ 18.18%
admin/lib/ReduxCore/assets/img/2cl.png2.91KB0.24KB▼ 91.79%
admin/lib/ReduxCore/assets/img/toggle_tabs.png0.35KB0.35KB0.00%
admin/lib/ReduxCore/assets/img/2-col-portfolio.png1.02KB0.15KB▼ 85.07%
admin/lib/ReduxCore/assets/css/vendor/jquery-ui-bootstrap/images/ui-bg_glass_65_ffffff_1x400.png0.10KB0.10KB▼ 5.71%