84% ltm-custom-login

Code Review | LotekMedia Custom Login

WordPress plugin LotekMedia Custom Login scored84%from 54 tests.

About plugin

  • Plugin page: ltm-custom-login
  • Plugin version: 1.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-4.0
  • WordPress version: 6.3.1
  • First release: Apr 8, 2013
  • Latest release: Sep 21, 2014
  • Number of updates: 18
  • Update frequency: every 29.5 days
  • Top authors: lotekmedia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /6,415 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼1.78ms] Passed 4 tests

An overview of server-side resources used by LotekMedia Custom Login
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.24 ▼3.57
Dashboard /wp-admin3.32 ▲0.0246.14 ▼1.18
Posts /wp-admin/edit.php3.37 ▲0.0245.11 ▲0.41
Add New Post /wp-admin/post-new.php5.90 ▲0.0290.64 ▼2.77
Media Library /wp-admin/upload.php3.24 ▲0.0238.45 ▲3.95
LTM Login /wp-admin/options-general.php?page=__ltm_login_admin_page__3.2441.14

Server storage [IO: ▲0.01MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by LotekMedia Custom Login
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,785 ▲2414.34 ▼0.241.79 ▲0.1244.56 ▲4.82
Dashboard /wp-admin2,196 ▲195.61 ▼0.0390.21 ▲0.9142.01 ▲0.68
Posts /wp-admin/edit.php2,107 ▲101.97 ▼0.0639.52 ▼0.4934.00 ▼2.26
Add New Post /wp-admin/post-new.php1,532 ▲423.06 ▼0.15663.81 ▲65.3655.70 ▲2.86
Media Library /wp-admin/upload.php1,404 ▲14.21 ▲0.0298.26 ▼1.2946.04 ▲3.76
LTM Login /wp-admin/options-general.php?page=__ltm_login_admin_page__1,3703.7666.7926.46

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ltm-custom-login/ltm_custom_login.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/ltm-custom-login/ltm_login_admin_page.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === ltm-custom-login === )
You can take inspiration from this readme.txt

ltm-custom-login/ltm_custom_login.php 92% from 13 tests

This is the main PHP file of "LotekMedia Custom Login" version 1.3.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("ltm-custom-login.php" instead of "ltm_custom_login.php")

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 plugin188 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2132898
JavaScript116460
PO File17730

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected