84% theme-my-login

Code Review | Theme My Login

WordPress plugin Theme My Login scored84%from 54 tests.

About plugin

  • Plugin page: theme-my-login
  • Plugin version: 7.1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.3
  • WordPress version: 6.3.1
  • First release: Mar 13, 2009
  • Latest release: Aug 4, 2023
  • Number of updates: 1,456
  • Update frequency: every 3.6 days
  • Top authors: jfarthing84 (99.93%)

Code review

54 tests

User reviews

456 reviews

Install metrics

90,000+ active /3,875,184 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.73MB] [CPU: ▲13.41ms] Passed 4 tests

Server-side resources used by Theme My Login
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.08 ▲0.6255.82 ▲14.41
Dashboard /wp-admin4.09 ▲0.7970.73 ▲18.50
Posts /wp-admin/edit.php4.12 ▲0.7757.64 ▲5.95
Add New Post /wp-admin/post-new.php6.67 ▲0.78107.29 ▲15.66
Media Library /wp-admin/upload.php3.99 ▲0.7750.20 ▲17.62
Extensions /wp-admin/admin.php?page=theme-my-login-extensions4.0444.21
General /wp-admin/admin.php?page=theme-my-login4.0442.19

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_theme-my-login
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Theme My Login
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,971 ▲21413.80 ▼0.856.15 ▲4.1242.81 ▼1.85
Dashboard /wp-admin2,285 ▲944.95 ▼0.94119.62 ▲14.6142.71 ▼1.28
Posts /wp-admin/edit.php2,157 ▲652.28 ▲0.2734.23 ▼2.1030.68 ▼0.94
Add New Post /wp-admin/post-new.php1,547 ▲3323.33 ▲5.68583.14 ▼113.2931.98 ▼30.88
Media Library /wp-admin/upload.php1,453 ▲654.21 ▲0.0192.83 ▼2.7041.19 ▼4.45
Extensions /wp-admin/admin.php?page=theme-my-login-extensions1,2002.4030.4737.59
General /wp-admin/admin.php?page=theme-my-login1,1271.9935.7735.98

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_theme-my-login
    • widget_recent-comments
    • 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 8× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/theme-my-login/includes/ms-hooks.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/theme-my-login/includes/class-theme-my-login-widget.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/theme-my-login/includes/shortcodes.php:116
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/theme-my-login/includes/hooks.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'WP_CLI' not found in wp-content/plugins/theme-my-login/includes/commands.php:47
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/theme-my-login/theme-my-login.php:34
    • > PHP Fatal error
      Uncaught Error: Class 'Walker_Nav_Menu_Edit' not found in wp-content/plugins/theme-my-login/admin/class-theme-my-login-walker-nav-menu-edit.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/theme-my-login/admin/hooks.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: widget, branding, wp-login, register, password...

theme-my-login/theme-my-login.php Passed 13 tests

The primary PHP file in "Theme My Login" version 7.1.6 is used by WordPress to initiate all plugin functionality
92 characters long description:
Creates an alternate login, registration and password recovery experience within your theme.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin4,961 lines of code in 34 files:
LanguageFilesBlank linesComment linesLines of code
PHP241,1803,4484,563
JavaScript4394218
CSS4120167
JSON10012
SVG1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity15.12
▷ Minimum class complexity1.00
▷ Maximum class complexity39.00
Average method complexity1.84
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes112.50%
▷ Concrete classes787.50%
▷ Final classes228.57%
Methods134
▷ Static methods42.99%
▷ Public methods12492.54%
▷ Protected methods107.46%
▷ Private methods00.00%
Functions163
▷ Named functions16299.39%
▷ Anonymous functions10.61%
Constants6
▷ Global constants6100.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 images were found in this plugin