79% mywp-login-form

Code Review | MyWP Login Form

WordPress plugin MyWP Login Form scored79%from 54 tests.

About plugin

  • Plugin page: mywp-login-form
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9
  • WordPress version: 6.3.1
  • First release: Dec 6, 2021
  • Latest release: Jul 19, 2023
  • Number of updates: 14
  • Update frequency: every 42.3 days
  • Top authors: whodunitagency (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,116 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼1.63ms] Passed 4 tests

A check of server-side resources used by MyWP Login Form
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1347.63 ▼0.46
Dashboard /wp-admin3.42 ▲0.1251.90 ▼4.43
Posts /wp-admin/edit.php3.54 ▲0.1856.71 ▲3.02
Add New Post /wp-admin/post-new.php6.01 ▲0.1299.21 ▲1.65
Media Library /wp-admin/upload.php3.35 ▲0.1239.41 ▼3.29

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

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

Browser metrics Passed 4 tests

MyWP Login Form: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.25 ▼0.282.11 ▲0.3247.78 ▲2.98
Dashboard /wp-admin2,198 ▲245.62 ▲0.0292.40 ▼5.9737.66 ▼6.78
Posts /wp-admin/edit.php2,103 ▲31.99 ▼0.0341.06 ▲6.6836.85 ▲1.06
Add New Post /wp-admin/post-new.php6,367 ▲4,84127.81 ▲4.02922.62 ▲230.5759.42 ▲6.50
Media Library /wp-admin/upload.php1,400 ▼04.22 ▲0.1097.74 ▼0.8841.48 ▼4.45

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
Please fix the following items
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/mywp-login-form/languages/index.php
    • > /wp-content/plugins/mywp-login-form/mywp-login-form.php
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_ssl() in wp-content/plugins/mywp-login-form/core/views/template-blocks/mwp-login-form.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Whodunit\\MywpLoginForm\\Init\\Plugin' not found in wp-content/plugins/mywp-login-form/core/Core.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: wp-login, custom login, login customizer, login, wordpress login

mywp-login-form/mywp-login-form.php Passed 13 tests

"MyWP Login Form" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
82 characters long description:
Use Gutenberg block or shortcode to add a WP login form anywhere within WordPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected1,690 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
PHP17225498899
JavaScript21838427
CSS2130201
JSON30092
SVG40040
PO File16731

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity14.67
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity3.14
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes9
▷ Abstract classes111.11%
▷ Concrete classes888.89%
▷ Final classes00.00%
Methods58
▷ Static methods2237.93%
▷ Public methods5391.38%
▷ Protected methods11.72%
▷ Private methods46.90%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
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
There were not PNG files found in your plugin