84% white-label

Code Review | White Label - WordPress Custom Admin, Custom Login Page, and Custom Dashboard

WordPress plugin White Label - WordPress Custom Admin, Custom Login Page, and Custom Dashboard scored84%from 54 tests.

About plugin

  • Plugin page: white-label
  • Plugin version: 2.9.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: May 18, 2018
  • Latest release: Nov 8, 2023
  • Number of updates: 68
  • Update frequency: every 29.4 days
  • Top authors: linksoftware (54.41%)morganhvidt (47.06%)

Code review

54 tests

User reviews

11 reviews

Install metrics

10,000+ active /126,124 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.35MB] [CPU: ▲2.61ms] Passed 4 tests

This is a short check of server-side resources used by White Label - WordPress Custom Admin, Custom Login Page, and Custom Dashboard
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.82 ▲0.3541.62 ▲6.53
Dashboard /wp-admin3.66 ▲0.3549.00 ▼0.36
Posts /wp-admin/edit.php3.77 ▲0.4152.70 ▲6.90
Add New Post /wp-admin/post-new.php6.24 ▲0.35106.98 ▲3.20
Media Library /wp-admin/upload.php3.58 ▲0.3537.66 ▲1.07
White Label /wp-admin/options-general.php?page=white-label3.8553.34

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 14 new options
New WordPress options
white_label_upgrade
white_label_login
widget_recent-comments
white_label_front_end
theysaidso_admin_options
white_label_general
db_upgraded
white_label_menus_plugins
white_label_visual_tweaks
widget_theysaidso_widget
...

Browser metrics Passed 4 tests

An overview of browser requirements for White Label - WordPress Custom Admin, Custom Login Page, and Custom Dashboard
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲3714.67 ▼0.061.70 ▲0.0745.58 ▲1.38
Dashboard /wp-admin2,202 ▲255.62 ▼0.0190.74 ▼10.8439.47 ▼7.43
Posts /wp-admin/edit.php2,104 ▲42.00 ▼0.0340.39 ▲5.4435.25 ▼0.01
Add New Post /wp-admin/post-new.php1,529 ▲323.26 ▲0.10603.19 ▼102.0549.75 ▲3.91
Media Library /wp-admin/upload.php1,398 ▼24.13 ▼0.05101.67 ▼8.7043.27 ▼4.59
White Label /wp-admin/options-general.php?page=white-label3,9868.77330.2884.94

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 14 options in the database
    • white_label_login
    • white_label_upgrade
    • white_label_import_export
    • white_label_dashboard
    • white_label_general
    • white_label_front_end
    • widget_recent-comments
    • white_label_visual_tweaks
    • white_label_menus_plugins
    • db_upgraded
    • ...

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/white-label/admin/functions.php:90
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/white-label/migration.php:171

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: white label, login page, custom login, custom dashboard, custom admin

white-label/white-label.php Passed 13 tests

The main PHP file in "White Label - WordPress Custom Admin, Custom Login Page, and Custom Dashboard" ver. 2.9.1 adds more information about the plugin and also serves as the entry point for this plugin
60 characters long description:
White Label WordPress and make life easier for your clients.

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
No dangerous file extensions were detected2,970 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP174877612,618
CSS2639248
JavaScript2189104

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity29.33
▷ Minimum class complexity7.00
▷ Maximum class complexity107.00
Average method complexity3.22
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods68
▷ Static methods00.00%
▷ Public methods68100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions43
▷ Named functions4297.67%
▷ Anonymous functions12.33%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin