Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼4.56ms] Passed 4 tests
A check of server-side resources used by Custom Login
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 36.33 ▼5.35 |
Dashboard /wp-admin | 3.43 ▲0.12 | 50.20 ▼1.14 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 52.18 ▲2.59 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 92.65 ▼14.35 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 38.24 ▲5.85 |
Custom Login /wp-admin/options-general.php?page=custom_login_admin | 3.35 | 38.93 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Custom Login
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,785 ▲24 | 14.30 ▼0.28 | 1.99 ▲0.11 | 40.69 ▼4.02 |
Dashboard /wp-admin | 2,196 ▲19 | 5.57 ▼0.11 | 84.64 ▼7.54 | 39.37 ▼1.07 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.17 ▲0.17 | 40.92 ▲4.72 | 36.52 ▲2.99 |
Add New Post /wp-admin/post-new.php | 1,535 ▲4 | 23.35 ▲0.27 | 691.48 ▲33.04 | 52.60 ▼5.19 |
Media Library /wp-admin/upload.php | 1,401 ▼2 | 4.20 ▼0.04 | 105.96 ▲1.59 | 46.94 ▲1.24 |
Custom Login /wp-admin/options-general.php?page=custom_login_admin | 1,622 | 3.86 | 69.55 | 30.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
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)
Good news, no errors were detected
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
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
in_array() expects parameter 2 to be array, null given in wp-content/plugins/bm-custom-login/csstidy/data-wp.inc.php on line 16
- > PHP Notice
Undefined index: unit_values in wp-content/plugins/bm-custom-login/csstidy/data-wp.inc.php on line 16
- > PHP Warning
in_array() expects parameter 2 to be array, null given in wp-content/plugins/bm-custom-login/csstidy/data-wp.inc.php on line 24
- > PHP Notice
Undefined index: color_values in wp-content/plugins/bm-custom-login/csstidy/data-wp.inc.php on line 24
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/bm-custom-login/bm-custom-login.php:56
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
6 plugin tags: customization, login, customisation, customise, customize...
bm-custom-login/bm-custom-login.php Passed 13 tests
The main PHP file in "Custom Login" ver. 2.3.2 adds more information about the plugin and also serves as the entry point for this plugin
73 characters long description:
Display custom images on the WordPress login screen. Useful for branding.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin3,364 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 481 | 1,168 | 3,067 |
CSS | 9 | 70 | 0 | 297 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
It is recommended to fix the following
- Method cyclomatic complexity has to be reduced to less than 100 (currently 148)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 143.00 |
▷ Minimum class complexity | 47.00 |
▷ Maximum class complexity | 248.00 |
Average method complexity | 7.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 148.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 82 | |
▷ Static methods | 11 | 13.41% |
▷ Public methods | 82 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 12 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
No PNG files were detected