Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.51MB] [CPU: ▼295.57ms] Passed 4 tests
A check of server-side resources used by Custom WP Login
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.06 ▲0.54 | 60.22 ▲10.02 |
Dashboard /wp-admin | 3.92 ▲0.52 | 38.10 ▲5.11 |
Posts /wp-admin/edit.php | 4.13 ▲0.49 | 39.09 ▲4.85 |
Add New Post /wp-admin/post-new.php | 7.45 ▲0.48 | 98.51 ▼1,193.32 |
Media Library /wp-admin/upload.php | 3.87 ▲0.58 | 27.18 ▲1.08 |
Customize /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php | 6.79 | 59.34 |
Custom Login /wp-admin/options-general.php?page=yikes-custom-login | 3.93 | 36.76 |
Server storage [IO: ▲0.45MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 43 new files
Database: no new tables, 4 new options
New WordPress options |
---|
widget_recent-posts |
yikes_custom_login |
widget_recent-comments |
widget_wpb_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Custom WP Login
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,901 ▲159 | 11.02 ▼4.96 | 6.48 ▲0.81 | 2.65 ▲0.74 |
Dashboard /wp-admin | 2,901 ▲47 | 6.16 ▼0.05 | 119.96 ▼11.05 | 159.67 ▼1.66 |
Posts /wp-admin/edit.php | 2,684 ▼10 | 3.24 ▲0.01 | 65.32 ▲1.16 | 141.22 ▼2.38 |
Add New Post /wp-admin/post-new.php | 1,669 ▲3 | 16.09 ▼4.97 | 422.07 ▼24.89 | 158.12 ▲2.54 |
Media Library /wp-admin/upload.php | 1,707 ▲9 | 5.45 ▼0.06 | 157.68 ▲16.81 | 201.95 ▲25.34 |
Customize /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php | 7,277 | 21.55 | 548.50 | 213.87 |
Custom Login /wp-admin/options-general.php?page=yikes-custom-login | 2,808 | 10.82 | 216.40 | 173.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/custom-wp-login/uninstall.php+80
Undefined variable: post_id
- This plugin does not fully uninstall, leaving 3 options in the database
- widget_recent-comments
- widget_recent-posts
- widget_wpb_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
- > Notice in wp-includes/class-wp-customize-nav-menus.php+1152
Trying to get property 'title' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=yikes-custom-login
- > Notice in wp-content/plugins/custom-wp-login/lib/classes/options.php+707
Undefined index: branding_logo
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=yikes-custom-login
- > Notice in wp-content/plugins/custom-wp-login/lib/classes/options.php+701
Undefined index: branding_logo_id
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
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/custom-wp-login/lib/classes/login-widget.php:7
- > PHP Fatal error
Uncaught Error: Class 'YIKES_Custom_Login' not found in wp-content/plugins/custom-wp-login/lib/classes/metaboxes.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-wp-login/lib/classes/customizer.php:488
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/custom-wp-login/lib/classes/options.php:741
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/custom-wp-login/yikes-inc-custom-login.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: guest, login, custom, member, register...
custom-wp-login/yikes-inc-custom-login.php 92% from 13 tests
This is the main PHP file of "Custom WP Login" version 1.2.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("custom-wp-login.php" instead of "yikes-inc-custom-login.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin4,465 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 502 | 1,110 | 3,739 |
CSS | 5 | 113 | 85 | 590 |
JavaScript | 6 | 33 | 63 | 136 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 35.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 177.00 |
Average method complexity | 4.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 86 | |
▷ Static methods | 6 | 6.98% |
▷ Public methods | 79 | 91.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 8.14% |
Functions | 10 | |
▷ Named functions | 9 | 90.00% |
▷ Anonymous functions | 1 | 10.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.11MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/images/recaptcha-icon.png | 2.02KB | 1.20KB | ▼ 40.75% |
lib/images/wordpress-icon.png | 23.50KB | 5.71KB | ▼ 75.72% |
lib/images/docs-icon.png | 24.55KB | 15.15KB | ▼ 38.30% |
lib/images/yikes-plugins-logo.png | 52.41KB | 13.77KB | ▼ 73.72% |
lib/images/github-icon.png | 5.15KB | 3.13KB | ▼ 39.17% |