83% mm-login-customization

Code Review | MM Login Customization

WordPress plugin MM Login Customization scored 83% from 54 tests.

About plugin

  • Plugin page: mm-login-customiz...
  • Plugin version: 1.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.4
  • WordPress version: 6.3.1
  • First release: Apr 24, 2020
  • Latest release: Jul 9, 2020
  • Number of updates: 17
  • Update frequency: every 4.5 days
  • Top authors: samarpitabhattacharya (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,421 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.11MB] [CPU: ▲1.68ms] Passed 4 tests

Analyzing server-side resources used by MM Login Customization
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1144.44 ▲6.72
Dashboard /wp-admin3.41 ▲0.1145.85 ▼0.48
Posts /wp-admin/edit.php3.52 ▲0.1749.60 ▲3.79
Add New Post /wp-admin/post-new.php6.01 ▲0.1298.68 ▼3.31
Media Library /wp-admin/upload.php3.33 ▲0.1039.28 ▲7.03
Settings /wp-admin/admin.php?page=lc-setting3.3032.57
Help /wp-admin/admin.php?page=lc-setting-help3.2731.38

Server storage [IO: ▲0.72MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for MM Login Customization
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,915 ▲18013.64 ▼0.727.61 ▲5.8243.43 ▼1.43
Dashboard /wp-admin2,238 ▲475.83 ▲0.9594.11 ▼11.1081.16 ▲38.71
Posts /wp-admin/edit.php2,118 ▲292.05 ▲0.0639.93 ▲4.8636.56 ▲4.44
Add New Post /wp-admin/post-new.php1,554 ▲4018.25 ▲0.72693.70 ▲47.5961.24 ▼7.46
Media Library /wp-admin/upload.php1,417 ▲294.24 ▲0.0296.44 ▼1.6683.17 ▲38.24
Settings /wp-admin/admin.php?page=lc-setting8922.1026.3627.98
Help /wp-admin/admin.php?page=lc-setting-help7061.536.4920.30

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_head() in wp-content/plugins/mm-login-customization/init/front-template/template-firstlog.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mm-login-customization/init/mmlc-setup.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/mm-login-customization/mm-log-custom.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/mm-login-customization/init/front-template/template-secondlog.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed: You can look at the official readme.txt

mm-login-customization/mm-log-custom.php 85% from 13 tests

The main PHP script in "MM Login Customization" version 1.4 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 227 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("mm-login-customization.php" instead of "mm-log-custom.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin1,369 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP919543636
CSS311336547
JavaScript2552186

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity6.20
▷ Minimum class complexity1.00
▷ Maximum class complexity19.00
Average method complexity1.87
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods30
▷ Static methods00.00%
▷ Public methods30100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants13100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.48MB with 0.24MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/back/templc1.png351.52KB158.37KB▼ 54.95%
assets/images/back/lc-icon.png2.40KB1.82KB▼ 24.24%
assets/images/back/templc2.png140.23KB40.20KB▼ 71.33%