Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.28MB] [CPU: ▼5.01ms] Passed 4 tests
This is a short check of server-side resources used by Erident Custom Login and Dashboard
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.27 | 38.36 ▼5.18 |
Dashboard /wp-admin | 3.64 ▲0.29 | 52.94 ▼12.09 |
Posts /wp-admin/edit.php | 3.69 ▲0.33 | 47.84 ▲1.92 |
Add New Post /wp-admin/post-new.php | 6.18 ▲0.28 | 95.45 ▼4.69 |
Media Library /wp-admin/upload.php | 3.50 ▲0.26 | 39.28 ▲7.53 |
Custom Login & Dashboard /wp-admin/options-general.php?page=erident-custom-login-and-dashboard | 3.62 | 40.02 |
Server storage [IO: ▲1.16MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 72 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
plugin_erident_settings |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Erident Custom Login and Dashboard: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,906 ▲159 | 14.68 ▲0.37 | 1.87 ▲0.01 | 27.47 ▼20.46 |
Dashboard /wp-admin | 2,307 ▲127 | 5.80 ▲0.20 | 94.53 ▲4.61 | 78.04 ▲39.08 |
Posts /wp-admin/edit.php | 2,245 ▲145 | 2.38 ▲0.36 | 40.93 ▲6.23 | 36.32 ▲3.42 |
Add New Post /wp-admin/post-new.php | 1,808 ▲282 | 22.44 ▼0.65 | 702.54 ▲104.44 | 28.87 ▼19.20 |
Media Library /wp-admin/upload.php | 1,531 ▲131 | 4.21 ▲0.08 | 102.31 ▼8.82 | 86.71 ▲34.04 |
Custom Login & Dashboard /wp-admin/options-general.php?page=erident-custom-login-and-dashboard | 3,786 | 5.29 | 158.48 | 104.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- plugin_erident_settings
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 21× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/erident-custom-login-and-dashboard/templates/setting-boxes/dashboard-settings.php
- > /wp-content/plugins/erident-custom-login-and-dashboard/templates/setting-boxes/review.php
- > /wp-content/plugins/erident-custom-login-and-dashboard/ajax/class-reset-settings.php
- > /wp-content/plugins/erident-custom-login-and-dashboard/templates/setting-boxes/login-form-label-settings.php
- > /wp-content/plugins/erident-custom-login-and-dashboard/templates/settings-template.php
- > /wp-content/plugins/erident-custom-login-and-dashboard/templates/setting-boxes/login-form-link-settings.php
- > /wp-content/plugins/erident-custom-login-and-dashboard/templates/setting-boxes/import-settings.php
- > /wp-content/plugins/erident-custom-login-and-dashboard/templates/setting-boxes/export-settings.php
- > /wp-content/plugins/erident-custom-login-and-dashboard/inc/login.css.php
- > /wp-content/plugins/erident-custom-login-and-dashboard/ajax/class-save-settings.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/erident-custom-login-and-dashboard/er-custom-login.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
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 require attention:
- Tags: Please reduce the number of tags, currently 17 tag instead of maximum 10
erident-custom-login-and-dashboard/er-custom-login.php 92% from 13 tests
The main file in "Erident Custom Login and Dashboard" v. 4.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("erident-custom-login-and-dashboard.php" instead of "er-custom-login.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin7,207 lines of code in 53 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 38 | 806 | 1,205 | 3,207 |
PO File | 7 | 749 | 1,609 | 2,419 |
JavaScript | 3 | 199 | 237 | 815 |
CSS | 3 | 152 | 86 | 694 |
JSON | 2 | 0 | 0 | 72 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
These items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 113)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 27.77 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 138.00 |
Average method complexity | 4.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 113.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 105 | |
▷ Static methods | 25 | 23.81% |
▷ Public methods | 82 | 78.10% |
▷ Protected methods | 15 | 14.29% |
▷ Private methods | 8 | 7.62% |
Functions | 19 | |
▷ Named functions | 5 | 26.32% |
▷ Anonymous functions | 14 | 73.68% |
Constants | 4 | |
▷ Global constants | 4 | 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
4 PNG files occupy 0.24MB with 0.17MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/default-logo.png | 34.28KB | 6.49KB | ▼ 81.06% |
assets/images/erident-logo.png | 34.28KB | 6.49KB | ▼ 81.06% |
assets/images/before-after.png | 158.85KB | 47.65KB | ▼ 70.01% |
assets/images/logo.png | 15.87KB | 6.29KB | ▼ 60.37% |