Benchmarks
Plugin footprint 83% 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: ▲0.01MB] [CPU: ▼6.35ms] Passed 4 tests
This is a short check of server-side resources used by Custom WP Login Page
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 33.33 ▼5.45 |
Dashboard /wp-admin | 3.32 ▲0.01 | 43.95 ▼2.75 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.37 ▼0.24 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 86.05 ▼16.94 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.72 ▲4.83 |
Custom WP Login /wp-admin/options-general.php?page=powered-by-plugin | 3.18 | 30.22 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 9 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
powered_by_image |
powered_by_textcolor |
powered_by_color |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Custom WP Login Page
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,798 ▲41 | 13.19 ▼1.43 | 1.83 ▼0.03 | 41.19 ▲3.40 |
Dashboard /wp-admin | 2,215 ▲27 | 5.90 ▲1.05 | 95.45 ▼6.50 | 40.40 ▲0.68 |
Posts /wp-admin/edit.php | 2,109 ▲17 | 2.27 ▲0.29 | 36.85 ▼8.11 | 30.33 ▼5.60 |
Add New Post /wp-admin/post-new.php | 1,521 ▼15 | 23.34 ▼0.09 | 612.33 ▲25.68 | 58.74 ▲8.11 |
Media Library /wp-admin/upload.php | 1,407 ▲25 | 4.26 ▲0.07 | 94.69 ▼0.74 | 42.10 ▲0.16 |
Custom WP Login /wp-admin/options-general.php?page=powered-by-plugin | 872 | 1.93 | 26.86 | 57.21 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 9 options
- powered_by_textcolor
- powered_by_image
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- powered_by_color
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=powered-by-plugin
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=powered-by-plugin
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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 fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/custom-wp-login-page/login.php:52
- > PHP Fatal error
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, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #1 (setting page), #2 (login page)
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== custom-wp-login-page ===
)
custom-wp-login-page/login.php 92% from 13 tests
"Custom WP Login Page" version 1.0'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:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("custom-wp-login-page.php" instead of "login.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin891 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 138 | 37 | 782 |
PHP | 1 | 37 | 21 | 100 |
HTML | 1 | 3 | 0 | 9 |
PHP code Passed 2 tests
This is a short overview 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.06 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.12MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/hv.png | 2.80KB | 7.32KB | 0.00% |
login.png | 89.61KB | 41.26KB | ▼ 53.96% |
logo5.png | 6.61KB | 2.40KB | ▼ 63.74% |
settings.png | 26.23KB | 16.66KB | ▼ 36.46% |
js/hs.png | 2.62KB | 7.54KB | 0.00% |