Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/custom-login-page/class-lib/CLP_WidgetClass.php+233
Function create_function() is deprecated
Server metrics [RAM: ▲0.96MB] [CPU: ▼45.06ms] Passed 4 tests
This is a short check of server-side resources used by A5 Custom Login Page
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.95 ▲1.48 | 16.48 ▼29.19 |
Dashboard /wp-admin | 4.97 ▲1.66 | 22.11 ▼30.21 |
Posts /wp-admin/edit.php | 4.97 ▲1.61 | 16.97 ▼38.06 |
Add New Post /wp-admin/post-new.php | 4.97 ▼0.92 | 17.90 ▼82.76 |
Media Library /wp-admin/upload.php | 4.97 ▲1.74 | 26.16 ▼11.92 |
Custom Login Shortcode /wp-admin/admin.php?page=clp-shortcode-settings | 4.97 | 18.14 |
Custom Login Page /wp-admin/admin.php?page=clp-settings | 4.97 | 23.73 |
Custom Login Widget /wp-admin/admin.php?page=clp-widget-settings | 4.97 | 19.69 |
Server storage [IO: ▲0.89MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 39 new files
Database: no new tables, 10 new options
New WordPress options |
---|
db_upgraded |
clp_shortcode_options |
clp_widget_options |
theysaidso_admin_options |
clp_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_custom_login_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for A5 Custom Login Page
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,852 ▲91 | 14.57 ▲0.00 | 1.87 ▼0.01 | 43.75 ▼2.61 |
Dashboard /wp-admin | 2,241 ▲70 | 5.58 ▼0.09 | 86.34 ▼12.05 | 78.97 ▲35.27 |
Posts /wp-admin/edit.php | 2,149 ▲49 | 2.00 ▲0.00 | 37.65 ▼2.93 | 35.11 ▼0.93 |
Add New Post /wp-admin/post-new.php | 1,721 ▲195 | 21.54 ▼1.41 | 759.27 ▲62.72 | 56.99 ▼4.42 |
Media Library /wp-admin/upload.php | 1,449 ▲52 | 4.12 ▼0.08 | 102.87 ▼14.89 | 75.17 ▲26.30 |
Custom Login Shortcode /wp-admin/admin.php?page=clp-shortcode-settings | 1,587 | 5.79 | 76.67 | 102.55 |
Custom Login Page /wp-admin/admin.php?page=clp-settings | 1,472 | 5.79 | 70.47 | 76.73 |
Custom Login Widget /wp-admin/admin.php?page=clp-widget-settings | 1,597 | 5.80 | 69.93 | 97.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/custom-login-page/class-lib/CLP_WidgetClass.php+233
Function create_function() is deprecated
- The uninstall procedure has failed, leaving 7 options in the database
- widget_custom_login_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=clp-widget-settings
- > Deprecated in wp-content/plugins/custom-login-page/class-lib/CLP_WidgetClass.php+233
Function create_function() is deprecated
- 24 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=clp-widget-settings
- > Notice in wp-content/plugins/custom-login-page/custom-login-page.php+175
Undefined index: multisite
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=clp-widget-settings
- > Notice in wp-content/plugins/custom-login-page/class-lib/CLP_ShortcodeClass.php+19
Undefined index: login_form_top
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=clp-widget-settings
- > Notice in wp-content/plugins/custom-login-page/class-lib/CLP_ShortcodeClass.php+20
Undefined index: login_form
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=clp-widget-settings
- > Notice in wp-content/plugins/custom-login-page/class-lib/CLP_ShortcodeClass.php+21
Undefined index: login_form_bottom
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=clp-widget-settings
- > User deprecated in wp-includes/functions.php+5828
Hook contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead.
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=clp-widget-settings
- > Notice in wp-content/plugins/custom-login-page/class-lib/CLP_AdminClassWidget.php+1261
Undefined index: action
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=clp-widget-settings
- > Notice in wp-content/plugins/custom-login-page/class-lib/CLP_AdminClassWidget.php+416
Undefined index: label_username
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=clp-widget-settings
- > Notice in wp-content/plugins/custom-login-page/class-lib/CLP_AdminClassWidget.php+422
Undefined index: label_password
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=clp-widget-settings
- > Notice in wp-content/plugins/custom-login-page/class-lib/CLP_AdminClassWidget.php+428
Undefined index: label_remember
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=clp-widget-settings
- > Notice in wp-content/plugins/custom-login-page/class-lib/CLP_AdminClassWidget.php+434
Undefined index: label_log_in
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=clp-widget-settings
- > Notice in wp-content/plugins/custom-login-page/class-lib/CLP_AdminClassWidget.php+440
Undefined index: hide_remember
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=clp-widget-settings
- > Notice in wp-content/plugins/custom-login-page/class-lib/CLP_AdminClassWidget.php+446
Undefined index: value_remember
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=clp-widget-settings
- > Notice in wp-content/plugins/custom-login-page/class-lib/CLP_AdminClassWidget.php+464
Undefined index: redirect
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=clp-widget-settings
- > Notice in wp-content/plugins/custom-login-page/class-lib/CLP_AdminClassWidget.php+472
Undefined index: form_id
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=clp-widget-settings
- > Notice in wp-content/plugins/custom-login-page/class-lib/CLP_AdminClassWidget.php+478
Undefined index: id_username
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=clp-widget-settings
- > Notice in wp-content/plugins/custom-login-page/class-lib/CLP_AdminClassWidget.php+484
Undefined index: id_password
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=clp-widget-settings
- > Notice in wp-content/plugins/custom-login-page/class-lib/CLP_AdminClassWidget.php+490
Undefined index: id_remember
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=clp-widget-settings
- > Notice in wp-content/plugins/custom-login-page/class-lib/CLP_AdminClassWidget.php+496
Undefined index: id_submit
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=clp-widget-settings
- > Notice in wp-content/plugins/custom-login-page/class-lib/CLP_AdminClassWidget.php+502
Undefined index: value_username
- > GET request to /wp-admin/admin.php?page=clp-settings
- > Notice in wp-content/plugins/custom-login-page/class-lib/CLP_AdminClass.php+535
Undefined index: logout_custom_message
- > GET request to /wp-admin/admin.php?page=clp-settings
- > Notice in wp-content/plugins/custom-login-page/class-lib/CLP_AdminClass.php+541
Undefined index: error_custom_message
- > GET request to /wp-admin/admin.php?page=clp-settings
- > Notice in wp-content/plugins/custom-login-page/class-lib/CLP_AdminClass.php+553
Undefined index: register_custom_message
- > GET request to /wp-admin/admin.php?page=clp-settings
- > Notice in wp-content/plugins/custom-login-page/class-lib/CLP_AdminClass.php+547
Undefined index: password_custom_message
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'A5_DynamicFiles' not found in wp-content/plugins/custom-login-page/class-lib/CLP_DynamicCSSClass.php:13
- > PHP Fatal error
Uncaught Error: Class 'A5_OptionPage' not found in wp-content/plugins/custom-login-page/class-lib/CLP_AdminClassWidget.php:12
- > PHP Fatal error
Uncaught Error: Class 'A5_Widget' not found in wp-content/plugins/custom-login-page/class-lib/CLP_WidgetClass.php:12
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/custom-login-page/class-lib/A5_WidgetClass.php:14
- > PHP Fatal error
Uncaught Error: Class 'A5_DynamicFiles' not found in wp-content/plugins/custom-login-page/class-lib/CLP_DynamicJSClass.php:13
- > PHP Fatal error
Uncaught Error: Class 'A5_OptionPage' not found in wp-content/plugins/custom-login-page/class-lib/CLP_AdminClassShortcode.php:12
- > PHP Fatal error
Uncaught Error: Class 'A5_OptionPage' not found in wp-content/plugins/custom-login-page/class-lib/CLP_AdminClass.php:12
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=clp-widget-settings
- > Network (severe)
https://button.flattr.com/flattr-badge-large.png - Failed to load resource: the server responded with a status of 404 ()
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: You are using too many tags: 14 tag instead of maximum 10
custom-login-page/custom-login-page.php 92% from 13 tests
"A5 Custom Login Page" version 2.8.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 160 characters long)
Code Analysis 97% from 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
Good job! No executable or dangerous file extensions detected9,089 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 4,052 | 853 | 5,197 |
PO File | 4 | 1,060 | 2,155 | 3,597 |
JavaScript | 10 | 129 | 58 | 295 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
- Method cyclomatic complexity should be reduced to less than 100 (currently 329)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 70.46 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 330.00 |
Average method complexity | 2.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 329.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 525 | |
▷ Static methods | 26 | 4.95% |
▷ Public methods | 518 | 98.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 1.33% |
Functions | 29 | |
▷ Named functions | 29 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 2 | 40.00% |
▷ Class constants | 3 | 60.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/a5-icon-16.png | 0.77KB | 0.57KB | ▼ 25.99% |
tinymce/CustomLoginPage.png | 4.05KB | 1.09KB | ▼ 73.04% |
img/a5-icon-34.png | 1.65KB | 1.35KB | ▼ 18.07% |
img/a5-icon-11.png | 0.67KB | 0.42KB | ▼ 37.17% |