Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.08MB] [CPU: ▼14.61ms] Passed 4 tests
An overview of server-side resources used by Birds Custom Login
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 38.80 ▼6.07 |
Dashboard /wp-admin | 3.26 ▼0.04 | 27.71 ▼20.36 |
Posts /wp-admin/edit.php | 3.35 ▼0.01 | 31.12 ▼12.75 |
Add New Post /wp-admin/post-new.php | 5.54 ▼0.34 | 66.27 ▼19.26 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 29.43 ▼3.99 |
Birds Custom Login /wp-admin/themes.php?page=birds_custom_login_settings | 3.28 | 28.43 |
Server storage [IO: ▲2.53MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 30 new files
Database: no new tables, 13 new options
New WordPress options |
---|
bcl_preview_section |
bcl_login_messages_section |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
bcl_notice_section |
theysaidso_admin_options |
bcl_custom_css_section |
bcl_form_section |
db_upgraded |
... |
Browser metrics Passed 4 tests
Birds Custom Login: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,914 ▲143 | 13.68 ▼0.54 | 1.61 ▼0.23 | 38.68 ▼4.02 |
Dashboard /wp-admin | 2,211 ▲26 | 5.86 ▲0.01 | 95.60 ▼3.63 | 36.82 ▼8.47 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.03 ▲0.05 | 36.27 ▼0.12 | 31.66 ▼1.71 |
Add New Post /wp-admin/post-new.php | 1,535 ▲1 | 23.27 ▲0.08 | 585.91 ▼103.29 | 52.40 ▼5.04 |
Media Library /wp-admin/upload.php | 1,399 ▲17 | 4.25 ▲0.06 | 93.63 ▼12.89 | 41.57 ▼5.39 |
Birds Custom Login /wp-admin/themes.php?page=birds_custom_login_settings | 2,657 | 3.96 | 124.77 | 95.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 13 options in the database
- widget_recent-posts
- bcl_login_messages_section
- theysaidso_admin_options
- widget_recent-comments
- bcl_custom_css_section
- can_compress_scripts
- bcl_notice_section
- bcl_elements_section
- 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
- 6 occurences, only the last one shown
- > GET request to /wp-admin/themes.php?page=birds_custom_login_settings
- > Notice in wp-content/plugins/birds-custom-login/admin/settings/apply-css.php+104
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/birds-custom-login/admin/settings/class-settings.php:401
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/birds-custom-login/admin/settings/settings.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/birds-custom-login/admin/settings/apply-css.php:17
- > 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)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Tags: There are too many tags (14 tag instead of maximum 10)
- Screenshots: These screenshots require images: #1 (Settings are under the Appearance menu.), #2 (Custom Login Settings - Tab 1 - Logo & Background), #3 (Custom Login Settings - Tab 2 - Form), #4 (Custom Login Settings - Tab 3 - Below Form Links), #5 (Custom Login Settings - Tab 4 - Message Boxes), #6 (Custom Login Settings - Tab 5 - Preview), #7 (Demo Login Page #1), #8 (Demo Login Page #2), #9 (Demo Login Page #3)
birds-custom-login/birds-custom-login.php Passed 13 tests
"Birds Custom Login" version 1.0.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
96 characters long description:
Birds Custom Login allows you to easily customize your admin login page according to your needs.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin2,153 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 97 | 127 | 1,164 |
PO File | 3 | 372 | 540 | 740 |
JavaScript | 2 | 0 | 3 | 180 |
CSS | 1 | 0 | 0 | 69 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 42.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 82.00 |
Average method complexity | 4.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 5 | 19.23% |
▷ Public methods | 22 | 84.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 15.38% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
11 PNG files occupy 2.37MB with 1.27MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 64.43KB | 38.62KB | ▼ 40.06% |
screenshot-5.png | 44.83KB | 26.47KB | ▼ 40.95% |
screenshot-2.png | 62.44KB | 37.71KB | ▼ 39.61% |
screenshot-9.png | 48.64KB | 10.99KB | ▼ 77.41% |
screenshot-7.png | 809.93KB | 247.36KB | ▼ 69.46% |