Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲5.54MB] [CPU: ▲28.87ms] 75% from 4 tests
Server-side resources used by Custom Login Page Customizer - Login Designer
Please take the time to fix the following items
- Extra RAM: Try to keep extra memory usage under 5MB (currently 5.54MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.27 ▲5.80 | 64.09 ▲27.91 |
Dashboard /wp-admin | 9.29 ▲5.94 | 86.72 ▲26.01 |
Posts /wp-admin/edit.php | 9.29 ▲5.93 | 72.97 ▲26.40 |
Add New Post /wp-admin/post-new.php | 10.36 ▲4.48 | 125.54 ▲35.14 |
Media Library /wp-admin/upload.php | 9.29 ▲6.06 | 74.83 ▲38.89 |
Login Designer /wp-admin/themes.php?page=login-designer | 9.29 | 66.14 |
↳ ⭐ Get Pro /wp-admin/themes.php?page=login-designer-get-pro | 9.29 | 54.37 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 9.29 | 64.44 |
Server storage [IO: ▲11.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 337 new files
Database: no new tables, 10 new options
New WordPress options |
---|
db_upgraded |
login_designer_settings |
can_compress_scripts |
fs_debug_mode |
fs_active_plugins |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
fs_accounts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Custom Login Page Customizer - Login Designer
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲85 | 14.38 ▲0.03 | 1.56 ▼0.01 | 34.28 ▼6.55 |
Dashboard /wp-admin | 2,222 ▲45 | 5.55 ▼0.07 | 94.82 ▲3.80 | 51.07 ▲13.10 |
Posts /wp-admin/edit.php | 2,128 ▲28 | 2.02 ▼0.01 | 34.94 ▼1.09 | 41.01 ▲5.89 |
Add New Post /wp-admin/post-new.php | 1,548 ▲22 | 23.06 ▲0.03 | 603.49 ▼79.37 | 50.37 ▼11.98 |
Media Library /wp-admin/upload.php | 1,427 ▲27 | 4.21 ▲0.01 | 95.73 ▼4.61 | 45.30 ▲1.55 |
Login Designer /wp-admin/themes.php?page=login-designer | 988 | 1.71 | 29.21 | 62.46 |
↳ ⭐ Get Pro /wp-admin/themes.php?page=login-designer-get-pro | 1,823 | 4.58 | 140.37 | 104.79 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,079 | 1.69 | 23.45 | 32.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 9 options in the database
- widget_recent-comments
- widget_recent-posts
- fs_debug_mode
- widget_theysaidso_widget
- db_upgraded
- fs_accounts
- theysaidso_admin_options
- fs_active_plugins
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
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
Please fix the following
- 26× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to a member function add_setting() on null in wp-content/plugins/login-designer/includes/settings/form.php:8
- > PHP Fatal error
Uncaught Error: Call to a member function add_setting() on null in wp-content/plugins/login-designer/includes/settings/button.php:8
- > PHP Fatal error
Uncaught Error: Call to a member function add_setting() on null in wp-content/plugins/login-designer/includes/settings/below.php:8
- > PHP Fatal error
Uncaught Error: Call to a member function add_setting() on null in wp-content/plugins/login-designer/includes/settings/checkbox.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function is_customize_preview() in wp-content/plugins/login-designer/includes/template-password-protected.php:11
- > PHP Notice
Undefined variable: wp_customize in wp-content/plugins/login-designer/includes/settings/logo.php on line 8
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/login-designer/includes/settings/background.php:9
- > PHP Fatal error
Uncaught Error: Call to a member function add_setting() on null in wp-content/plugins/login-designer/includes/settings/remember.php:8
- > PHP Notice
Undefined variable: wp_customize in wp-content/plugins/login-designer/includes/settings/button.php on line 8
- > PHP Fatal error
Uncaught Error: Call to a member function add_setting() on null in wp-content/plugins/login-designer/includes/settings/labels.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: These screenshots lack descriptions #6, #7, #8 in login-designer/assets to your readme.txt
login-designer/login-designer.php 92% from 13 tests
The main PHP script in "Custom Login Page Customizer - Login Designer" version 1.6.3 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 180 characters long)
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 plugin49,886 lines of code in 259 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 182 | 9,440 | 19,445 | 41,668 |
JavaScript | 25 | 934 | 396 | 4,099 |
CSS | 31 | 310 | 2 | 2,319 |
Sass | 18 | 306 | 33 | 1,579 |
Markdown | 1 | 68 | 0 | 214 |
SVG | 1 | 0 | 0 | 4 |
JSON | 1 | 0 | 0 | 3 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Please fix the following
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 65.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 75 | |
▷ Abstract classes | 2 | 2.67% |
▷ Concrete classes | 73 | 97.33% |
▷ Final classes | 1 | 1.37% |
Methods | 1,434 | |
▷ Static methods | 207 | 14.44% |
▷ Public methods | 1,019 | 71.06% |
▷ Protected methods | 30 | 2.09% |
▷ Private methods | 385 | 26.85% |
Functions | 123 | |
▷ Named functions | 121 | 98.37% |
▷ Anonymous functions | 2 | 1.63% |
Constants | 157 | |
▷ Global constants | 110 | 70.06% |
▷ Class constants | 47 | 29.94% |
▷ Public constants | 47 | 100.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
5 PNG files occupy 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
includes/freemius/assets/img/LoginDesigner.png | 9.16KB | 5.26KB | ▼ 42.58% |
includes/freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
includes/freemius/assets/img/login-designer-pro.png | 9.16KB | 5.26KB | ▼ 42.58% |
assets/images/rename-login-page.png | 50.75KB | 24.98KB | ▼ 50.77% |